[2025-02-19 00:00:04] Production.INFO: next invoice date [2025-02-19 00:00:04] Production.INFO: 2025-03-19 [2025-02-19 00:00:04] Production.INFO: getdaysdiff [2025-02-19 00:00:04] Production.INFO: +28 [2025-02-19 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,28,28,'RMScheduler',2025-02-19 00:00:04,1,0,,,0) [2025-02-19 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:00:05 [end_date_ymd] => 2025-02-19 00:00:05 [RateCDR] => 1 ) [2025-02-19 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:00:05' and `end` < '2025-02-19 00:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:00:17] Production.INFO: count ==639 [2025-02-19 00:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:00:05 - End Time 2025-02-19 00:00:05 [2025-02-19 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506583', 'tblTempUsageDetail_20' ) start [2025-02-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506583', 'tblTempUsageDetail_20' ) end [2025-02-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506583', 'tblTempVendorCDR_20' ) start [2025-02-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506583', 'tblTempVendorCDR_20' ) end [2025-02-19 00:00:18] Production.INFO: ProcessCDR(1,14506583,1,1,2) [2025-02-19 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506583', 'tblTempUsageDetail_20' ) start [2025-02-19 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506583', 'tblTempUsageDetail_20' ) end [2025-02-19 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:00:27] Production.INFO: ==15923== Releasing lock... [2025-02-19 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:00:27] Production.INFO: 34.5 MB #Memory Used# [2025-02-19 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:01:05 [end_date_ymd] => 2025-02-19 00:01:05 [RateCDR] => 1 ) [2025-02-19 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:01:05' and `end` < '2025-02-19 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:01:18] Production.INFO: count ==626 [2025-02-19 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:01:05 - End Time 2025-02-19 00:01:05 [2025-02-19 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506589', 'tblTempUsageDetail_20' ) start [2025-02-19 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506589', 'tblTempUsageDetail_20' ) end [2025-02-19 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506589', 'tblTempVendorCDR_20' ) start [2025-02-19 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506589', 'tblTempVendorCDR_20' ) end [2025-02-19 00:01:18] Production.INFO: ProcessCDR(1,14506589,1,1,2) [2025-02-19 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506589', 'tblTempUsageDetail_20' ) start [2025-02-19 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506589', 'tblTempUsageDetail_20' ) end [2025-02-19 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:01:21] Production.INFO: ==16014== Releasing lock... [2025-02-19 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-19 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:02:04 [end_date_ymd] => 2025-02-19 00:02:04 [RateCDR] => 1 ) [2025-02-19 00:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:02:04' and `end` < '2025-02-19 00:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:02:21] Production.INFO: count ==245 [2025-02-19 00:02:21] Production.ERROR: pbx CDR StartTime 2025-02-18 21:02:04 - End Time 2025-02-19 00:02:04 [2025-02-19 00:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506594', 'tblTempUsageDetail_20' ) start [2025-02-19 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506594', 'tblTempUsageDetail_20' ) end [2025-02-19 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506594', 'tblTempVendorCDR_20' ) start [2025-02-19 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506594', 'tblTempVendorCDR_20' ) end [2025-02-19 00:02:21] Production.INFO: ProcessCDR(1,14506594,1,1,2) [2025-02-19 00:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506594', 'tblTempUsageDetail_20' ) start [2025-02-19 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506594', 'tblTempUsageDetail_20' ) end [2025-02-19 00:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:02:26] Production.INFO: ==16087== Releasing lock... [2025-02-19 00:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:02:26] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:03:05 [end_date_ymd] => 2025-02-19 00:03:05 [RateCDR] => 1 ) [2025-02-19 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:03:05' and `end` < '2025-02-19 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:03:17] Production.INFO: count ==242 [2025-02-19 00:03:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:03:05 - End Time 2025-02-19 00:03:05 [2025-02-19 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506599', 'tblTempUsageDetail_20' ) start [2025-02-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506599', 'tblTempUsageDetail_20' ) end [2025-02-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506599', 'tblTempVendorCDR_20' ) start [2025-02-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506599', 'tblTempVendorCDR_20' ) end [2025-02-19 00:03:18] Production.INFO: ProcessCDR(1,14506599,1,1,2) [2025-02-19 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506599', 'tblTempUsageDetail_20' ) start [2025-02-19 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506599', 'tblTempUsageDetail_20' ) end [2025-02-19 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:03:21] Production.INFO: ==16160== Releasing lock... [2025-02-19 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:04:06 [end_date_ymd] => 2025-02-19 00:04:06 [RateCDR] => 1 ) [2025-02-19 00:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:04:06' and `end` < '2025-02-19 00:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:04:17] Production.INFO: count ==242 [2025-02-19 00:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:04:06 - End Time 2025-02-19 00:04:06 [2025-02-19 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506604', 'tblTempUsageDetail_20' ) start [2025-02-19 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506604', 'tblTempUsageDetail_20' ) end [2025-02-19 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506604', 'tblTempVendorCDR_20' ) start [2025-02-19 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506604', 'tblTempVendorCDR_20' ) end [2025-02-19 00:04:17] Production.INFO: ProcessCDR(1,14506604,1,1,2) [2025-02-19 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506604', 'tblTempUsageDetail_20' ) start [2025-02-19 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506604', 'tblTempUsageDetail_20' ) end [2025-02-19 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:04:22] Production.INFO: ==16236== Releasing lock... [2025-02-19 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:05:05 [end_date_ymd] => 2025-02-19 00:05:05 [RateCDR] => 1 ) [2025-02-19 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:05:05' and `end` < '2025-02-19 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:05:17] Production.INFO: count ==242 [2025-02-19 00:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:05:05 - End Time 2025-02-19 00:05:05 [2025-02-19 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506609', 'tblTempUsageDetail_20' ) start [2025-02-19 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506609', 'tblTempUsageDetail_20' ) end [2025-02-19 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506609', 'tblTempVendorCDR_20' ) start [2025-02-19 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506609', 'tblTempVendorCDR_20' ) end [2025-02-19 00:05:17] Production.INFO: ProcessCDR(1,14506609,1,1,2) [2025-02-19 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506609', 'tblTempUsageDetail_20' ) start [2025-02-19 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506609', 'tblTempUsageDetail_20' ) end [2025-02-19 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:05:21] Production.INFO: ==16311== Releasing lock... [2025-02-19 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:06:05 [end_date_ymd] => 2025-02-19 00:06:05 [RateCDR] => 1 ) [2025-02-19 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:06:05' and `end` < '2025-02-19 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:06:17] Production.INFO: count ==241 [2025-02-19 00:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:06:05 - End Time 2025-02-19 00:06:05 [2025-02-19 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506614', 'tblTempUsageDetail_20' ) start [2025-02-19 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506614', 'tblTempUsageDetail_20' ) end [2025-02-19 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506614', 'tblTempVendorCDR_20' ) start [2025-02-19 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506614', 'tblTempVendorCDR_20' ) end [2025-02-19 00:06:17] Production.INFO: ProcessCDR(1,14506614,1,1,2) [2025-02-19 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506614', 'tblTempUsageDetail_20' ) start [2025-02-19 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506614', 'tblTempUsageDetail_20' ) end [2025-02-19 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:06:20] Production.INFO: ==16387== Releasing lock... [2025-02-19 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:07:05 [end_date_ymd] => 2025-02-19 00:07:05 [RateCDR] => 1 ) [2025-02-19 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:07:05' and `end` < '2025-02-19 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:07:17] Production.INFO: count ==242 [2025-02-19 00:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:07:05 - End Time 2025-02-19 00:07:05 [2025-02-19 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506619', 'tblTempUsageDetail_20' ) start [2025-02-19 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506619', 'tblTempUsageDetail_20' ) end [2025-02-19 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506619', 'tblTempVendorCDR_20' ) start [2025-02-19 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506619', 'tblTempVendorCDR_20' ) end [2025-02-19 00:07:17] Production.INFO: ProcessCDR(1,14506619,1,1,2) [2025-02-19 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506619', 'tblTempUsageDetail_20' ) start [2025-02-19 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506619', 'tblTempUsageDetail_20' ) end [2025-02-19 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:07:22] Production.INFO: ==16461== Releasing lock... [2025-02-19 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:08:04 [end_date_ymd] => 2025-02-19 00:08:04 [RateCDR] => 1 ) [2025-02-19 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-02-18 21:08:04' and `end` < '2025-02-19 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-02-19 00:08:16] Production.INFO: count ==240 [2025-02-19 00:08:16] Production.ERROR: pbx CDR StartTime 2025-02-18 21:08:04 - End Time 2025-02-19 00:08:04 [2025-02-19 00:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506624', 'tblTempUsageDetail_20' ) start [2025-02-19 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506624', 'tblTempUsageDetail_20' ) end [2025-02-19 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506624', 'tblTempVendorCDR_20' ) start [2025-02-19 00:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506624', 'tblTempVendorCDR_20' ) end [2025-02-19 00:08:16] Production.INFO: ProcessCDR(1,14506624,1,1,2) [2025-02-19 00:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506624', 'tblTempUsageDetail_20' ) start [2025-02-19 00:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506624', 'tblTempUsageDetail_20' ) end [2025-02-19 00:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:08:19] Production.INFO: ==16573== Releasing lock... [2025-02-19 00:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:08:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:09:05 [end_date_ymd] => 2025-02-19 00:09:05 [RateCDR] => 1 ) [2025-02-19 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:09:05' and `end` < '2025-02-19 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:09:16] Production.INFO: count ==248 [2025-02-19 00:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:09:05 - End Time 2025-02-19 00:09:05 [2025-02-19 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506629', 'tblTempUsageDetail_20' ) start [2025-02-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506629', 'tblTempUsageDetail_20' ) end [2025-02-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506629', 'tblTempVendorCDR_20' ) start [2025-02-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506629', 'tblTempVendorCDR_20' ) end [2025-02-19 00:09:17] Production.INFO: ProcessCDR(1,14506629,1,1,2) [2025-02-19 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506629', 'tblTempUsageDetail_20' ) start [2025-02-19 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506629', 'tblTempUsageDetail_20' ) end [2025-02-19 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:09:20] Production.INFO: ==16649== Releasing lock... [2025-02-19 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:10:06 [end_date_ymd] => 2025-02-19 00:10:06 [RateCDR] => 1 ) [2025-02-19 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:10:06' and `end` < '2025-02-19 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:10:18] Production.INFO: count ==255 [2025-02-19 00:10:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:10:06 - End Time 2025-02-19 00:10:06 [2025-02-19 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506635', 'tblTempUsageDetail_20' ) start [2025-02-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506635', 'tblTempUsageDetail_20' ) end [2025-02-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506635', 'tblTempVendorCDR_20' ) start [2025-02-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506635', 'tblTempVendorCDR_20' ) end [2025-02-19 00:10:18] Production.INFO: ProcessCDR(1,14506635,1,1,2) [2025-02-19 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506635', 'tblTempUsageDetail_20' ) start [2025-02-19 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506635', 'tblTempUsageDetail_20' ) end [2025-02-19 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:10:22] Production.INFO: ==16732== Releasing lock... [2025-02-19 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:11:05 [end_date_ymd] => 2025-02-19 00:11:05 [RateCDR] => 1 ) [2025-02-19 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:11:05' and `end` < '2025-02-19 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:11:18] Production.INFO: count ==262 [2025-02-19 00:11:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:11:05 - End Time 2025-02-19 00:11:05 [2025-02-19 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506640', 'tblTempUsageDetail_20' ) start [2025-02-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506640', 'tblTempUsageDetail_20' ) end [2025-02-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506640', 'tblTempVendorCDR_20' ) start [2025-02-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506640', 'tblTempVendorCDR_20' ) end [2025-02-19 00:11:18] Production.INFO: ProcessCDR(1,14506640,1,1,2) [2025-02-19 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506640', 'tblTempUsageDetail_20' ) start [2025-02-19 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506640', 'tblTempUsageDetail_20' ) end [2025-02-19 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:11:21] Production.INFO: ==16812== Releasing lock... [2025-02-19 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:12:06 [end_date_ymd] => 2025-02-19 00:12:06 [RateCDR] => 1 ) [2025-02-19 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:12:06' and `end` < '2025-02-19 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:12:18] Production.INFO: count ==260 [2025-02-19 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:12:06 - End Time 2025-02-19 00:12:06 [2025-02-19 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506645', 'tblTempUsageDetail_20' ) start [2025-02-19 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506645', 'tblTempUsageDetail_20' ) end [2025-02-19 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506645', 'tblTempVendorCDR_20' ) start [2025-02-19 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506645', 'tblTempVendorCDR_20' ) end [2025-02-19 00:12:18] Production.INFO: ProcessCDR(1,14506645,1,1,2) [2025-02-19 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506645', 'tblTempUsageDetail_20' ) start [2025-02-19 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506645', 'tblTempUsageDetail_20' ) end [2025-02-19 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:12:22] Production.INFO: ==16889== Releasing lock... [2025-02-19 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:13:05 [end_date_ymd] => 2025-02-19 00:13:05 [RateCDR] => 1 ) [2025-02-19 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:13:05' and `end` < '2025-02-19 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:13:18] Production.INFO: count ==266 [2025-02-19 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:13:05 - End Time 2025-02-19 00:13:05 [2025-02-19 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506650', 'tblTempUsageDetail_20' ) start [2025-02-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506650', 'tblTempUsageDetail_20' ) end [2025-02-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506650', 'tblTempVendorCDR_20' ) start [2025-02-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506650', 'tblTempVendorCDR_20' ) end [2025-02-19 00:13:18] Production.INFO: ProcessCDR(1,14506650,1,1,2) [2025-02-19 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506650', 'tblTempUsageDetail_20' ) start [2025-02-19 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506650', 'tblTempUsageDetail_20' ) end [2025-02-19 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:13:21] Production.INFO: ==16963== Releasing lock... [2025-02-19 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:14:06 [end_date_ymd] => 2025-02-19 00:14:06 [RateCDR] => 1 ) [2025-02-19 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:14:06' and `end` < '2025-02-19 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:14:18] Production.INFO: count ==266 [2025-02-19 00:14:19] Production.ERROR: pbx CDR StartTime 2025-02-18 21:14:06 - End Time 2025-02-19 00:14:06 [2025-02-19 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506655', 'tblTempUsageDetail_20' ) start [2025-02-19 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506655', 'tblTempUsageDetail_20' ) end [2025-02-19 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506655', 'tblTempVendorCDR_20' ) start [2025-02-19 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506655', 'tblTempVendorCDR_20' ) end [2025-02-19 00:14:19] Production.INFO: ProcessCDR(1,14506655,1,1,2) [2025-02-19 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506655', 'tblTempUsageDetail_20' ) start [2025-02-19 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506655', 'tblTempUsageDetail_20' ) end [2025-02-19 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:14:22] Production.INFO: ==17040== Releasing lock... [2025-02-19 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:15:05 [end_date_ymd] => 2025-02-19 00:15:05 [RateCDR] => 1 ) [2025-02-19 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:15:05' and `end` < '2025-02-19 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:15:17] Production.INFO: count ==266 [2025-02-19 00:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:15:05 - End Time 2025-02-19 00:15:05 [2025-02-19 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506660', 'tblTempUsageDetail_20' ) start [2025-02-19 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506660', 'tblTempUsageDetail_20' ) end [2025-02-19 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506660', 'tblTempVendorCDR_20' ) start [2025-02-19 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506660', 'tblTempVendorCDR_20' ) end [2025-02-19 00:15:17] Production.INFO: ProcessCDR(1,14506660,1,1,2) [2025-02-19 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506660', 'tblTempUsageDetail_20' ) start [2025-02-19 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506660', 'tblTempUsageDetail_20' ) end [2025-02-19 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:15:20] Production.INFO: ==17120== Releasing lock... [2025-02-19 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:15:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:16:05 [end_date_ymd] => 2025-02-19 00:16:05 [RateCDR] => 1 ) [2025-02-19 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:16:05' and `end` < '2025-02-19 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:16:17] Production.INFO: count ==266 [2025-02-19 00:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:16:05 - End Time 2025-02-19 00:16:05 [2025-02-19 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506665', 'tblTempUsageDetail_20' ) start [2025-02-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506665', 'tblTempUsageDetail_20' ) end [2025-02-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506665', 'tblTempVendorCDR_20' ) start [2025-02-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506665', 'tblTempVendorCDR_20' ) end [2025-02-19 00:16:17] Production.INFO: ProcessCDR(1,14506665,1,1,2) [2025-02-19 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506665', 'tblTempUsageDetail_20' ) start [2025-02-19 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506665', 'tblTempUsageDetail_20' ) end [2025-02-19 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:16:20] Production.INFO: ==17198== Releasing lock... [2025-02-19 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:16:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:17:05 [end_date_ymd] => 2025-02-19 00:17:05 [RateCDR] => 1 ) [2025-02-19 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:17:05' and `end` < '2025-02-19 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:17:16] Production.INFO: count ==266 [2025-02-19 00:17:16] Production.ERROR: pbx CDR StartTime 2025-02-18 21:17:05 - End Time 2025-02-19 00:17:05 [2025-02-19 00:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506670', 'tblTempUsageDetail_20' ) start [2025-02-19 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506670', 'tblTempUsageDetail_20' ) end [2025-02-19 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506670', 'tblTempVendorCDR_20' ) start [2025-02-19 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506670', 'tblTempVendorCDR_20' ) end [2025-02-19 00:17:16] Production.INFO: ProcessCDR(1,14506670,1,1,2) [2025-02-19 00:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506670', 'tblTempUsageDetail_20' ) start [2025-02-19 00:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506670', 'tblTempUsageDetail_20' ) end [2025-02-19 00:17:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:17:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:17:19] Production.INFO: ==17277== Releasing lock... [2025-02-19 00:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:17:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:18:05 [end_date_ymd] => 2025-02-19 00:18:05 [RateCDR] => 1 ) [2025-02-19 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:18:05' and `end` < '2025-02-19 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:18:17] Production.INFO: count ==265 [2025-02-19 00:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:18:05 - End Time 2025-02-19 00:18:05 [2025-02-19 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506675', 'tblTempUsageDetail_20' ) start [2025-02-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506675', 'tblTempUsageDetail_20' ) end [2025-02-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506675', 'tblTempVendorCDR_20' ) start [2025-02-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506675', 'tblTempVendorCDR_20' ) end [2025-02-19 00:18:17] Production.INFO: ProcessCDR(1,14506675,1,1,2) [2025-02-19 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506675', 'tblTempUsageDetail_20' ) start [2025-02-19 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506675', 'tblTempUsageDetail_20' ) end [2025-02-19 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:18:20] Production.INFO: ==17373== Releasing lock... [2025-02-19 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:18:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:19:05 [end_date_ymd] => 2025-02-19 00:19:05 [RateCDR] => 1 ) [2025-02-19 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:19:05' and `end` < '2025-02-19 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:19:16] Production.INFO: count ==262 [2025-02-19 00:19:16] Production.ERROR: pbx CDR StartTime 2025-02-18 21:19:05 - End Time 2025-02-19 00:19:05 [2025-02-19 00:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506680', 'tblTempUsageDetail_20' ) start [2025-02-19 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506680', 'tblTempUsageDetail_20' ) end [2025-02-19 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506680', 'tblTempVendorCDR_20' ) start [2025-02-19 00:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506680', 'tblTempVendorCDR_20' ) end [2025-02-19 00:19:16] Production.INFO: ProcessCDR(1,14506680,1,1,2) [2025-02-19 00:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506680', 'tblTempUsageDetail_20' ) start [2025-02-19 00:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506680', 'tblTempUsageDetail_20' ) end [2025-02-19 00:19:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:19:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:19:19] Production.INFO: ==17456== Releasing lock... [2025-02-19 00:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:19:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:20:06 [end_date_ymd] => 2025-02-19 00:20:06 [RateCDR] => 1 ) [2025-02-19 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:20:06' and `end` < '2025-02-19 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:20:18] Production.INFO: count ==270 [2025-02-19 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:20:06 - End Time 2025-02-19 00:20:06 [2025-02-19 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506686', 'tblTempUsageDetail_20' ) start [2025-02-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506686', 'tblTempUsageDetail_20' ) end [2025-02-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506686', 'tblTempVendorCDR_20' ) start [2025-02-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506686', 'tblTempVendorCDR_20' ) end [2025-02-19 00:20:18] Production.INFO: ProcessCDR(1,14506686,1,1,2) [2025-02-19 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506686', 'tblTempUsageDetail_20' ) start [2025-02-19 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506686', 'tblTempUsageDetail_20' ) end [2025-02-19 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:20:22] Production.INFO: ==17552== Releasing lock... [2025-02-19 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:21:05 [end_date_ymd] => 2025-02-19 00:21:05 [RateCDR] => 1 ) [2025-02-19 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:21:05' and `end` < '2025-02-19 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:21:17] Production.INFO: count ==270 [2025-02-19 00:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:21:05 - End Time 2025-02-19 00:21:05 [2025-02-19 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506691', 'tblTempUsageDetail_20' ) start [2025-02-19 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506691', 'tblTempUsageDetail_20' ) end [2025-02-19 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506691', 'tblTempVendorCDR_20' ) start [2025-02-19 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506691', 'tblTempVendorCDR_20' ) end [2025-02-19 00:21:17] Production.INFO: ProcessCDR(1,14506691,1,1,2) [2025-02-19 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506691', 'tblTempUsageDetail_20' ) start [2025-02-19 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506691', 'tblTempUsageDetail_20' ) end [2025-02-19 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:21:20] Production.INFO: ==17630== Releasing lock... [2025-02-19 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:22:05 [end_date_ymd] => 2025-02-19 00:22:05 [RateCDR] => 1 ) [2025-02-19 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:22:05' and `end` < '2025-02-19 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:22:17] Production.INFO: count ==268 [2025-02-19 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:22:05 - End Time 2025-02-19 00:22:05 [2025-02-19 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506696', 'tblTempUsageDetail_20' ) start [2025-02-19 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506696', 'tblTempUsageDetail_20' ) end [2025-02-19 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506696', 'tblTempVendorCDR_20' ) start [2025-02-19 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506696', 'tblTempVendorCDR_20' ) end [2025-02-19 00:22:17] Production.INFO: ProcessCDR(1,14506696,1,1,2) [2025-02-19 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506696', 'tblTempUsageDetail_20' ) start [2025-02-19 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506696', 'tblTempUsageDetail_20' ) end [2025-02-19 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:22:20] Production.INFO: ==17709== Releasing lock... [2025-02-19 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:23:05 [end_date_ymd] => 2025-02-19 00:23:05 [RateCDR] => 1 ) [2025-02-19 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:23:05' and `end` < '2025-02-19 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:23:17] Production.INFO: count ==268 [2025-02-19 00:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:23:05 - End Time 2025-02-19 00:23:05 [2025-02-19 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506701', 'tblTempUsageDetail_20' ) start [2025-02-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506701', 'tblTempUsageDetail_20' ) end [2025-02-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506701', 'tblTempVendorCDR_20' ) start [2025-02-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506701', 'tblTempVendorCDR_20' ) end [2025-02-19 00:23:17] Production.INFO: ProcessCDR(1,14506701,1,1,2) [2025-02-19 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506701', 'tblTempUsageDetail_20' ) start [2025-02-19 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506701', 'tblTempUsageDetail_20' ) end [2025-02-19 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:23:20] Production.INFO: ==17791== Releasing lock... [2025-02-19 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:24:06 [end_date_ymd] => 2025-02-19 00:24:06 [RateCDR] => 1 ) [2025-02-19 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:24:06' and `end` < '2025-02-19 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:24:18] Production.INFO: count ==268 [2025-02-19 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:24:06 - End Time 2025-02-19 00:24:06 [2025-02-19 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506706', 'tblTempUsageDetail_20' ) start [2025-02-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506706', 'tblTempUsageDetail_20' ) end [2025-02-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506706', 'tblTempVendorCDR_20' ) start [2025-02-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506706', 'tblTempVendorCDR_20' ) end [2025-02-19 00:24:18] Production.INFO: ProcessCDR(1,14506706,1,1,2) [2025-02-19 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506706', 'tblTempUsageDetail_20' ) start [2025-02-19 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506706', 'tblTempUsageDetail_20' ) end [2025-02-19 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:24:21] Production.INFO: ==17912== Releasing lock... [2025-02-19 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:25:05 [end_date_ymd] => 2025-02-19 00:25:05 [RateCDR] => 1 ) [2025-02-19 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:25:05' and `end` < '2025-02-19 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:25:17] Production.INFO: count ==269 [2025-02-19 00:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:25:05 - End Time 2025-02-19 00:25:05 [2025-02-19 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506711', 'tblTempUsageDetail_20' ) start [2025-02-19 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506711', 'tblTempUsageDetail_20' ) end [2025-02-19 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506711', 'tblTempVendorCDR_20' ) start [2025-02-19 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506711', 'tblTempVendorCDR_20' ) end [2025-02-19 00:25:17] Production.INFO: ProcessCDR(1,14506711,1,1,2) [2025-02-19 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506711', 'tblTempUsageDetail_20' ) start [2025-02-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506711', 'tblTempUsageDetail_20' ) end [2025-02-19 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:25:21] Production.INFO: ==17989== Releasing lock... [2025-02-19 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:26:05 [end_date_ymd] => 2025-02-19 00:26:05 [RateCDR] => 1 ) [2025-02-19 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:26:05' and `end` < '2025-02-19 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:26:17] Production.INFO: count ==269 [2025-02-19 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:26:05 - End Time 2025-02-19 00:26:05 [2025-02-19 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506716', 'tblTempUsageDetail_20' ) start [2025-02-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506716', 'tblTempUsageDetail_20' ) end [2025-02-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506716', 'tblTempVendorCDR_20' ) start [2025-02-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506716', 'tblTempVendorCDR_20' ) end [2025-02-19 00:26:17] Production.INFO: ProcessCDR(1,14506716,1,1,2) [2025-02-19 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506716', 'tblTempUsageDetail_20' ) start [2025-02-19 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506716', 'tblTempUsageDetail_20' ) end [2025-02-19 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:26:21] Production.INFO: ==18069== Releasing lock... [2025-02-19 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:27:05 [end_date_ymd] => 2025-02-19 00:27:05 [RateCDR] => 1 ) [2025-02-19 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:27:05' and `end` < '2025-02-19 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:27:17] Production.INFO: count ==270 [2025-02-19 00:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:27:05 - End Time 2025-02-19 00:27:05 [2025-02-19 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506721', 'tblTempUsageDetail_20' ) start [2025-02-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506721', 'tblTempUsageDetail_20' ) end [2025-02-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506721', 'tblTempVendorCDR_20' ) start [2025-02-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506721', 'tblTempVendorCDR_20' ) end [2025-02-19 00:27:17] Production.INFO: ProcessCDR(1,14506721,1,1,2) [2025-02-19 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506721', 'tblTempUsageDetail_20' ) start [2025-02-19 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506721', 'tblTempUsageDetail_20' ) end [2025-02-19 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:27:20] Production.INFO: ==18145== Releasing lock... [2025-02-19 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:28:05 [end_date_ymd] => 2025-02-19 00:28:05 [RateCDR] => 1 ) [2025-02-19 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:28:05' and `end` < '2025-02-19 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:28:17] Production.INFO: count ==273 [2025-02-19 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:28:05 - End Time 2025-02-19 00:28:05 [2025-02-19 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506726', 'tblTempUsageDetail_20' ) start [2025-02-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506726', 'tblTempUsageDetail_20' ) end [2025-02-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506726', 'tblTempVendorCDR_20' ) start [2025-02-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506726', 'tblTempVendorCDR_20' ) end [2025-02-19 00:28:17] Production.INFO: ProcessCDR(1,14506726,1,1,2) [2025-02-19 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506726', 'tblTempUsageDetail_20' ) start [2025-02-19 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506726', 'tblTempUsageDetail_20' ) end [2025-02-19 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:28:20] Production.INFO: ==18220== Releasing lock... [2025-02-19 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:29:05 [end_date_ymd] => 2025-02-19 00:29:05 [RateCDR] => 1 ) [2025-02-19 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:29:05' and `end` < '2025-02-19 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:29:17] Production.INFO: count ==269 [2025-02-19 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:29:05 - End Time 2025-02-19 00:29:05 [2025-02-19 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506731', 'tblTempUsageDetail_20' ) start [2025-02-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506731', 'tblTempUsageDetail_20' ) end [2025-02-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506731', 'tblTempVendorCDR_20' ) start [2025-02-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506731', 'tblTempVendorCDR_20' ) end [2025-02-19 00:29:17] Production.INFO: ProcessCDR(1,14506731,1,1,2) [2025-02-19 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506731', 'tblTempUsageDetail_20' ) start [2025-02-19 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506731', 'tblTempUsageDetail_20' ) end [2025-02-19 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:29:20] Production.INFO: ==18301== Releasing lock... [2025-02-19 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:30:06 [end_date_ymd] => 2025-02-19 00:30:06 [RateCDR] => 1 ) [2025-02-19 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:30:06' and `end` < '2025-02-19 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:30:17] Production.INFO: count ==276 [2025-02-19 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:30:06 - End Time 2025-02-19 00:30:06 [2025-02-19 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506736', 'tblTempUsageDetail_20' ) start [2025-02-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506736', 'tblTempUsageDetail_20' ) end [2025-02-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506736', 'tblTempVendorCDR_20' ) start [2025-02-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506736', 'tblTempVendorCDR_20' ) end [2025-02-19 00:30:18] Production.INFO: ProcessCDR(1,14506736,1,1,2) [2025-02-19 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506736', 'tblTempUsageDetail_20' ) start [2025-02-19 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506736', 'tblTempUsageDetail_20' ) end [2025-02-19 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:30:21] Production.INFO: ==18378== Releasing lock... [2025-02-19 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:31:05 [end_date_ymd] => 2025-02-19 00:31:05 [RateCDR] => 1 ) [2025-02-19 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:31:05' and `end` < '2025-02-19 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:31:16] Production.INFO: count ==287 [2025-02-19 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:31:05 - End Time 2025-02-19 00:31:05 [2025-02-19 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506742', 'tblTempUsageDetail_20' ) start [2025-02-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506742', 'tblTempUsageDetail_20' ) end [2025-02-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506742', 'tblTempVendorCDR_20' ) start [2025-02-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506742', 'tblTempVendorCDR_20' ) end [2025-02-19 00:31:17] Production.INFO: ProcessCDR(1,14506742,1,1,2) [2025-02-19 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506742', 'tblTempUsageDetail_20' ) start [2025-02-19 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506742', 'tblTempUsageDetail_20' ) end [2025-02-19 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:31:20] Production.INFO: ==18456== Releasing lock... [2025-02-19 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:31:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:32:05 [end_date_ymd] => 2025-02-19 00:32:05 [RateCDR] => 1 ) [2025-02-19 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:32:05' and `end` < '2025-02-19 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:32:17] Production.INFO: count ==283 [2025-02-19 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:32:05 - End Time 2025-02-19 00:32:05 [2025-02-19 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506747', 'tblTempUsageDetail_20' ) start [2025-02-19 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506747', 'tblTempUsageDetail_20' ) end [2025-02-19 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506747', 'tblTempVendorCDR_20' ) start [2025-02-19 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506747', 'tblTempVendorCDR_20' ) end [2025-02-19 00:32:17] Production.INFO: ProcessCDR(1,14506747,1,1,2) [2025-02-19 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506747', 'tblTempUsageDetail_20' ) start [2025-02-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506747', 'tblTempUsageDetail_20' ) end [2025-02-19 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:32:21] Production.INFO: ==18531== Releasing lock... [2025-02-19 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:33:05 [end_date_ymd] => 2025-02-19 00:33:05 [RateCDR] => 1 ) [2025-02-19 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:33:05' and `end` < '2025-02-19 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:33:17] Production.INFO: count ==283 [2025-02-19 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:33:05 - End Time 2025-02-19 00:33:05 [2025-02-19 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506752', 'tblTempUsageDetail_20' ) start [2025-02-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506752', 'tblTempUsageDetail_20' ) end [2025-02-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506752', 'tblTempVendorCDR_20' ) start [2025-02-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506752', 'tblTempVendorCDR_20' ) end [2025-02-19 00:33:17] Production.INFO: ProcessCDR(1,14506752,1,1,2) [2025-02-19 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506752', 'tblTempUsageDetail_20' ) start [2025-02-19 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506752', 'tblTempUsageDetail_20' ) end [2025-02-19 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:33:20] Production.INFO: ==18609== Releasing lock... [2025-02-19 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:33:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:34:05 [end_date_ymd] => 2025-02-19 00:34:05 [RateCDR] => 1 ) [2025-02-19 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:34:05' and `end` < '2025-02-19 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:34:17] Production.INFO: count ==278 [2025-02-19 00:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:34:05 - End Time 2025-02-19 00:34:05 [2025-02-19 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506757', 'tblTempUsageDetail_20' ) start [2025-02-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506757', 'tblTempUsageDetail_20' ) end [2025-02-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506757', 'tblTempVendorCDR_20' ) start [2025-02-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506757', 'tblTempVendorCDR_20' ) end [2025-02-19 00:34:17] Production.INFO: ProcessCDR(1,14506757,1,1,2) [2025-02-19 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506757', 'tblTempUsageDetail_20' ) start [2025-02-19 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506757', 'tblTempUsageDetail_20' ) end [2025-02-19 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:34:20] Production.INFO: ==18684== Releasing lock... [2025-02-19 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:34:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:35:05 [end_date_ymd] => 2025-02-19 00:35:05 [RateCDR] => 1 ) [2025-02-19 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:35:05' and `end` < '2025-02-19 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:35:17] Production.INFO: count ==277 [2025-02-19 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:35:05 - End Time 2025-02-19 00:35:05 [2025-02-19 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506762', 'tblTempUsageDetail_20' ) start [2025-02-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506762', 'tblTempUsageDetail_20' ) end [2025-02-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506762', 'tblTempVendorCDR_20' ) start [2025-02-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506762', 'tblTempVendorCDR_20' ) end [2025-02-19 00:35:17] Production.INFO: ProcessCDR(1,14506762,1,1,2) [2025-02-19 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506762', 'tblTempUsageDetail_20' ) start [2025-02-19 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506762', 'tblTempUsageDetail_20' ) end [2025-02-19 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:35:20] Production.INFO: ==18758== Releasing lock... [2025-02-19 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:36:06 [end_date_ymd] => 2025-02-19 00:36:06 [RateCDR] => 1 ) [2025-02-19 00:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:36:06' and `end` < '2025-02-19 00:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:36:17] Production.INFO: count ==273 [2025-02-19 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:36:06 - End Time 2025-02-19 00:36:06 [2025-02-19 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506767', 'tblTempUsageDetail_20' ) start [2025-02-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506767', 'tblTempUsageDetail_20' ) end [2025-02-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506767', 'tblTempVendorCDR_20' ) start [2025-02-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506767', 'tblTempVendorCDR_20' ) end [2025-02-19 00:36:17] Production.INFO: ProcessCDR(1,14506767,1,1,2) [2025-02-19 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506767', 'tblTempUsageDetail_20' ) start [2025-02-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506767', 'tblTempUsageDetail_20' ) end [2025-02-19 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:36:21] Production.INFO: ==18834== Releasing lock... [2025-02-19 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:37:05 [end_date_ymd] => 2025-02-19 00:37:05 [RateCDR] => 1 ) [2025-02-19 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:37:05' and `end` < '2025-02-19 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:37:17] Production.INFO: count ==273 [2025-02-19 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:37:05 - End Time 2025-02-19 00:37:05 [2025-02-19 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506772', 'tblTempUsageDetail_20' ) start [2025-02-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506772', 'tblTempUsageDetail_20' ) end [2025-02-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506772', 'tblTempVendorCDR_20' ) start [2025-02-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506772', 'tblTempVendorCDR_20' ) end [2025-02-19 00:37:17] Production.INFO: ProcessCDR(1,14506772,1,1,2) [2025-02-19 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506772', 'tblTempUsageDetail_20' ) start [2025-02-19 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506772', 'tblTempUsageDetail_20' ) end [2025-02-19 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:37:20] Production.INFO: ==18907== Releasing lock... [2025-02-19 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:38:06 [end_date_ymd] => 2025-02-19 00:38:06 [RateCDR] => 1 ) [2025-02-19 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:38:06' and `end` < '2025-02-19 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:38:17] Production.INFO: count ==273 [2025-02-19 00:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:38:06 - End Time 2025-02-19 00:38:06 [2025-02-19 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506777', 'tblTempUsageDetail_20' ) start [2025-02-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506777', 'tblTempUsageDetail_20' ) end [2025-02-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506777', 'tblTempVendorCDR_20' ) start [2025-02-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506777', 'tblTempVendorCDR_20' ) end [2025-02-19 00:38:17] Production.INFO: ProcessCDR(1,14506777,1,1,2) [2025-02-19 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506777', 'tblTempUsageDetail_20' ) start [2025-02-19 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506777', 'tblTempUsageDetail_20' ) end [2025-02-19 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:38:21] Production.INFO: ==18988== Releasing lock... [2025-02-19 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:39:05 [end_date_ymd] => 2025-02-19 00:39:05 [RateCDR] => 1 ) [2025-02-19 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:39:05' and `end` < '2025-02-19 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:39:17] Production.INFO: count ==273 [2025-02-19 00:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:39:05 - End Time 2025-02-19 00:39:05 [2025-02-19 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506782', 'tblTempUsageDetail_20' ) start [2025-02-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506782', 'tblTempUsageDetail_20' ) end [2025-02-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506782', 'tblTempVendorCDR_20' ) start [2025-02-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506782', 'tblTempVendorCDR_20' ) end [2025-02-19 00:39:17] Production.INFO: ProcessCDR(1,14506782,1,1,2) [2025-02-19 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506782', 'tblTempUsageDetail_20' ) start [2025-02-19 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506782', 'tblTempUsageDetail_20' ) end [2025-02-19 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:39:20] Production.INFO: ==19107== Releasing lock... [2025-02-19 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:40:06 [end_date_ymd] => 2025-02-19 00:40:06 [RateCDR] => 1 ) [2025-02-19 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:40:06' and `end` < '2025-02-19 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:40:18] Production.INFO: count ==275 [2025-02-19 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:40:06 - End Time 2025-02-19 00:40:06 [2025-02-19 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506787', 'tblTempUsageDetail_20' ) start [2025-02-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506787', 'tblTempUsageDetail_20' ) end [2025-02-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506787', 'tblTempVendorCDR_20' ) start [2025-02-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506787', 'tblTempVendorCDR_20' ) end [2025-02-19 00:40:18] Production.INFO: ProcessCDR(1,14506787,1,1,2) [2025-02-19 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506787', 'tblTempUsageDetail_20' ) start [2025-02-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506787', 'tblTempUsageDetail_20' ) end [2025-02-19 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:40:21] Production.INFO: ==19187== Releasing lock... [2025-02-19 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:41:05 [end_date_ymd] => 2025-02-19 00:41:05 [RateCDR] => 1 ) [2025-02-19 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:41:05' and `end` < '2025-02-19 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:41:17] Production.INFO: count ==275 [2025-02-19 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:41:05 - End Time 2025-02-19 00:41:05 [2025-02-19 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506793', 'tblTempUsageDetail_20' ) start [2025-02-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506793', 'tblTempUsageDetail_20' ) end [2025-02-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506793', 'tblTempVendorCDR_20' ) start [2025-02-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506793', 'tblTempVendorCDR_20' ) end [2025-02-19 00:41:17] Production.INFO: ProcessCDR(1,14506793,1,1,2) [2025-02-19 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506793', 'tblTempUsageDetail_20' ) start [2025-02-19 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506793', 'tblTempUsageDetail_20' ) end [2025-02-19 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:41:20] Production.INFO: ==19264== Releasing lock... [2025-02-19 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:42:05 [end_date_ymd] => 2025-02-19 00:42:05 [RateCDR] => 1 ) [2025-02-19 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:42:05' and `end` < '2025-02-19 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:42:17] Production.INFO: count ==275 [2025-02-19 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:42:05 - End Time 2025-02-19 00:42:05 [2025-02-19 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506798', 'tblTempUsageDetail_20' ) start [2025-02-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506798', 'tblTempUsageDetail_20' ) end [2025-02-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506798', 'tblTempVendorCDR_20' ) start [2025-02-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506798', 'tblTempVendorCDR_20' ) end [2025-02-19 00:42:17] Production.INFO: ProcessCDR(1,14506798,1,1,2) [2025-02-19 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506798', 'tblTempUsageDetail_20' ) start [2025-02-19 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506798', 'tblTempUsageDetail_20' ) end [2025-02-19 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:42:20] Production.INFO: ==19337== Releasing lock... [2025-02-19 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:43:05 [end_date_ymd] => 2025-02-19 00:43:05 [RateCDR] => 1 ) [2025-02-19 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:43:05' and `end` < '2025-02-19 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:43:17] Production.INFO: count ==275 [2025-02-19 00:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:43:05 - End Time 2025-02-19 00:43:05 [2025-02-19 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506803', 'tblTempUsageDetail_20' ) start [2025-02-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506803', 'tblTempUsageDetail_20' ) end [2025-02-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506803', 'tblTempVendorCDR_20' ) start [2025-02-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506803', 'tblTempVendorCDR_20' ) end [2025-02-19 00:43:17] Production.INFO: ProcessCDR(1,14506803,1,1,2) [2025-02-19 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506803', 'tblTempUsageDetail_20' ) start [2025-02-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506803', 'tblTempUsageDetail_20' ) end [2025-02-19 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:43:20] Production.INFO: ==19410== Releasing lock... [2025-02-19 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:44:05 [end_date_ymd] => 2025-02-19 00:44:05 [RateCDR] => 1 ) [2025-02-19 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:44:05' and `end` < '2025-02-19 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:44:17] Production.INFO: count ==272 [2025-02-19 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:44:05 - End Time 2025-02-19 00:44:05 [2025-02-19 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506808', 'tblTempUsageDetail_20' ) start [2025-02-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506808', 'tblTempUsageDetail_20' ) end [2025-02-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506808', 'tblTempVendorCDR_20' ) start [2025-02-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506808', 'tblTempVendorCDR_20' ) end [2025-02-19 00:44:17] Production.INFO: ProcessCDR(1,14506808,1,1,2) [2025-02-19 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506808', 'tblTempUsageDetail_20' ) start [2025-02-19 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506808', 'tblTempUsageDetail_20' ) end [2025-02-19 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:44:20] Production.INFO: ==19484== Releasing lock... [2025-02-19 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:45:05 [end_date_ymd] => 2025-02-19 00:45:05 [RateCDR] => 1 ) [2025-02-19 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:45:05' and `end` < '2025-02-19 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:45:16] Production.INFO: count ==272 [2025-02-19 00:45:16] Production.ERROR: pbx CDR StartTime 2025-02-18 21:45:05 - End Time 2025-02-19 00:45:05 [2025-02-19 00:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506813', 'tblTempUsageDetail_20' ) start [2025-02-19 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506813', 'tblTempUsageDetail_20' ) end [2025-02-19 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506813', 'tblTempVendorCDR_20' ) start [2025-02-19 00:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506813', 'tblTempVendorCDR_20' ) end [2025-02-19 00:45:16] Production.INFO: ProcessCDR(1,14506813,1,1,2) [2025-02-19 00:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506813', 'tblTempUsageDetail_20' ) start [2025-02-19 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506813', 'tblTempUsageDetail_20' ) end [2025-02-19 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:45:20] Production.INFO: ==19556== Releasing lock... [2025-02-19 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:45:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:46:05 [end_date_ymd] => 2025-02-19 00:46:05 [RateCDR] => 1 ) [2025-02-19 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:46:05' and `end` < '2025-02-19 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:46:17] Production.INFO: count ==272 [2025-02-19 00:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:46:05 - End Time 2025-02-19 00:46:05 [2025-02-19 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506818', 'tblTempUsageDetail_20' ) start [2025-02-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506818', 'tblTempUsageDetail_20' ) end [2025-02-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506818', 'tblTempVendorCDR_20' ) start [2025-02-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506818', 'tblTempVendorCDR_20' ) end [2025-02-19 00:46:17] Production.INFO: ProcessCDR(1,14506818,1,1,2) [2025-02-19 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506818', 'tblTempUsageDetail_20' ) start [2025-02-19 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506818', 'tblTempUsageDetail_20' ) end [2025-02-19 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:46:20] Production.INFO: ==19632== Releasing lock... [2025-02-19 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:47:05 [end_date_ymd] => 2025-02-19 00:47:05 [RateCDR] => 1 ) [2025-02-19 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:47:05' and `end` < '2025-02-19 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:47:17] Production.INFO: count ==271 [2025-02-19 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:47:05 - End Time 2025-02-19 00:47:05 [2025-02-19 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506823', 'tblTempUsageDetail_20' ) start [2025-02-19 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506823', 'tblTempUsageDetail_20' ) end [2025-02-19 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506823', 'tblTempVendorCDR_20' ) start [2025-02-19 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506823', 'tblTempVendorCDR_20' ) end [2025-02-19 00:47:17] Production.INFO: ProcessCDR(1,14506823,1,1,2) [2025-02-19 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506823', 'tblTempUsageDetail_20' ) start [2025-02-19 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506823', 'tblTempUsageDetail_20' ) end [2025-02-19 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:47:21] Production.INFO: ==19710== Releasing lock... [2025-02-19 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:48:05 [end_date_ymd] => 2025-02-19 00:48:05 [RateCDR] => 1 ) [2025-02-19 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:48:05' and `end` < '2025-02-19 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:48:17] Production.INFO: count ==271 [2025-02-19 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:48:05 - End Time 2025-02-19 00:48:05 [2025-02-19 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506828', 'tblTempUsageDetail_20' ) start [2025-02-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506828', 'tblTempUsageDetail_20' ) end [2025-02-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506828', 'tblTempVendorCDR_20' ) start [2025-02-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506828', 'tblTempVendorCDR_20' ) end [2025-02-19 00:48:17] Production.INFO: ProcessCDR(1,14506828,1,1,2) [2025-02-19 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506828', 'tblTempUsageDetail_20' ) start [2025-02-19 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506828', 'tblTempUsageDetail_20' ) end [2025-02-19 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:48:20] Production.INFO: ==19786== Releasing lock... [2025-02-19 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:48:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:49:06 [end_date_ymd] => 2025-02-19 00:49:06 [RateCDR] => 1 ) [2025-02-19 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:49:06' and `end` < '2025-02-19 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:49:17] Production.INFO: count ==271 [2025-02-19 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:49:06 - End Time 2025-02-19 00:49:06 [2025-02-19 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506833', 'tblTempUsageDetail_20' ) start [2025-02-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506833', 'tblTempUsageDetail_20' ) end [2025-02-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506833', 'tblTempVendorCDR_20' ) start [2025-02-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506833', 'tblTempVendorCDR_20' ) end [2025-02-19 00:49:18] Production.INFO: ProcessCDR(1,14506833,1,1,2) [2025-02-19 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506833', 'tblTempUsageDetail_20' ) start [2025-02-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506833', 'tblTempUsageDetail_20' ) end [2025-02-19 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:49:21] Production.INFO: ==19859== Releasing lock... [2025-02-19 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:50:06 [end_date_ymd] => 2025-02-19 00:50:06 [RateCDR] => 1 ) [2025-02-19 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:50:06' and `end` < '2025-02-19 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:50:18] Production.INFO: count ==281 [2025-02-19 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:50:06 - End Time 2025-02-19 00:50:06 [2025-02-19 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506839', 'tblTempUsageDetail_20' ) start [2025-02-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506839', 'tblTempUsageDetail_20' ) end [2025-02-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506839', 'tblTempVendorCDR_20' ) start [2025-02-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506839', 'tblTempVendorCDR_20' ) end [2025-02-19 00:50:18] Production.INFO: ProcessCDR(1,14506839,1,1,2) [2025-02-19 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506839', 'tblTempUsageDetail_20' ) start [2025-02-19 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506839', 'tblTempUsageDetail_20' ) end [2025-02-19 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:50:21] Production.INFO: ==19964== Releasing lock... [2025-02-19 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:51:05 [end_date_ymd] => 2025-02-19 00:51:05 [RateCDR] => 1 ) [2025-02-19 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:51:05' and `end` < '2025-02-19 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:51:17] Production.INFO: count ==287 [2025-02-19 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:51:05 - End Time 2025-02-19 00:51:05 [2025-02-19 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506844', 'tblTempUsageDetail_20' ) start [2025-02-19 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506844', 'tblTempUsageDetail_20' ) end [2025-02-19 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506844', 'tblTempVendorCDR_20' ) start [2025-02-19 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506844', 'tblTempVendorCDR_20' ) end [2025-02-19 00:51:17] Production.INFO: ProcessCDR(1,14506844,1,1,2) [2025-02-19 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506844', 'tblTempUsageDetail_20' ) start [2025-02-19 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506844', 'tblTempUsageDetail_20' ) end [2025-02-19 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:51:20] Production.INFO: ==20105== Releasing lock... [2025-02-19 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:52:05 [end_date_ymd] => 2025-02-19 00:52:05 [RateCDR] => 1 ) [2025-02-19 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:52:05' and `end` < '2025-02-19 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:52:17] Production.INFO: count ==286 [2025-02-19 00:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:52:05 - End Time 2025-02-19 00:52:05 [2025-02-19 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506849', 'tblTempUsageDetail_20' ) start [2025-02-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506849', 'tblTempUsageDetail_20' ) end [2025-02-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506849', 'tblTempVendorCDR_20' ) start [2025-02-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506849', 'tblTempVendorCDR_20' ) end [2025-02-19 00:52:17] Production.INFO: ProcessCDR(1,14506849,1,1,2) [2025-02-19 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506849', 'tblTempUsageDetail_20' ) start [2025-02-19 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506849', 'tblTempUsageDetail_20' ) end [2025-02-19 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:52:21] Production.INFO: ==20181== Releasing lock... [2025-02-19 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:53:05 [end_date_ymd] => 2025-02-19 00:53:05 [RateCDR] => 1 ) [2025-02-19 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:53:05' and `end` < '2025-02-19 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:53:17] Production.INFO: count ==286 [2025-02-19 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:53:05 - End Time 2025-02-19 00:53:05 [2025-02-19 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506854', 'tblTempUsageDetail_20' ) start [2025-02-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506854', 'tblTempUsageDetail_20' ) end [2025-02-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506854', 'tblTempVendorCDR_20' ) start [2025-02-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506854', 'tblTempVendorCDR_20' ) end [2025-02-19 00:53:17] Production.INFO: ProcessCDR(1,14506854,1,1,2) [2025-02-19 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506854', 'tblTempUsageDetail_20' ) start [2025-02-19 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506854', 'tblTempUsageDetail_20' ) end [2025-02-19 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:53:20] Production.INFO: ==20253== Releasing lock... [2025-02-19 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:53:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:54:05 [end_date_ymd] => 2025-02-19 00:54:05 [RateCDR] => 1 ) [2025-02-19 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:54:05' and `end` < '2025-02-19 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:54:16] Production.INFO: count ==281 [2025-02-19 00:54:16] Production.ERROR: pbx CDR StartTime 2025-02-18 21:54:05 - End Time 2025-02-19 00:54:05 [2025-02-19 00:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506859', 'tblTempUsageDetail_20' ) start [2025-02-19 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506859', 'tblTempUsageDetail_20' ) end [2025-02-19 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506859', 'tblTempVendorCDR_20' ) start [2025-02-19 00:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506859', 'tblTempVendorCDR_20' ) end [2025-02-19 00:54:16] Production.INFO: ProcessCDR(1,14506859,1,1,2) [2025-02-19 00:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506859', 'tblTempUsageDetail_20' ) start [2025-02-19 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506859', 'tblTempUsageDetail_20' ) end [2025-02-19 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:54:20] Production.INFO: ==20326== Releasing lock... [2025-02-19 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:54:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:55:06 [end_date_ymd] => 2025-02-19 00:55:06 [RateCDR] => 1 ) [2025-02-19 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:55:06' and `end` < '2025-02-19 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:55:17] Production.INFO: count ==280 [2025-02-19 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-18 21:55:06 - End Time 2025-02-19 00:55:06 [2025-02-19 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506864', 'tblTempUsageDetail_20' ) start [2025-02-19 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506864', 'tblTempUsageDetail_20' ) end [2025-02-19 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506864', 'tblTempVendorCDR_20' ) start [2025-02-19 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506864', 'tblTempVendorCDR_20' ) end [2025-02-19 00:55:18] Production.INFO: ProcessCDR(1,14506864,1,1,2) [2025-02-19 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506864', 'tblTempUsageDetail_20' ) start [2025-02-19 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506864', 'tblTempUsageDetail_20' ) end [2025-02-19 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:55:21] Production.INFO: ==20438== Releasing lock... [2025-02-19 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:55:21] Production.INFO: 31 MB #Memory Used# [2025-02-19 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:56:05 [end_date_ymd] => 2025-02-19 00:56:05 [RateCDR] => 1 ) [2025-02-19 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:56:05' and `end` < '2025-02-19 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:56:17] Production.INFO: count ==286 [2025-02-19 00:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:56:05 - End Time 2025-02-19 00:56:05 [2025-02-19 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506869', 'tblTempUsageDetail_20' ) start [2025-02-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506869', 'tblTempUsageDetail_20' ) end [2025-02-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506869', 'tblTempVendorCDR_20' ) start [2025-02-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506869', 'tblTempVendorCDR_20' ) end [2025-02-19 00:56:17] Production.INFO: ProcessCDR(1,14506869,1,1,2) [2025-02-19 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506869', 'tblTempUsageDetail_20' ) start [2025-02-19 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506869', 'tblTempUsageDetail_20' ) end [2025-02-19 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:56:20] Production.INFO: ==20511== Releasing lock... [2025-02-19 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:56:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:57:05 [end_date_ymd] => 2025-02-19 00:57:05 [RateCDR] => 1 ) [2025-02-19 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:57:05' and `end` < '2025-02-19 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:57:17] Production.INFO: count ==286 [2025-02-19 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:57:05 - End Time 2025-02-19 00:57:05 [2025-02-19 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506874', 'tblTempUsageDetail_20' ) start [2025-02-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506874', 'tblTempUsageDetail_20' ) end [2025-02-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506874', 'tblTempVendorCDR_20' ) start [2025-02-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506874', 'tblTempVendorCDR_20' ) end [2025-02-19 00:57:17] Production.INFO: ProcessCDR(1,14506874,1,1,2) [2025-02-19 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506874', 'tblTempUsageDetail_20' ) start [2025-02-19 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506874', 'tblTempUsageDetail_20' ) end [2025-02-19 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:57:20] Production.INFO: ==20582== Releasing lock... [2025-02-19 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:57:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:58:05 [end_date_ymd] => 2025-02-19 00:58:05 [RateCDR] => 1 ) [2025-02-19 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:58:05' and `end` < '2025-02-19 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:58:17] Production.INFO: count ==289 [2025-02-19 00:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:58:05 - End Time 2025-02-19 00:58:05 [2025-02-19 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506879', 'tblTempUsageDetail_20' ) start [2025-02-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506879', 'tblTempUsageDetail_20' ) end [2025-02-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506879', 'tblTempVendorCDR_20' ) start [2025-02-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506879', 'tblTempVendorCDR_20' ) end [2025-02-19 00:58:17] Production.INFO: ProcessCDR(1,14506879,1,1,2) [2025-02-19 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506879', 'tblTempUsageDetail_20' ) start [2025-02-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506879', 'tblTempUsageDetail_20' ) end [2025-02-19 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:58:21] Production.INFO: ==20654== Releasing lock... [2025-02-19 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 21:59:05 [end_date_ymd] => 2025-02-19 00:59:05 [RateCDR] => 1 ) [2025-02-19 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 21:59:05' and `end` < '2025-02-19 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 00:59:17] Production.INFO: count ==289 [2025-02-19 00:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 21:59:05 - End Time 2025-02-19 00:59:05 [2025-02-19 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506884', 'tblTempUsageDetail_20' ) start [2025-02-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506884', 'tblTempUsageDetail_20' ) end [2025-02-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506884', 'tblTempVendorCDR_20' ) start [2025-02-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506884', 'tblTempVendorCDR_20' ) end [2025-02-19 00:59:17] Production.INFO: ProcessCDR(1,14506884,1,1,2) [2025-02-19 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506884', 'tblTempUsageDetail_20' ) start [2025-02-19 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506884', 'tblTempUsageDetail_20' ) end [2025-02-19 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 00:59:20] Production.INFO: ==20728== Releasing lock... [2025-02-19 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 00:59:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:00:06 [end_date_ymd] => 2025-02-19 01:00:06 [RateCDR] => 1 ) [2025-02-19 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:00:06' and `end` < '2025-02-19 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:00:18] Production.INFO: count ==297 [2025-02-19 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:00:06 - End Time 2025-02-19 01:00:06 [2025-02-19 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506890', 'tblTempUsageDetail_20' ) start [2025-02-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506890', 'tblTempUsageDetail_20' ) end [2025-02-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506890', 'tblTempVendorCDR_20' ) start [2025-02-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506890', 'tblTempVendorCDR_20' ) end [2025-02-19 01:00:18] Production.INFO: ProcessCDR(1,14506890,1,1,2) [2025-02-19 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506890', 'tblTempUsageDetail_20' ) start [2025-02-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506890', 'tblTempUsageDetail_20' ) end [2025-02-19 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:00:21] Production.INFO: ==20805== Releasing lock... [2025-02-19 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:01:05 [end_date_ymd] => 2025-02-19 01:01:05 [RateCDR] => 1 ) [2025-02-19 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:01:05' and `end` < '2025-02-19 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:01:17] Production.INFO: count ==305 [2025-02-19 01:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:01:05 - End Time 2025-02-19 01:01:05 [2025-02-19 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506895', 'tblTempUsageDetail_20' ) start [2025-02-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506895', 'tblTempUsageDetail_20' ) end [2025-02-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506895', 'tblTempVendorCDR_20' ) start [2025-02-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506895', 'tblTempVendorCDR_20' ) end [2025-02-19 01:01:17] Production.INFO: ProcessCDR(1,14506895,1,1,2) [2025-02-19 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506895', 'tblTempUsageDetail_20' ) start [2025-02-19 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506895', 'tblTempUsageDetail_20' ) end [2025-02-19 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:01:20] Production.INFO: ==20891== Releasing lock... [2025-02-19 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:01:20] Production.INFO: 31 MB #Memory Used# [2025-02-19 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:02:05 [end_date_ymd] => 2025-02-19 01:02:05 [RateCDR] => 1 ) [2025-02-19 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:02:05' and `end` < '2025-02-19 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:02:17] Production.INFO: count ==302 [2025-02-19 01:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:02:05 - End Time 2025-02-19 01:02:05 [2025-02-19 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506900', 'tblTempUsageDetail_20' ) start [2025-02-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506900', 'tblTempUsageDetail_20' ) end [2025-02-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506900', 'tblTempVendorCDR_20' ) start [2025-02-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506900', 'tblTempVendorCDR_20' ) end [2025-02-19 01:02:17] Production.INFO: ProcessCDR(1,14506900,1,1,2) [2025-02-19 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506900', 'tblTempUsageDetail_20' ) start [2025-02-19 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506900', 'tblTempUsageDetail_20' ) end [2025-02-19 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:02:20] Production.INFO: ==20961== Releasing lock... [2025-02-19 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:02:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:03:05 [end_date_ymd] => 2025-02-19 01:03:05 [RateCDR] => 1 ) [2025-02-19 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:03:05' and `end` < '2025-02-19 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:03:17] Production.INFO: count ==300 [2025-02-19 01:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:03:05 - End Time 2025-02-19 01:03:05 [2025-02-19 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506905', 'tblTempUsageDetail_20' ) start [2025-02-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506905', 'tblTempUsageDetail_20' ) end [2025-02-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506905', 'tblTempVendorCDR_20' ) start [2025-02-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506905', 'tblTempVendorCDR_20' ) end [2025-02-19 01:03:17] Production.INFO: ProcessCDR(1,14506905,1,1,2) [2025-02-19 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506905', 'tblTempUsageDetail_20' ) start [2025-02-19 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506905', 'tblTempUsageDetail_20' ) end [2025-02-19 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:03:20] Production.INFO: ==21033== Releasing lock... [2025-02-19 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:03:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:04:05 [end_date_ymd] => 2025-02-19 01:04:05 [RateCDR] => 1 ) [2025-02-19 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:04:05' and `end` < '2025-02-19 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:04:17] Production.INFO: count ==300 [2025-02-19 01:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:04:05 - End Time 2025-02-19 01:04:05 [2025-02-19 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506910', 'tblTempUsageDetail_20' ) start [2025-02-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506910', 'tblTempUsageDetail_20' ) end [2025-02-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506910', 'tblTempVendorCDR_20' ) start [2025-02-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506910', 'tblTempVendorCDR_20' ) end [2025-02-19 01:04:17] Production.INFO: ProcessCDR(1,14506910,1,1,2) [2025-02-19 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506910', 'tblTempUsageDetail_20' ) start [2025-02-19 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506910', 'tblTempUsageDetail_20' ) end [2025-02-19 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:04:20] Production.INFO: ==21108== Releasing lock... [2025-02-19 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:04:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:05:05 [end_date_ymd] => 2025-02-19 01:05:05 [RateCDR] => 1 ) [2025-02-19 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:05:05' and `end` < '2025-02-19 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:05:17] Production.INFO: count ==300 [2025-02-19 01:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:05:05 - End Time 2025-02-19 01:05:05 [2025-02-19 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506915', 'tblTempUsageDetail_20' ) start [2025-02-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506915', 'tblTempUsageDetail_20' ) end [2025-02-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506915', 'tblTempVendorCDR_20' ) start [2025-02-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506915', 'tblTempVendorCDR_20' ) end [2025-02-19 01:05:17] Production.INFO: ProcessCDR(1,14506915,1,1,2) [2025-02-19 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506915', 'tblTempUsageDetail_20' ) start [2025-02-19 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506915', 'tblTempUsageDetail_20' ) end [2025-02-19 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:05:20] Production.INFO: ==21188== Releasing lock... [2025-02-19 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:05:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:06:05 [end_date_ymd] => 2025-02-19 01:06:05 [RateCDR] => 1 ) [2025-02-19 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:06:05' and `end` < '2025-02-19 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:06:17] Production.INFO: count ==300 [2025-02-19 01:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:06:05 - End Time 2025-02-19 01:06:05 [2025-02-19 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506920', 'tblTempUsageDetail_20' ) start [2025-02-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506920', 'tblTempUsageDetail_20' ) end [2025-02-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506920', 'tblTempVendorCDR_20' ) start [2025-02-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506920', 'tblTempVendorCDR_20' ) end [2025-02-19 01:06:17] Production.INFO: ProcessCDR(1,14506920,1,1,2) [2025-02-19 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506920', 'tblTempUsageDetail_20' ) start [2025-02-19 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506920', 'tblTempUsageDetail_20' ) end [2025-02-19 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:06:21] Production.INFO: ==21283== Releasing lock... [2025-02-19 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:07:05 [end_date_ymd] => 2025-02-19 01:07:05 [RateCDR] => 1 ) [2025-02-19 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:07:05' and `end` < '2025-02-19 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:07:17] Production.INFO: count ==299 [2025-02-19 01:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:07:05 - End Time 2025-02-19 01:07:05 [2025-02-19 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506925', 'tblTempUsageDetail_20' ) start [2025-02-19 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506925', 'tblTempUsageDetail_20' ) end [2025-02-19 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506925', 'tblTempVendorCDR_20' ) start [2025-02-19 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506925', 'tblTempVendorCDR_20' ) end [2025-02-19 01:07:17] Production.INFO: ProcessCDR(1,14506925,1,1,2) [2025-02-19 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506925', 'tblTempUsageDetail_20' ) start [2025-02-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506925', 'tblTempUsageDetail_20' ) end [2025-02-19 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:07:21] Production.INFO: ==21362== Releasing lock... [2025-02-19 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:08:06 [end_date_ymd] => 2025-02-19 01:08:06 [RateCDR] => 1 ) [2025-02-19 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:08:06' and `end` < '2025-02-19 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:08:17] Production.INFO: count ==298 [2025-02-19 01:08:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:08:06 - End Time 2025-02-19 01:08:06 [2025-02-19 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506930', 'tblTempUsageDetail_20' ) start [2025-02-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506930', 'tblTempUsageDetail_20' ) end [2025-02-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506930', 'tblTempVendorCDR_20' ) start [2025-02-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506930', 'tblTempVendorCDR_20' ) end [2025-02-19 01:08:17] Production.INFO: ProcessCDR(1,14506930,1,1,2) [2025-02-19 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506930', 'tblTempUsageDetail_20' ) start [2025-02-19 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506930', 'tblTempUsageDetail_20' ) end [2025-02-19 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:08:20] Production.INFO: ==21466== Releasing lock... [2025-02-19 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:08:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:09:05 [end_date_ymd] => 2025-02-19 01:09:05 [RateCDR] => 1 ) [2025-02-19 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:09:05' and `end` < '2025-02-19 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:09:17] Production.INFO: count ==292 [2025-02-19 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:09:05 - End Time 2025-02-19 01:09:05 [2025-02-19 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506935', 'tblTempUsageDetail_20' ) start [2025-02-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506935', 'tblTempUsageDetail_20' ) end [2025-02-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506935', 'tblTempVendorCDR_20' ) start [2025-02-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506935', 'tblTempVendorCDR_20' ) end [2025-02-19 01:09:17] Production.INFO: ProcessCDR(1,14506935,1,1,2) [2025-02-19 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506935', 'tblTempUsageDetail_20' ) start [2025-02-19 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506935', 'tblTempUsageDetail_20' ) end [2025-02-19 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:09:20] Production.INFO: ==21535== Releasing lock... [2025-02-19 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:09:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:10:05 [end_date_ymd] => 2025-02-19 01:10:05 [RateCDR] => 1 ) [2025-02-19 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:10:05' and `end` < '2025-02-19 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:10:17] Production.INFO: count ==298 [2025-02-19 01:10:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:10:05 - End Time 2025-02-19 01:10:05 [2025-02-19 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506940', 'tblTempUsageDetail_20' ) start [2025-02-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506940', 'tblTempUsageDetail_20' ) end [2025-02-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506940', 'tblTempVendorCDR_20' ) start [2025-02-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506940', 'tblTempVendorCDR_20' ) end [2025-02-19 01:10:17] Production.INFO: ProcessCDR(1,14506940,1,1,2) [2025-02-19 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506940', 'tblTempUsageDetail_20' ) start [2025-02-19 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506940', 'tblTempUsageDetail_20' ) end [2025-02-19 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:10:21] Production.INFO: ==21680== Releasing lock... [2025-02-19 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:10:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:11:05 [end_date_ymd] => 2025-02-19 01:11:05 [RateCDR] => 1 ) [2025-02-19 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:11:05' and `end` < '2025-02-19 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:11:16] Production.INFO: count ==299 [2025-02-19 01:11:16] Production.ERROR: pbx CDR StartTime 2025-02-18 22:11:05 - End Time 2025-02-19 01:11:05 [2025-02-19 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506946', 'tblTempUsageDetail_20' ) start [2025-02-19 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506946', 'tblTempUsageDetail_20' ) end [2025-02-19 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506946', 'tblTempVendorCDR_20' ) start [2025-02-19 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506946', 'tblTempVendorCDR_20' ) end [2025-02-19 01:11:16] Production.INFO: ProcessCDR(1,14506946,1,1,2) [2025-02-19 01:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506946', 'tblTempUsageDetail_20' ) start [2025-02-19 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506946', 'tblTempUsageDetail_20' ) end [2025-02-19 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:11:20] Production.INFO: ==21763== Releasing lock... [2025-02-19 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:11:20] Production.INFO: 31 MB #Memory Used# [2025-02-19 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:12:05 [end_date_ymd] => 2025-02-19 01:12:05 [RateCDR] => 1 ) [2025-02-19 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:12:05' and `end` < '2025-02-19 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:12:17] Production.INFO: count ==299 [2025-02-19 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:12:05 - End Time 2025-02-19 01:12:05 [2025-02-19 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506950', 'tblTempUsageDetail_20' ) start [2025-02-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506950', 'tblTempUsageDetail_20' ) end [2025-02-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506950', 'tblTempVendorCDR_20' ) start [2025-02-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506950', 'tblTempVendorCDR_20' ) end [2025-02-19 01:12:17] Production.INFO: ProcessCDR(1,14506950,1,1,2) [2025-02-19 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506950', 'tblTempUsageDetail_20' ) start [2025-02-19 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506950', 'tblTempUsageDetail_20' ) end [2025-02-19 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:12:21] Production.INFO: ==21866== Releasing lock... [2025-02-19 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-19 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:13:05 [end_date_ymd] => 2025-02-19 01:13:05 [RateCDR] => 1 ) [2025-02-19 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:13:05' and `end` < '2025-02-19 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:13:17] Production.INFO: count ==295 [2025-02-19 01:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:13:05 - End Time 2025-02-19 01:13:05 [2025-02-19 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506956', 'tblTempUsageDetail_20' ) start [2025-02-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506956', 'tblTempUsageDetail_20' ) end [2025-02-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506956', 'tblTempVendorCDR_20' ) start [2025-02-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506956', 'tblTempVendorCDR_20' ) end [2025-02-19 01:13:17] Production.INFO: ProcessCDR(1,14506956,1,1,2) [2025-02-19 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506956', 'tblTempUsageDetail_20' ) start [2025-02-19 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506956', 'tblTempUsageDetail_20' ) end [2025-02-19 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:13:21] Production.INFO: ==21940== Releasing lock... [2025-02-19 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:14:06 [end_date_ymd] => 2025-02-19 01:14:06 [RateCDR] => 1 ) [2025-02-19 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:14:06' and `end` < '2025-02-19 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:14:17] Production.INFO: count ==289 [2025-02-19 01:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:14:06 - End Time 2025-02-19 01:14:06 [2025-02-19 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506961', 'tblTempUsageDetail_20' ) start [2025-02-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506961', 'tblTempUsageDetail_20' ) end [2025-02-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506961', 'tblTempVendorCDR_20' ) start [2025-02-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506961', 'tblTempVendorCDR_20' ) end [2025-02-19 01:14:18] Production.INFO: ProcessCDR(1,14506961,1,1,2) [2025-02-19 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506961', 'tblTempUsageDetail_20' ) start [2025-02-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506961', 'tblTempUsageDetail_20' ) end [2025-02-19 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:14:21] Production.INFO: ==22041== Releasing lock... [2025-02-19 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:15:05 [end_date_ymd] => 2025-02-19 01:15:05 [RateCDR] => 1 ) [2025-02-19 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:15:05' and `end` < '2025-02-19 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:15:17] Production.INFO: count ==284 [2025-02-19 01:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:15:05 - End Time 2025-02-19 01:15:05 [2025-02-19 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506966', 'tblTempUsageDetail_20' ) start [2025-02-19 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506966', 'tblTempUsageDetail_20' ) end [2025-02-19 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506966', 'tblTempVendorCDR_20' ) start [2025-02-19 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506966', 'tblTempVendorCDR_20' ) end [2025-02-19 01:15:17] Production.INFO: ProcessCDR(1,14506966,1,1,2) [2025-02-19 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506966', 'tblTempUsageDetail_20' ) start [2025-02-19 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506966', 'tblTempUsageDetail_20' ) end [2025-02-19 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:15:20] Production.INFO: ==22120== Releasing lock... [2025-02-19 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:15:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:16:06 [end_date_ymd] => 2025-02-19 01:16:06 [RateCDR] => 1 ) [2025-02-19 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:16:06' and `end` < '2025-02-19 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:16:17] Production.INFO: count ==281 [2025-02-19 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:16:06 - End Time 2025-02-19 01:16:06 [2025-02-19 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506971', 'tblTempUsageDetail_20' ) start [2025-02-19 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506971', 'tblTempUsageDetail_20' ) end [2025-02-19 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506971', 'tblTempVendorCDR_20' ) start [2025-02-19 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506971', 'tblTempVendorCDR_20' ) end [2025-02-19 01:16:17] Production.INFO: ProcessCDR(1,14506971,1,1,2) [2025-02-19 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506971', 'tblTempUsageDetail_20' ) start [2025-02-19 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506971', 'tblTempUsageDetail_20' ) end [2025-02-19 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:16:20] Production.INFO: ==22212== Releasing lock... [2025-02-19 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:16:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:17:05 [end_date_ymd] => 2025-02-19 01:17:05 [RateCDR] => 1 ) [2025-02-19 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:17:05' and `end` < '2025-02-19 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:17:17] Production.INFO: count ==274 [2025-02-19 01:17:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:17:05 - End Time 2025-02-19 01:17:05 [2025-02-19 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506976', 'tblTempUsageDetail_20' ) start [2025-02-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506976', 'tblTempUsageDetail_20' ) end [2025-02-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506976', 'tblTempVendorCDR_20' ) start [2025-02-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506976', 'tblTempVendorCDR_20' ) end [2025-02-19 01:17:17] Production.INFO: ProcessCDR(1,14506976,1,1,2) [2025-02-19 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506976', 'tblTempUsageDetail_20' ) start [2025-02-19 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506976', 'tblTempUsageDetail_20' ) end [2025-02-19 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:17:21] Production.INFO: ==22295== Releasing lock... [2025-02-19 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:18:05 [end_date_ymd] => 2025-02-19 01:18:05 [RateCDR] => 1 ) [2025-02-19 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:18:05' and `end` < '2025-02-19 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:18:17] Production.INFO: count ==266 [2025-02-19 01:18:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:18:05 - End Time 2025-02-19 01:18:05 [2025-02-19 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506981', 'tblTempUsageDetail_20' ) start [2025-02-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506981', 'tblTempUsageDetail_20' ) end [2025-02-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506981', 'tblTempVendorCDR_20' ) start [2025-02-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506981', 'tblTempVendorCDR_20' ) end [2025-02-19 01:18:17] Production.INFO: ProcessCDR(1,14506981,1,1,2) [2025-02-19 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506981', 'tblTempUsageDetail_20' ) start [2025-02-19 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506981', 'tblTempUsageDetail_20' ) end [2025-02-19 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:18:21] Production.INFO: ==22387== Releasing lock... [2025-02-19 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:19:05 [end_date_ymd] => 2025-02-19 01:19:05 [RateCDR] => 1 ) [2025-02-19 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:19:05' and `end` < '2025-02-19 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:19:17] Production.INFO: count ==262 [2025-02-19 01:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:19:05 - End Time 2025-02-19 01:19:05 [2025-02-19 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506986', 'tblTempUsageDetail_20' ) start [2025-02-19 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506986', 'tblTempUsageDetail_20' ) end [2025-02-19 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506986', 'tblTempVendorCDR_20' ) start [2025-02-19 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506986', 'tblTempVendorCDR_20' ) end [2025-02-19 01:19:17] Production.INFO: ProcessCDR(1,14506986,1,1,2) [2025-02-19 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506986', 'tblTempUsageDetail_20' ) start [2025-02-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506986', 'tblTempUsageDetail_20' ) end [2025-02-19 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:19:21] Production.INFO: ==22469== Releasing lock... [2025-02-19 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:20:06 [end_date_ymd] => 2025-02-19 01:20:06 [RateCDR] => 1 ) [2025-02-19 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:20:06' and `end` < '2025-02-19 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:20:18] Production.INFO: count ==265 [2025-02-19 01:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:20:06 - End Time 2025-02-19 01:20:06 [2025-02-19 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506992', 'tblTempUsageDetail_20' ) start [2025-02-19 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506992', 'tblTempUsageDetail_20' ) end [2025-02-19 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506992', 'tblTempVendorCDR_20' ) start [2025-02-19 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506992', 'tblTempVendorCDR_20' ) end [2025-02-19 01:20:18] Production.INFO: ProcessCDR(1,14506992,1,1,2) [2025-02-19 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506992', 'tblTempUsageDetail_20' ) start [2025-02-19 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506992', 'tblTempUsageDetail_20' ) end [2025-02-19 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:20:21] Production.INFO: ==22559== Releasing lock... [2025-02-19 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:21:05 [end_date_ymd] => 2025-02-19 01:21:05 [RateCDR] => 1 ) [2025-02-19 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:21:05' and `end` < '2025-02-19 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:21:16] Production.INFO: count ==262 [2025-02-19 01:21:16] Production.ERROR: pbx CDR StartTime 2025-02-18 22:21:05 - End Time 2025-02-19 01:21:05 [2025-02-19 01:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506997', 'tblTempUsageDetail_20' ) start [2025-02-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14506997', 'tblTempUsageDetail_20' ) end [2025-02-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506997', 'tblTempVendorCDR_20' ) start [2025-02-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14506997', 'tblTempVendorCDR_20' ) end [2025-02-19 01:21:17] Production.INFO: ProcessCDR(1,14506997,1,1,2) [2025-02-19 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14506997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14506997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14506997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14506997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506997', 'tblTempUsageDetail_20' ) start [2025-02-19 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14506997', 'tblTempUsageDetail_20' ) end [2025-02-19 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:21:20] Production.INFO: ==22650== Releasing lock... [2025-02-19 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:21:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:22:06 [end_date_ymd] => 2025-02-19 01:22:06 [RateCDR] => 1 ) [2025-02-19 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:22:06' and `end` < '2025-02-19 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:22:17] Production.INFO: count ==262 [2025-02-19 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:22:06 - End Time 2025-02-19 01:22:06 [2025-02-19 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507002', 'tblTempUsageDetail_20' ) start [2025-02-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507002', 'tblTempUsageDetail_20' ) end [2025-02-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507002', 'tblTempVendorCDR_20' ) start [2025-02-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507002', 'tblTempVendorCDR_20' ) end [2025-02-19 01:22:17] Production.INFO: ProcessCDR(1,14507002,1,1,2) [2025-02-19 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507002', 'tblTempUsageDetail_20' ) start [2025-02-19 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507002', 'tblTempUsageDetail_20' ) end [2025-02-19 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:22:21] Production.INFO: ==22741== Releasing lock... [2025-02-19 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:23:05 [end_date_ymd] => 2025-02-19 01:23:05 [RateCDR] => 1 ) [2025-02-19 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:23:05' and `end` < '2025-02-19 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:23:16] Production.INFO: count ==257 [2025-02-19 01:23:16] Production.ERROR: pbx CDR StartTime 2025-02-18 22:23:05 - End Time 2025-02-19 01:23:05 [2025-02-19 01:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507007', 'tblTempUsageDetail_20' ) start [2025-02-19 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507007', 'tblTempUsageDetail_20' ) end [2025-02-19 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507007', 'tblTempVendorCDR_20' ) start [2025-02-19 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507007', 'tblTempVendorCDR_20' ) end [2025-02-19 01:23:16] Production.INFO: ProcessCDR(1,14507007,1,1,2) [2025-02-19 01:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507007', 'tblTempUsageDetail_20' ) start [2025-02-19 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507007', 'tblTempUsageDetail_20' ) end [2025-02-19 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:23:20] Production.INFO: ==22814== Releasing lock... [2025-02-19 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:24:05 [end_date_ymd] => 2025-02-19 01:24:05 [RateCDR] => 1 ) [2025-02-19 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:24:05' and `end` < '2025-02-19 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:24:17] Production.INFO: count ==249 [2025-02-19 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:24:05 - End Time 2025-02-19 01:24:05 [2025-02-19 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507012', 'tblTempUsageDetail_20' ) start [2025-02-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507012', 'tblTempUsageDetail_20' ) end [2025-02-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507012', 'tblTempVendorCDR_20' ) start [2025-02-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507012', 'tblTempVendorCDR_20' ) end [2025-02-19 01:24:17] Production.INFO: ProcessCDR(1,14507012,1,1,2) [2025-02-19 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507012', 'tblTempUsageDetail_20' ) start [2025-02-19 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507012', 'tblTempUsageDetail_20' ) end [2025-02-19 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:24:20] Production.INFO: ==22887== Releasing lock... [2025-02-19 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:25:04 [end_date_ymd] => 2025-02-19 01:25:04 [RateCDR] => 1 ) [2025-02-19 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:25:04' and `end` < '2025-02-19 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:25:16] Production.INFO: count ==248 [2025-02-19 01:25:16] Production.ERROR: pbx CDR StartTime 2025-02-18 22:25:04 - End Time 2025-02-19 01:25:04 [2025-02-19 01:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507017', 'tblTempUsageDetail_20' ) start [2025-02-19 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507017', 'tblTempUsageDetail_20' ) end [2025-02-19 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507017', 'tblTempVendorCDR_20' ) start [2025-02-19 01:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507017', 'tblTempVendorCDR_20' ) end [2025-02-19 01:25:16] Production.INFO: ProcessCDR(1,14507017,1,1,2) [2025-02-19 01:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507017', 'tblTempUsageDetail_20' ) start [2025-02-19 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507017', 'tblTempUsageDetail_20' ) end [2025-02-19 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:25:20] Production.INFO: ==22957== Releasing lock... [2025-02-19 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:26:05 [end_date_ymd] => 2025-02-19 01:26:05 [RateCDR] => 1 ) [2025-02-19 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:26:05' and `end` < '2025-02-19 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:26:17] Production.INFO: count ==243 [2025-02-19 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:26:05 - End Time 2025-02-19 01:26:05 [2025-02-19 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507022', 'tblTempUsageDetail_20' ) start [2025-02-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507022', 'tblTempUsageDetail_20' ) end [2025-02-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507022', 'tblTempVendorCDR_20' ) start [2025-02-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507022', 'tblTempVendorCDR_20' ) end [2025-02-19 01:26:17] Production.INFO: ProcessCDR(1,14507022,1,1,2) [2025-02-19 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507022', 'tblTempUsageDetail_20' ) start [2025-02-19 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507022', 'tblTempUsageDetail_20' ) end [2025-02-19 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:26:20] Production.INFO: ==23068== Releasing lock... [2025-02-19 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:27:05 [end_date_ymd] => 2025-02-19 01:27:05 [RateCDR] => 1 ) [2025-02-19 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:27:05' and `end` < '2025-02-19 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:27:17] Production.INFO: count ==240 [2025-02-19 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:27:05 - End Time 2025-02-19 01:27:05 [2025-02-19 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507027', 'tblTempUsageDetail_20' ) start [2025-02-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507027', 'tblTempUsageDetail_20' ) end [2025-02-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507027', 'tblTempVendorCDR_20' ) start [2025-02-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507027', 'tblTempVendorCDR_20' ) end [2025-02-19 01:27:17] Production.INFO: ProcessCDR(1,14507027,1,1,2) [2025-02-19 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507027', 'tblTempUsageDetail_20' ) start [2025-02-19 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507027', 'tblTempUsageDetail_20' ) end [2025-02-19 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:27:21] Production.INFO: ==23146== Releasing lock... [2025-02-19 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:28:05 [end_date_ymd] => 2025-02-19 01:28:05 [RateCDR] => 1 ) [2025-02-19 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:28:05' and `end` < '2025-02-19 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:28:17] Production.INFO: count ==235 [2025-02-19 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:28:05 - End Time 2025-02-19 01:28:05 [2025-02-19 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507032', 'tblTempUsageDetail_20' ) start [2025-02-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507032', 'tblTempUsageDetail_20' ) end [2025-02-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507032', 'tblTempVendorCDR_20' ) start [2025-02-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507032', 'tblTempVendorCDR_20' ) end [2025-02-19 01:28:17] Production.INFO: ProcessCDR(1,14507032,1,1,2) [2025-02-19 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507032', 'tblTempUsageDetail_20' ) start [2025-02-19 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507032', 'tblTempUsageDetail_20' ) end [2025-02-19 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:28:20] Production.INFO: ==23221== Releasing lock... [2025-02-19 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:29:06 [end_date_ymd] => 2025-02-19 01:29:06 [RateCDR] => 1 ) [2025-02-19 01:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:29:06' and `end` < '2025-02-19 01:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:29:18] Production.INFO: count ==232 [2025-02-19 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:29:06 - End Time 2025-02-19 01:29:06 [2025-02-19 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507037', 'tblTempUsageDetail_20' ) start [2025-02-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507037', 'tblTempUsageDetail_20' ) end [2025-02-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507037', 'tblTempVendorCDR_20' ) start [2025-02-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507037', 'tblTempVendorCDR_20' ) end [2025-02-19 01:29:18] Production.INFO: ProcessCDR(1,14507037,1,1,2) [2025-02-19 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507037', 'tblTempUsageDetail_20' ) start [2025-02-19 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507037', 'tblTempUsageDetail_20' ) end [2025-02-19 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:29:21] Production.INFO: ==23292== Releasing lock... [2025-02-19 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:30:06 [end_date_ymd] => 2025-02-19 01:30:06 [RateCDR] => 1 ) [2025-02-19 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:30:06' and `end` < '2025-02-19 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:30:17] Production.INFO: count ==237 [2025-02-19 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:30:06 - End Time 2025-02-19 01:30:06 [2025-02-19 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507043', 'tblTempUsageDetail_20' ) start [2025-02-19 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507043', 'tblTempUsageDetail_20' ) end [2025-02-19 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507043', 'tblTempVendorCDR_20' ) start [2025-02-19 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507043', 'tblTempVendorCDR_20' ) end [2025-02-19 01:30:18] Production.INFO: ProcessCDR(1,14507043,1,1,2) [2025-02-19 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507043', 'tblTempUsageDetail_20' ) start [2025-02-19 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507043', 'tblTempUsageDetail_20' ) end [2025-02-19 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:30:22] Production.INFO: ==23366== Releasing lock... [2025-02-19 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:31:05 [end_date_ymd] => 2025-02-19 01:31:05 [RateCDR] => 1 ) [2025-02-19 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:31:05' and `end` < '2025-02-19 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:31:17] Production.INFO: count ==245 [2025-02-19 01:31:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:31:05 - End Time 2025-02-19 01:31:05 [2025-02-19 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507048', 'tblTempUsageDetail_20' ) start [2025-02-19 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507048', 'tblTempUsageDetail_20' ) end [2025-02-19 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507048', 'tblTempVendorCDR_20' ) start [2025-02-19 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507048', 'tblTempVendorCDR_20' ) end [2025-02-19 01:31:17] Production.INFO: ProcessCDR(1,14507048,1,1,2) [2025-02-19 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507048', 'tblTempUsageDetail_20' ) start [2025-02-19 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507048', 'tblTempUsageDetail_20' ) end [2025-02-19 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:31:22] Production.INFO: ==23442== Releasing lock... [2025-02-19 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:32:05 [end_date_ymd] => 2025-02-19 01:32:05 [RateCDR] => 1 ) [2025-02-19 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:32:05' and `end` < '2025-02-19 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:32:17] Production.INFO: count ==245 [2025-02-19 01:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:32:05 - End Time 2025-02-19 01:32:05 [2025-02-19 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507053', 'tblTempUsageDetail_20' ) start [2025-02-19 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507053', 'tblTempUsageDetail_20' ) end [2025-02-19 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507053', 'tblTempVendorCDR_20' ) start [2025-02-19 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507053', 'tblTempVendorCDR_20' ) end [2025-02-19 01:32:17] Production.INFO: ProcessCDR(1,14507053,1,1,2) [2025-02-19 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507053', 'tblTempUsageDetail_20' ) start [2025-02-19 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507053', 'tblTempUsageDetail_20' ) end [2025-02-19 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:32:20] Production.INFO: ==23511== Releasing lock... [2025-02-19 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:33:05 [end_date_ymd] => 2025-02-19 01:33:05 [RateCDR] => 1 ) [2025-02-19 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:33:05' and `end` < '2025-02-19 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:33:17] Production.INFO: count ==246 [2025-02-19 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:33:05 - End Time 2025-02-19 01:33:05 [2025-02-19 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507058', 'tblTempUsageDetail_20' ) start [2025-02-19 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507058', 'tblTempUsageDetail_20' ) end [2025-02-19 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507058', 'tblTempVendorCDR_20' ) start [2025-02-19 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507058', 'tblTempVendorCDR_20' ) end [2025-02-19 01:33:17] Production.INFO: ProcessCDR(1,14507058,1,1,2) [2025-02-19 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507058', 'tblTempUsageDetail_20' ) start [2025-02-19 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507058', 'tblTempUsageDetail_20' ) end [2025-02-19 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:33:22] Production.INFO: ==23581== Releasing lock... [2025-02-19 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:34:05 [end_date_ymd] => 2025-02-19 01:34:05 [RateCDR] => 1 ) [2025-02-19 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:34:05' and `end` < '2025-02-19 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:34:17] Production.INFO: count ==251 [2025-02-19 01:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:34:05 - End Time 2025-02-19 01:34:05 [2025-02-19 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507063', 'tblTempUsageDetail_20' ) start [2025-02-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507063', 'tblTempUsageDetail_20' ) end [2025-02-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507063', 'tblTempVendorCDR_20' ) start [2025-02-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507063', 'tblTempVendorCDR_20' ) end [2025-02-19 01:34:17] Production.INFO: ProcessCDR(1,14507063,1,1,2) [2025-02-19 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507063', 'tblTempUsageDetail_20' ) start [2025-02-19 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507063', 'tblTempUsageDetail_20' ) end [2025-02-19 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:34:22] Production.INFO: ==23652== Releasing lock... [2025-02-19 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:35:06 [end_date_ymd] => 2025-02-19 01:35:06 [RateCDR] => 1 ) [2025-02-19 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:35:06' and `end` < '2025-02-19 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:35:17] Production.INFO: count ==250 [2025-02-19 01:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:35:06 - End Time 2025-02-19 01:35:06 [2025-02-19 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507068', 'tblTempUsageDetail_20' ) start [2025-02-19 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507068', 'tblTempUsageDetail_20' ) end [2025-02-19 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507068', 'tblTempVendorCDR_20' ) start [2025-02-19 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507068', 'tblTempVendorCDR_20' ) end [2025-02-19 01:35:18] Production.INFO: ProcessCDR(1,14507068,1,1,2) [2025-02-19 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507068', 'tblTempUsageDetail_20' ) start [2025-02-19 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507068', 'tblTempUsageDetail_20' ) end [2025-02-19 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:35:21] Production.INFO: ==23723== Releasing lock... [2025-02-19 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:36:06 [end_date_ymd] => 2025-02-19 01:36:06 [RateCDR] => 1 ) [2025-02-19 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:36:06' and `end` < '2025-02-19 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:36:17] Production.INFO: count ==255 [2025-02-19 01:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:36:06 - End Time 2025-02-19 01:36:06 [2025-02-19 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507073', 'tblTempUsageDetail_20' ) start [2025-02-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507073', 'tblTempUsageDetail_20' ) end [2025-02-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507073', 'tblTempVendorCDR_20' ) start [2025-02-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507073', 'tblTempVendorCDR_20' ) end [2025-02-19 01:36:17] Production.INFO: ProcessCDR(1,14507073,1,1,2) [2025-02-19 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507073', 'tblTempUsageDetail_20' ) start [2025-02-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507073', 'tblTempUsageDetail_20' ) end [2025-02-19 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:36:21] Production.INFO: ==23792== Releasing lock... [2025-02-19 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:37:06 [end_date_ymd] => 2025-02-19 01:37:06 [RateCDR] => 1 ) [2025-02-19 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:37:06' and `end` < '2025-02-19 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:37:18] Production.INFO: count ==253 [2025-02-19 01:37:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:37:06 - End Time 2025-02-19 01:37:06 [2025-02-19 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507078', 'tblTempUsageDetail_20' ) start [2025-02-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507078', 'tblTempUsageDetail_20' ) end [2025-02-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507078', 'tblTempVendorCDR_20' ) start [2025-02-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507078', 'tblTempVendorCDR_20' ) end [2025-02-19 01:37:18] Production.INFO: ProcessCDR(1,14507078,1,1,2) [2025-02-19 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507078', 'tblTempUsageDetail_20' ) start [2025-02-19 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507078', 'tblTempUsageDetail_20' ) end [2025-02-19 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:37:21] Production.INFO: ==23863== Releasing lock... [2025-02-19 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:38:06 [end_date_ymd] => 2025-02-19 01:38:06 [RateCDR] => 1 ) [2025-02-19 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:38:06' and `end` < '2025-02-19 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:38:17] Production.INFO: count ==254 [2025-02-19 01:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:38:06 - End Time 2025-02-19 01:38:06 [2025-02-19 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507083', 'tblTempUsageDetail_20' ) start [2025-02-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507083', 'tblTempUsageDetail_20' ) end [2025-02-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507083', 'tblTempVendorCDR_20' ) start [2025-02-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507083', 'tblTempVendorCDR_20' ) end [2025-02-19 01:38:17] Production.INFO: ProcessCDR(1,14507083,1,1,2) [2025-02-19 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507083', 'tblTempUsageDetail_20' ) start [2025-02-19 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507083', 'tblTempUsageDetail_20' ) end [2025-02-19 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:38:21] Production.INFO: ==23933== Releasing lock... [2025-02-19 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:39:06 [end_date_ymd] => 2025-02-19 01:39:06 [RateCDR] => 1 ) [2025-02-19 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:39:06' and `end` < '2025-02-19 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:39:17] Production.INFO: count ==256 [2025-02-19 01:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:39:06 - End Time 2025-02-19 01:39:06 [2025-02-19 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507088', 'tblTempUsageDetail_20' ) start [2025-02-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507088', 'tblTempUsageDetail_20' ) end [2025-02-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507088', 'tblTempVendorCDR_20' ) start [2025-02-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507088', 'tblTempVendorCDR_20' ) end [2025-02-19 01:39:17] Production.INFO: ProcessCDR(1,14507088,1,1,2) [2025-02-19 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507088', 'tblTempUsageDetail_20' ) start [2025-02-19 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507088', 'tblTempUsageDetail_20' ) end [2025-02-19 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:39:21] Production.INFO: ==24003== Releasing lock... [2025-02-19 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:40:06 [end_date_ymd] => 2025-02-19 01:40:06 [RateCDR] => 1 ) [2025-02-19 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:40:06' and `end` < '2025-02-19 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:40:18] Production.INFO: count ==264 [2025-02-19 01:40:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:40:06 - End Time 2025-02-19 01:40:06 [2025-02-19 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507093', 'tblTempUsageDetail_20' ) start [2025-02-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507093', 'tblTempUsageDetail_20' ) end [2025-02-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507093', 'tblTempVendorCDR_20' ) start [2025-02-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507093', 'tblTempVendorCDR_20' ) end [2025-02-19 01:40:18] Production.INFO: ProcessCDR(1,14507093,1,1,2) [2025-02-19 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507093', 'tblTempUsageDetail_20' ) start [2025-02-19 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507093', 'tblTempUsageDetail_20' ) end [2025-02-19 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:40:22] Production.INFO: ==24076== Releasing lock... [2025-02-19 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:41:06 [end_date_ymd] => 2025-02-19 01:41:06 [RateCDR] => 1 ) [2025-02-19 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:41:06' and `end` < '2025-02-19 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:41:18] Production.INFO: count ==271 [2025-02-19 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:41:06 - End Time 2025-02-19 01:41:06 [2025-02-19 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507099', 'tblTempUsageDetail_20' ) start [2025-02-19 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507099', 'tblTempUsageDetail_20' ) end [2025-02-19 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507099', 'tblTempVendorCDR_20' ) start [2025-02-19 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507099', 'tblTempVendorCDR_20' ) end [2025-02-19 01:41:18] Production.INFO: ProcessCDR(1,14507099,1,1,2) [2025-02-19 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507099', 'tblTempUsageDetail_20' ) start [2025-02-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507099', 'tblTempUsageDetail_20' ) end [2025-02-19 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:41:21] Production.INFO: ==24190== Releasing lock... [2025-02-19 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:42:06 [end_date_ymd] => 2025-02-19 01:42:06 [RateCDR] => 1 ) [2025-02-19 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:42:06' and `end` < '2025-02-19 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:42:17] Production.INFO: count ==289 [2025-02-19 01:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:42:06 - End Time 2025-02-19 01:42:06 [2025-02-19 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507104', 'tblTempUsageDetail_20' ) start [2025-02-19 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507104', 'tblTempUsageDetail_20' ) end [2025-02-19 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507104', 'tblTempVendorCDR_20' ) start [2025-02-19 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507104', 'tblTempVendorCDR_20' ) end [2025-02-19 01:42:17] Production.INFO: ProcessCDR(1,14507104,1,1,2) [2025-02-19 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507104', 'tblTempUsageDetail_20' ) start [2025-02-19 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507104', 'tblTempUsageDetail_20' ) end [2025-02-19 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:42:21] Production.INFO: ==24262== Releasing lock... [2025-02-19 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:43:06 [end_date_ymd] => 2025-02-19 01:43:06 [RateCDR] => 1 ) [2025-02-19 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:43:06' and `end` < '2025-02-19 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:43:17] Production.INFO: count ==291 [2025-02-19 01:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:43:06 - End Time 2025-02-19 01:43:06 [2025-02-19 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507109', 'tblTempUsageDetail_20' ) start [2025-02-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507109', 'tblTempUsageDetail_20' ) end [2025-02-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507109', 'tblTempVendorCDR_20' ) start [2025-02-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507109', 'tblTempVendorCDR_20' ) end [2025-02-19 01:43:17] Production.INFO: ProcessCDR(1,14507109,1,1,2) [2025-02-19 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507109', 'tblTempUsageDetail_20' ) start [2025-02-19 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507109', 'tblTempUsageDetail_20' ) end [2025-02-19 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:43:22] Production.INFO: ==24333== Releasing lock... [2025-02-19 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:44:05 [end_date_ymd] => 2025-02-19 01:44:05 [RateCDR] => 1 ) [2025-02-19 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:44:05' and `end` < '2025-02-19 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:44:17] Production.INFO: count ==290 [2025-02-19 01:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:44:05 - End Time 2025-02-19 01:44:05 [2025-02-19 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507114', 'tblTempUsageDetail_20' ) start [2025-02-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507114', 'tblTempUsageDetail_20' ) end [2025-02-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507114', 'tblTempVendorCDR_20' ) start [2025-02-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507114', 'tblTempVendorCDR_20' ) end [2025-02-19 01:44:17] Production.INFO: ProcessCDR(1,14507114,1,1,2) [2025-02-19 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507114', 'tblTempUsageDetail_20' ) start [2025-02-19 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507114', 'tblTempUsageDetail_20' ) end [2025-02-19 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:44:20] Production.INFO: ==24403== Releasing lock... [2025-02-19 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:45:06 [end_date_ymd] => 2025-02-19 01:45:06 [RateCDR] => 1 ) [2025-02-19 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:45:06' and `end` < '2025-02-19 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:45:17] Production.INFO: count ==290 [2025-02-19 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:45:06 - End Time 2025-02-19 01:45:06 [2025-02-19 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507119', 'tblTempUsageDetail_20' ) start [2025-02-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507119', 'tblTempUsageDetail_20' ) end [2025-02-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507119', 'tblTempVendorCDR_20' ) start [2025-02-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507119', 'tblTempVendorCDR_20' ) end [2025-02-19 01:45:17] Production.INFO: ProcessCDR(1,14507119,1,1,2) [2025-02-19 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507119', 'tblTempUsageDetail_20' ) start [2025-02-19 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507119', 'tblTempUsageDetail_20' ) end [2025-02-19 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:45:21] Production.INFO: ==24473== Releasing lock... [2025-02-19 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:46:05 [end_date_ymd] => 2025-02-19 01:46:05 [RateCDR] => 1 ) [2025-02-19 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:46:05' and `end` < '2025-02-19 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:46:17] Production.INFO: count ==290 [2025-02-19 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:46:05 - End Time 2025-02-19 01:46:05 [2025-02-19 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507124', 'tblTempUsageDetail_20' ) start [2025-02-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507124', 'tblTempUsageDetail_20' ) end [2025-02-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507124', 'tblTempVendorCDR_20' ) start [2025-02-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507124', 'tblTempVendorCDR_20' ) end [2025-02-19 01:46:17] Production.INFO: ProcessCDR(1,14507124,1,1,2) [2025-02-19 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507124', 'tblTempUsageDetail_20' ) start [2025-02-19 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507124', 'tblTempUsageDetail_20' ) end [2025-02-19 01:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:46:20] Production.INFO: ==24547== Releasing lock... [2025-02-19 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:47:06 [end_date_ymd] => 2025-02-19 01:47:06 [RateCDR] => 1 ) [2025-02-19 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:47:06' and `end` < '2025-02-19 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:47:18] Production.INFO: count ==293 [2025-02-19 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:47:06 - End Time 2025-02-19 01:47:06 [2025-02-19 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507129', 'tblTempUsageDetail_20' ) start [2025-02-19 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507129', 'tblTempUsageDetail_20' ) end [2025-02-19 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507129', 'tblTempVendorCDR_20' ) start [2025-02-19 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507129', 'tblTempVendorCDR_20' ) end [2025-02-19 01:47:18] Production.INFO: ProcessCDR(1,14507129,1,1,2) [2025-02-19 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507129', 'tblTempUsageDetail_20' ) start [2025-02-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507129', 'tblTempUsageDetail_20' ) end [2025-02-19 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:47:21] Production.INFO: ==24618== Releasing lock... [2025-02-19 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:48:05 [end_date_ymd] => 2025-02-19 01:48:05 [RateCDR] => 1 ) [2025-02-19 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:48:05' and `end` < '2025-02-19 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:48:17] Production.INFO: count ==294 [2025-02-19 01:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:48:05 - End Time 2025-02-19 01:48:05 [2025-02-19 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507134', 'tblTempUsageDetail_20' ) start [2025-02-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507134', 'tblTempUsageDetail_20' ) end [2025-02-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507134', 'tblTempVendorCDR_20' ) start [2025-02-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507134', 'tblTempVendorCDR_20' ) end [2025-02-19 01:48:17] Production.INFO: ProcessCDR(1,14507134,1,1,2) [2025-02-19 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507134', 'tblTempUsageDetail_20' ) start [2025-02-19 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507134', 'tblTempUsageDetail_20' ) end [2025-02-19 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:48:22] Production.INFO: ==24688== Releasing lock... [2025-02-19 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:49:06 [end_date_ymd] => 2025-02-19 01:49:06 [RateCDR] => 1 ) [2025-02-19 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:49:06' and `end` < '2025-02-19 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:49:18] Production.INFO: count ==294 [2025-02-19 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:49:06 - End Time 2025-02-19 01:49:06 [2025-02-19 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507139', 'tblTempUsageDetail_20' ) start [2025-02-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507139', 'tblTempUsageDetail_20' ) end [2025-02-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507139', 'tblTempVendorCDR_20' ) start [2025-02-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507139', 'tblTempVendorCDR_20' ) end [2025-02-19 01:49:18] Production.INFO: ProcessCDR(1,14507139,1,1,2) [2025-02-19 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507139', 'tblTempUsageDetail_20' ) start [2025-02-19 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507139', 'tblTempUsageDetail_20' ) end [2025-02-19 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:49:21] Production.INFO: ==24763== Releasing lock... [2025-02-19 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:50:06 [end_date_ymd] => 2025-02-19 01:50:06 [RateCDR] => 1 ) [2025-02-19 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:50:06' and `end` < '2025-02-19 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:50:18] Production.INFO: count ==288 [2025-02-19 01:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 22:50:06 - End Time 2025-02-19 01:50:06 [2025-02-19 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507144', 'tblTempUsageDetail_20' ) start [2025-02-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507144', 'tblTempUsageDetail_20' ) end [2025-02-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507144', 'tblTempVendorCDR_20' ) start [2025-02-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507144', 'tblTempVendorCDR_20' ) end [2025-02-19 01:50:18] Production.INFO: ProcessCDR(1,14507144,1,1,2) [2025-02-19 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507144', 'tblTempUsageDetail_20' ) start [2025-02-19 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507144', 'tblTempUsageDetail_20' ) end [2025-02-19 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:50:21] Production.INFO: ==24837== Releasing lock... [2025-02-19 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:51:05 [end_date_ymd] => 2025-02-19 01:51:05 [RateCDR] => 1 ) [2025-02-19 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:51:05' and `end` < '2025-02-19 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:51:16] Production.INFO: count ==288 [2025-02-19 01:51:16] Production.ERROR: pbx CDR StartTime 2025-02-18 22:51:05 - End Time 2025-02-19 01:51:05 [2025-02-19 01:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507150', 'tblTempUsageDetail_20' ) start [2025-02-19 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507150', 'tblTempUsageDetail_20' ) end [2025-02-19 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507150', 'tblTempVendorCDR_20' ) start [2025-02-19 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507150', 'tblTempVendorCDR_20' ) end [2025-02-19 01:51:16] Production.INFO: ProcessCDR(1,14507150,1,1,2) [2025-02-19 01:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507150', 'tblTempUsageDetail_20' ) start [2025-02-19 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507150', 'tblTempUsageDetail_20' ) end [2025-02-19 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:51:20] Production.INFO: ==24910== Releasing lock... [2025-02-19 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:52:05 [end_date_ymd] => 2025-02-19 01:52:05 [RateCDR] => 1 ) [2025-02-19 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:52:05' and `end` < '2025-02-19 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:52:17] Production.INFO: count ==284 [2025-02-19 01:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:52:05 - End Time 2025-02-19 01:52:05 [2025-02-19 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507155', 'tblTempUsageDetail_20' ) start [2025-02-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507155', 'tblTempUsageDetail_20' ) end [2025-02-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507155', 'tblTempVendorCDR_20' ) start [2025-02-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507155', 'tblTempVendorCDR_20' ) end [2025-02-19 01:52:17] Production.INFO: ProcessCDR(1,14507155,1,1,2) [2025-02-19 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507155', 'tblTempUsageDetail_20' ) start [2025-02-19 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507155', 'tblTempUsageDetail_20' ) end [2025-02-19 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:52:21] Production.INFO: ==24981== Releasing lock... [2025-02-19 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:53:05 [end_date_ymd] => 2025-02-19 01:53:05 [RateCDR] => 1 ) [2025-02-19 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:53:05' and `end` < '2025-02-19 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:53:17] Production.INFO: count ==284 [2025-02-19 01:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:53:05 - End Time 2025-02-19 01:53:05 [2025-02-19 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507160', 'tblTempUsageDetail_20' ) start [2025-02-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507160', 'tblTempUsageDetail_20' ) end [2025-02-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507160', 'tblTempVendorCDR_20' ) start [2025-02-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507160', 'tblTempVendorCDR_20' ) end [2025-02-19 01:53:17] Production.INFO: ProcessCDR(1,14507160,1,1,2) [2025-02-19 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507160', 'tblTempUsageDetail_20' ) start [2025-02-19 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507160', 'tblTempUsageDetail_20' ) end [2025-02-19 01:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:53:20] Production.INFO: ==25052== Releasing lock... [2025-02-19 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:53:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:54:05 [end_date_ymd] => 2025-02-19 01:54:05 [RateCDR] => 1 ) [2025-02-19 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:54:05' and `end` < '2025-02-19 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:54:17] Production.INFO: count ==282 [2025-02-19 01:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:54:05 - End Time 2025-02-19 01:54:05 [2025-02-19 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507165', 'tblTempUsageDetail_20' ) start [2025-02-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507165', 'tblTempUsageDetail_20' ) end [2025-02-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507165', 'tblTempVendorCDR_20' ) start [2025-02-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507165', 'tblTempVendorCDR_20' ) end [2025-02-19 01:54:17] Production.INFO: ProcessCDR(1,14507165,1,1,2) [2025-02-19 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507165', 'tblTempUsageDetail_20' ) start [2025-02-19 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507165', 'tblTempUsageDetail_20' ) end [2025-02-19 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:54:21] Production.INFO: ==25124== Releasing lock... [2025-02-19 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:55:06 [end_date_ymd] => 2025-02-19 01:55:06 [RateCDR] => 1 ) [2025-02-19 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:55:06' and `end` < '2025-02-19 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:55:17] Production.INFO: count ==277 [2025-02-19 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:55:06 - End Time 2025-02-19 01:55:06 [2025-02-19 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507170', 'tblTempUsageDetail_20' ) start [2025-02-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507170', 'tblTempUsageDetail_20' ) end [2025-02-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507170', 'tblTempVendorCDR_20' ) start [2025-02-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507170', 'tblTempVendorCDR_20' ) end [2025-02-19 01:55:17] Production.INFO: ProcessCDR(1,14507170,1,1,2) [2025-02-19 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507170', 'tblTempUsageDetail_20' ) start [2025-02-19 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507170', 'tblTempUsageDetail_20' ) end [2025-02-19 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:55:21] Production.INFO: ==25204== Releasing lock... [2025-02-19 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:56:05 [end_date_ymd] => 2025-02-19 01:56:05 [RateCDR] => 1 ) [2025-02-19 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:56:05' and `end` < '2025-02-19 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:56:17] Production.INFO: count ==276 [2025-02-19 01:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:56:05 - End Time 2025-02-19 01:56:05 [2025-02-19 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507175', 'tblTempUsageDetail_20' ) start [2025-02-19 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507175', 'tblTempUsageDetail_20' ) end [2025-02-19 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507175', 'tblTempVendorCDR_20' ) start [2025-02-19 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507175', 'tblTempVendorCDR_20' ) end [2025-02-19 01:56:17] Production.INFO: ProcessCDR(1,14507175,1,1,2) [2025-02-19 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507175', 'tblTempUsageDetail_20' ) start [2025-02-19 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507175', 'tblTempUsageDetail_20' ) end [2025-02-19 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:56:21] Production.INFO: ==25274== Releasing lock... [2025-02-19 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:57:05 [end_date_ymd] => 2025-02-19 01:57:05 [RateCDR] => 1 ) [2025-02-19 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:57:05' and `end` < '2025-02-19 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:57:17] Production.INFO: count ==276 [2025-02-19 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:57:05 - End Time 2025-02-19 01:57:05 [2025-02-19 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507180', 'tblTempUsageDetail_20' ) start [2025-02-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507180', 'tblTempUsageDetail_20' ) end [2025-02-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507180', 'tblTempVendorCDR_20' ) start [2025-02-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507180', 'tblTempVendorCDR_20' ) end [2025-02-19 01:57:17] Production.INFO: ProcessCDR(1,14507180,1,1,2) [2025-02-19 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507180', 'tblTempUsageDetail_20' ) start [2025-02-19 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507180', 'tblTempUsageDetail_20' ) end [2025-02-19 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:57:21] Production.INFO: ==25385== Releasing lock... [2025-02-19 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:57:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:58:06 [end_date_ymd] => 2025-02-19 01:58:06 [RateCDR] => 1 ) [2025-02-19 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:58:06' and `end` < '2025-02-19 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:58:17] Production.INFO: count ==276 [2025-02-19 01:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:58:06 - End Time 2025-02-19 01:58:06 [2025-02-19 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507185', 'tblTempUsageDetail_20' ) start [2025-02-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507185', 'tblTempUsageDetail_20' ) end [2025-02-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507185', 'tblTempVendorCDR_20' ) start [2025-02-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507185', 'tblTempVendorCDR_20' ) end [2025-02-19 01:58:17] Production.INFO: ProcessCDR(1,14507185,1,1,2) [2025-02-19 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507185', 'tblTempUsageDetail_20' ) start [2025-02-19 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507185', 'tblTempUsageDetail_20' ) end [2025-02-19 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:58:21] Production.INFO: ==25455== Releasing lock... [2025-02-19 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 22:59:05 [end_date_ymd] => 2025-02-19 01:59:05 [RateCDR] => 1 ) [2025-02-19 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 22:59:05' and `end` < '2025-02-19 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 01:59:17] Production.INFO: count ==276 [2025-02-19 01:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 22:59:05 - End Time 2025-02-19 01:59:05 [2025-02-19 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507190', 'tblTempUsageDetail_20' ) start [2025-02-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507190', 'tblTempUsageDetail_20' ) end [2025-02-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507190', 'tblTempVendorCDR_20' ) start [2025-02-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507190', 'tblTempVendorCDR_20' ) end [2025-02-19 01:59:17] Production.INFO: ProcessCDR(1,14507190,1,1,2) [2025-02-19 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507190', 'tblTempUsageDetail_20' ) start [2025-02-19 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507190', 'tblTempUsageDetail_20' ) end [2025-02-19 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 01:59:21] Production.INFO: ==25525== Releasing lock... [2025-02-19 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 01:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:00:06 [end_date_ymd] => 2025-02-19 02:00:06 [RateCDR] => 1 ) [2025-02-19 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-02-18 23:00:06' and `end` < '2025-02-19 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-02-19 02:00:18] Production.INFO: count ==280 [2025-02-19 02:00:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:00:06 - End Time 2025-02-19 02:00:06 [2025-02-19 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507196', 'tblTempUsageDetail_20' ) start [2025-02-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507196', 'tblTempUsageDetail_20' ) end [2025-02-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507196', 'tblTempVendorCDR_20' ) start [2025-02-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507196', 'tblTempVendorCDR_20' ) end [2025-02-19 02:00:18] Production.INFO: ProcessCDR(1,14507196,1,1,2) [2025-02-19 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507196', 'tblTempUsageDetail_20' ) start [2025-02-19 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507196', 'tblTempUsageDetail_20' ) end [2025-02-19 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:00:23] Production.INFO: ==25604== Releasing lock... [2025-02-19 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:01:06 [end_date_ymd] => 2025-02-19 02:01:06 [RateCDR] => 1 ) [2025-02-19 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:01:06' and `end` < '2025-02-19 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:01:17] Production.INFO: count ==280 [2025-02-19 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:01:06 - End Time 2025-02-19 02:01:06 [2025-02-19 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507201', 'tblTempUsageDetail_20' ) start [2025-02-19 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507201', 'tblTempUsageDetail_20' ) end [2025-02-19 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507201', 'tblTempVendorCDR_20' ) start [2025-02-19 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507201', 'tblTempVendorCDR_20' ) end [2025-02-19 02:01:17] Production.INFO: ProcessCDR(1,14507201,1,1,2) [2025-02-19 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507201', 'tblTempUsageDetail_20' ) start [2025-02-19 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507201', 'tblTempUsageDetail_20' ) end [2025-02-19 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:01:21] Production.INFO: ==25781== Releasing lock... [2025-02-19 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:02:05 [end_date_ymd] => 2025-02-19 02:02:05 [RateCDR] => 1 ) [2025-02-19 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:02:05' and `end` < '2025-02-19 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:02:17] Production.INFO: count ==279 [2025-02-19 02:02:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:02:05 - End Time 2025-02-19 02:02:05 [2025-02-19 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507206', 'tblTempUsageDetail_20' ) start [2025-02-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507206', 'tblTempUsageDetail_20' ) end [2025-02-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507206', 'tblTempVendorCDR_20' ) start [2025-02-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507206', 'tblTempVendorCDR_20' ) end [2025-02-19 02:02:17] Production.INFO: ProcessCDR(1,14507206,1,1,2) [2025-02-19 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507206', 'tblTempUsageDetail_20' ) start [2025-02-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507206', 'tblTempUsageDetail_20' ) end [2025-02-19 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:02:21] Production.INFO: ==25852== Releasing lock... [2025-02-19 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:03:05 [end_date_ymd] => 2025-02-19 02:03:05 [RateCDR] => 1 ) [2025-02-19 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:03:05' and `end` < '2025-02-19 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:03:17] Production.INFO: count ==282 [2025-02-19 02:03:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:03:05 - End Time 2025-02-19 02:03:05 [2025-02-19 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507211', 'tblTempUsageDetail_20' ) start [2025-02-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507211', 'tblTempUsageDetail_20' ) end [2025-02-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507211', 'tblTempVendorCDR_20' ) start [2025-02-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507211', 'tblTempVendorCDR_20' ) end [2025-02-19 02:03:17] Production.INFO: ProcessCDR(1,14507211,1,1,2) [2025-02-19 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507211', 'tblTempUsageDetail_20' ) start [2025-02-19 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507211', 'tblTempUsageDetail_20' ) end [2025-02-19 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:03:21] Production.INFO: ==25922== Releasing lock... [2025-02-19 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:04:06 [end_date_ymd] => 2025-02-19 02:04:06 [RateCDR] => 1 ) [2025-02-19 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:04:06' and `end` < '2025-02-19 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:04:17] Production.INFO: count ==282 [2025-02-19 02:04:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:04:06 - End Time 2025-02-19 02:04:06 [2025-02-19 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507216', 'tblTempUsageDetail_20' ) start [2025-02-19 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507216', 'tblTempUsageDetail_20' ) end [2025-02-19 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507216', 'tblTempVendorCDR_20' ) start [2025-02-19 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507216', 'tblTempVendorCDR_20' ) end [2025-02-19 02:04:17] Production.INFO: ProcessCDR(1,14507216,1,1,2) [2025-02-19 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507216', 'tblTempUsageDetail_20' ) start [2025-02-19 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507216', 'tblTempUsageDetail_20' ) end [2025-02-19 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:04:21] Production.INFO: ==25996== Releasing lock... [2025-02-19 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:05:05 [end_date_ymd] => 2025-02-19 02:05:05 [RateCDR] => 1 ) [2025-02-19 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:05:05' and `end` < '2025-02-19 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:05:17] Production.INFO: count ==286 [2025-02-19 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:05:05 - End Time 2025-02-19 02:05:05 [2025-02-19 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507221', 'tblTempUsageDetail_20' ) start [2025-02-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507221', 'tblTempUsageDetail_20' ) end [2025-02-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507221', 'tblTempVendorCDR_20' ) start [2025-02-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507221', 'tblTempVendorCDR_20' ) end [2025-02-19 02:05:17] Production.INFO: ProcessCDR(1,14507221,1,1,2) [2025-02-19 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507221', 'tblTempUsageDetail_20' ) start [2025-02-19 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507221', 'tblTempUsageDetail_20' ) end [2025-02-19 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:05:20] Production.INFO: ==26069== Releasing lock... [2025-02-19 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:05:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:06:05 [end_date_ymd] => 2025-02-19 02:06:05 [RateCDR] => 1 ) [2025-02-19 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:06:05' and `end` < '2025-02-19 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:06:17] Production.INFO: count ==286 [2025-02-19 02:06:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:06:05 - End Time 2025-02-19 02:06:05 [2025-02-19 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507226', 'tblTempUsageDetail_20' ) start [2025-02-19 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507226', 'tblTempUsageDetail_20' ) end [2025-02-19 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507226', 'tblTempVendorCDR_20' ) start [2025-02-19 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507226', 'tblTempVendorCDR_20' ) end [2025-02-19 02:06:17] Production.INFO: ProcessCDR(1,14507226,1,1,2) [2025-02-19 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507226', 'tblTempUsageDetail_20' ) start [2025-02-19 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507226', 'tblTempUsageDetail_20' ) end [2025-02-19 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:06:21] Production.INFO: ==26144== Releasing lock... [2025-02-19 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:07:05 [end_date_ymd] => 2025-02-19 02:07:05 [RateCDR] => 1 ) [2025-02-19 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:07:05' and `end` < '2025-02-19 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:07:17] Production.INFO: count ==286 [2025-02-19 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:07:05 - End Time 2025-02-19 02:07:05 [2025-02-19 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507231', 'tblTempUsageDetail_20' ) start [2025-02-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507231', 'tblTempUsageDetail_20' ) end [2025-02-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507231', 'tblTempVendorCDR_20' ) start [2025-02-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507231', 'tblTempVendorCDR_20' ) end [2025-02-19 02:07:17] Production.INFO: ProcessCDR(1,14507231,1,1,2) [2025-02-19 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507231', 'tblTempUsageDetail_20' ) start [2025-02-19 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507231', 'tblTempUsageDetail_20' ) end [2025-02-19 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:07:20] Production.INFO: ==26219== Releasing lock... [2025-02-19 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:07:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:08:06 [end_date_ymd] => 2025-02-19 02:08:06 [RateCDR] => 1 ) [2025-02-19 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:08:06' and `end` < '2025-02-19 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:08:18] Production.INFO: count ==286 [2025-02-19 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:08:06 - End Time 2025-02-19 02:08:06 [2025-02-19 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507236', 'tblTempUsageDetail_20' ) start [2025-02-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507236', 'tblTempUsageDetail_20' ) end [2025-02-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507236', 'tblTempVendorCDR_20' ) start [2025-02-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507236', 'tblTempVendorCDR_20' ) end [2025-02-19 02:08:18] Production.INFO: ProcessCDR(1,14507236,1,1,2) [2025-02-19 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507236', 'tblTempUsageDetail_20' ) start [2025-02-19 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507236', 'tblTempUsageDetail_20' ) end [2025-02-19 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:08:21] Production.INFO: ==26298== Releasing lock... [2025-02-19 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:09:05 [end_date_ymd] => 2025-02-19 02:09:05 [RateCDR] => 1 ) [2025-02-19 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:09:05' and `end` < '2025-02-19 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:09:17] Production.INFO: count ==285 [2025-02-19 02:09:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:09:05 - End Time 2025-02-19 02:09:05 [2025-02-19 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507241', 'tblTempUsageDetail_20' ) start [2025-02-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507241', 'tblTempUsageDetail_20' ) end [2025-02-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507241', 'tblTempVendorCDR_20' ) start [2025-02-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507241', 'tblTempVendorCDR_20' ) end [2025-02-19 02:09:17] Production.INFO: ProcessCDR(1,14507241,1,1,2) [2025-02-19 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507241', 'tblTempUsageDetail_20' ) start [2025-02-19 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507241', 'tblTempUsageDetail_20' ) end [2025-02-19 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:09:21] Production.INFO: ==26367== Releasing lock... [2025-02-19 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:10:07 [end_date_ymd] => 2025-02-19 02:10:07 [RateCDR] => 1 ) [2025-02-19 02:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:10:07' and `end` < '2025-02-19 02:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:10:18] Production.INFO: count ==289 [2025-02-19 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-18 23:10:07 - End Time 2025-02-19 02:10:07 [2025-02-19 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507247', 'tblTempUsageDetail_20' ) start [2025-02-19 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507247', 'tblTempUsageDetail_20' ) end [2025-02-19 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507247', 'tblTempVendorCDR_20' ) start [2025-02-19 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507247', 'tblTempVendorCDR_20' ) end [2025-02-19 02:10:19] Production.INFO: ProcessCDR(1,14507247,1,1,2) [2025-02-19 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507247', 'tblTempUsageDetail_20' ) start [2025-02-19 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507247', 'tblTempUsageDetail_20' ) end [2025-02-19 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:10:22] Production.INFO: ==26439== Releasing lock... [2025-02-19 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:11:05 [end_date_ymd] => 2025-02-19 02:11:05 [RateCDR] => 1 ) [2025-02-19 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:11:05' and `end` < '2025-02-19 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:11:17] Production.INFO: count ==285 [2025-02-19 02:11:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:11:05 - End Time 2025-02-19 02:11:05 [2025-02-19 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507252', 'tblTempUsageDetail_20' ) start [2025-02-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507252', 'tblTempUsageDetail_20' ) end [2025-02-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507252', 'tblTempVendorCDR_20' ) start [2025-02-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507252', 'tblTempVendorCDR_20' ) end [2025-02-19 02:11:17] Production.INFO: ProcessCDR(1,14507252,1,1,2) [2025-02-19 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507252', 'tblTempUsageDetail_20' ) start [2025-02-19 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507252', 'tblTempUsageDetail_20' ) end [2025-02-19 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:11:20] Production.INFO: ==26514== Releasing lock... [2025-02-19 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:12:06 [end_date_ymd] => 2025-02-19 02:12:06 [RateCDR] => 1 ) [2025-02-19 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:12:06' and `end` < '2025-02-19 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:12:18] Production.INFO: count ==284 [2025-02-19 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:12:06 - End Time 2025-02-19 02:12:06 [2025-02-19 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507257', 'tblTempUsageDetail_20' ) start [2025-02-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507257', 'tblTempUsageDetail_20' ) end [2025-02-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507257', 'tblTempVendorCDR_20' ) start [2025-02-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507257', 'tblTempVendorCDR_20' ) end [2025-02-19 02:12:18] Production.INFO: ProcessCDR(1,14507257,1,1,2) [2025-02-19 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507257', 'tblTempUsageDetail_20' ) start [2025-02-19 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507257', 'tblTempUsageDetail_20' ) end [2025-02-19 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:12:21] Production.INFO: ==26625== Releasing lock... [2025-02-19 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:13:05 [end_date_ymd] => 2025-02-19 02:13:05 [RateCDR] => 1 ) [2025-02-19 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:13:05' and `end` < '2025-02-19 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:13:17] Production.INFO: count ==284 [2025-02-19 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:13:05 - End Time 2025-02-19 02:13:05 [2025-02-19 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507262', 'tblTempUsageDetail_20' ) start [2025-02-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507262', 'tblTempUsageDetail_20' ) end [2025-02-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507262', 'tblTempVendorCDR_20' ) start [2025-02-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507262', 'tblTempVendorCDR_20' ) end [2025-02-19 02:13:17] Production.INFO: ProcessCDR(1,14507262,1,1,2) [2025-02-19 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507262', 'tblTempUsageDetail_20' ) start [2025-02-19 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507262', 'tblTempUsageDetail_20' ) end [2025-02-19 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:13:20] Production.INFO: ==26696== Releasing lock... [2025-02-19 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:14:06 [end_date_ymd] => 2025-02-19 02:14:06 [RateCDR] => 1 ) [2025-02-19 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:14:06' and `end` < '2025-02-19 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:14:17] Production.INFO: count ==284 [2025-02-19 02:14:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:14:06 - End Time 2025-02-19 02:14:06 [2025-02-19 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507267', 'tblTempUsageDetail_20' ) start [2025-02-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507267', 'tblTempUsageDetail_20' ) end [2025-02-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507267', 'tblTempVendorCDR_20' ) start [2025-02-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507267', 'tblTempVendorCDR_20' ) end [2025-02-19 02:14:17] Production.INFO: ProcessCDR(1,14507267,1,1,2) [2025-02-19 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507267', 'tblTempUsageDetail_20' ) start [2025-02-19 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507267', 'tblTempUsageDetail_20' ) end [2025-02-19 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:14:21] Production.INFO: ==26765== Releasing lock... [2025-02-19 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:15:05 [end_date_ymd] => 2025-02-19 02:15:05 [RateCDR] => 1 ) [2025-02-19 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:15:05' and `end` < '2025-02-19 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:15:17] Production.INFO: count ==284 [2025-02-19 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:15:05 - End Time 2025-02-19 02:15:05 [2025-02-19 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507272', 'tblTempUsageDetail_20' ) start [2025-02-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507272', 'tblTempUsageDetail_20' ) end [2025-02-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507272', 'tblTempVendorCDR_20' ) start [2025-02-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507272', 'tblTempVendorCDR_20' ) end [2025-02-19 02:15:17] Production.INFO: ProcessCDR(1,14507272,1,1,2) [2025-02-19 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507272', 'tblTempUsageDetail_20' ) start [2025-02-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507272', 'tblTempUsageDetail_20' ) end [2025-02-19 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:15:20] Production.INFO: ==26841== Releasing lock... [2025-02-19 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:16:05 [end_date_ymd] => 2025-02-19 02:16:05 [RateCDR] => 1 ) [2025-02-19 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:16:05' and `end` < '2025-02-19 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:16:17] Production.INFO: count ==284 [2025-02-19 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:16:05 - End Time 2025-02-19 02:16:05 [2025-02-19 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507277', 'tblTempUsageDetail_20' ) start [2025-02-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507277', 'tblTempUsageDetail_20' ) end [2025-02-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507277', 'tblTempVendorCDR_20' ) start [2025-02-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507277', 'tblTempVendorCDR_20' ) end [2025-02-19 02:16:17] Production.INFO: ProcessCDR(1,14507277,1,1,2) [2025-02-19 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507277', 'tblTempUsageDetail_20' ) start [2025-02-19 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507277', 'tblTempUsageDetail_20' ) end [2025-02-19 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:16:20] Production.INFO: ==26921== Releasing lock... [2025-02-19 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:17:05 [end_date_ymd] => 2025-02-19 02:17:05 [RateCDR] => 1 ) [2025-02-19 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:17:05' and `end` < '2025-02-19 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:17:16] Production.INFO: count ==284 [2025-02-19 02:17:16] Production.ERROR: pbx CDR StartTime 2025-02-18 23:17:05 - End Time 2025-02-19 02:17:05 [2025-02-19 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507281', 'tblTempUsageDetail_20' ) start [2025-02-19 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507281', 'tblTempUsageDetail_20' ) end [2025-02-19 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507281', 'tblTempVendorCDR_20' ) start [2025-02-19 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507281', 'tblTempVendorCDR_20' ) end [2025-02-19 02:17:16] Production.INFO: ProcessCDR(1,14507281,1,1,2) [2025-02-19 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507281', 'tblTempUsageDetail_20' ) start [2025-02-19 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507281', 'tblTempUsageDetail_20' ) end [2025-02-19 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:17:20] Production.INFO: ==26991== Releasing lock... [2025-02-19 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:18:06 [end_date_ymd] => 2025-02-19 02:18:06 [RateCDR] => 1 ) [2025-02-19 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:18:06' and `end` < '2025-02-19 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:18:18] Production.INFO: count ==287 [2025-02-19 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:18:06 - End Time 2025-02-19 02:18:06 [2025-02-19 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507287', 'tblTempUsageDetail_20' ) start [2025-02-19 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507287', 'tblTempUsageDetail_20' ) end [2025-02-19 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507287', 'tblTempVendorCDR_20' ) start [2025-02-19 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507287', 'tblTempVendorCDR_20' ) end [2025-02-19 02:18:18] Production.INFO: ProcessCDR(1,14507287,1,1,2) [2025-02-19 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507287', 'tblTempUsageDetail_20' ) start [2025-02-19 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507287', 'tblTempUsageDetail_20' ) end [2025-02-19 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:18:21] Production.INFO: ==27069== Releasing lock... [2025-02-19 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:19:05 [end_date_ymd] => 2025-02-19 02:19:05 [RateCDR] => 1 ) [2025-02-19 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:19:05' and `end` < '2025-02-19 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:19:17] Production.INFO: count ==287 [2025-02-19 02:19:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:19:05 - End Time 2025-02-19 02:19:05 [2025-02-19 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507292', 'tblTempUsageDetail_20' ) start [2025-02-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507292', 'tblTempUsageDetail_20' ) end [2025-02-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507292', 'tblTempVendorCDR_20' ) start [2025-02-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507292', 'tblTempVendorCDR_20' ) end [2025-02-19 02:19:17] Production.INFO: ProcessCDR(1,14507292,1,1,2) [2025-02-19 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507292', 'tblTempUsageDetail_20' ) start [2025-02-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507292', 'tblTempUsageDetail_20' ) end [2025-02-19 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:19:21] Production.INFO: ==27141== Releasing lock... [2025-02-19 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:20:06 [end_date_ymd] => 2025-02-19 02:20:06 [RateCDR] => 1 ) [2025-02-19 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:20:06' and `end` < '2025-02-19 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:20:18] Production.INFO: count ==287 [2025-02-19 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:20:06 - End Time 2025-02-19 02:20:06 [2025-02-19 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507298', 'tblTempUsageDetail_20' ) start [2025-02-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507298', 'tblTempUsageDetail_20' ) end [2025-02-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507298', 'tblTempVendorCDR_20' ) start [2025-02-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507298', 'tblTempVendorCDR_20' ) end [2025-02-19 02:20:18] Production.INFO: ProcessCDR(1,14507298,1,1,2) [2025-02-19 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507298', 'tblTempUsageDetail_20' ) start [2025-02-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507298', 'tblTempUsageDetail_20' ) end [2025-02-19 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:20:21] Production.INFO: ==27218== Releasing lock... [2025-02-19 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:21:05 [end_date_ymd] => 2025-02-19 02:21:05 [RateCDR] => 1 ) [2025-02-19 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:21:05' and `end` < '2025-02-19 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:21:17] Production.INFO: count ==286 [2025-02-19 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:21:05 - End Time 2025-02-19 02:21:05 [2025-02-19 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507303', 'tblTempUsageDetail_20' ) start [2025-02-19 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507303', 'tblTempUsageDetail_20' ) end [2025-02-19 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507303', 'tblTempVendorCDR_20' ) start [2025-02-19 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507303', 'tblTempVendorCDR_20' ) end [2025-02-19 02:21:17] Production.INFO: ProcessCDR(1,14507303,1,1,2) [2025-02-19 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507303', 'tblTempUsageDetail_20' ) start [2025-02-19 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507303', 'tblTempUsageDetail_20' ) end [2025-02-19 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:21:20] Production.INFO: ==27290== Releasing lock... [2025-02-19 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:22:05 [end_date_ymd] => 2025-02-19 02:22:05 [RateCDR] => 1 ) [2025-02-19 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:22:05' and `end` < '2025-02-19 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:22:17] Production.INFO: count ==286 [2025-02-19 02:22:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:22:05 - End Time 2025-02-19 02:22:05 [2025-02-19 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507308', 'tblTempUsageDetail_20' ) start [2025-02-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507308', 'tblTempUsageDetail_20' ) end [2025-02-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507308', 'tblTempVendorCDR_20' ) start [2025-02-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507308', 'tblTempVendorCDR_20' ) end [2025-02-19 02:22:17] Production.INFO: ProcessCDR(1,14507308,1,1,2) [2025-02-19 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507308', 'tblTempUsageDetail_20' ) start [2025-02-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507308', 'tblTempUsageDetail_20' ) end [2025-02-19 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:22:20] Production.INFO: ==27365== Releasing lock... [2025-02-19 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:23:05 [end_date_ymd] => 2025-02-19 02:23:05 [RateCDR] => 1 ) [2025-02-19 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:23:05' and `end` < '2025-02-19 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:23:17] Production.INFO: count ==286 [2025-02-19 02:23:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:23:05 - End Time 2025-02-19 02:23:05 [2025-02-19 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507313', 'tblTempUsageDetail_20' ) start [2025-02-19 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507313', 'tblTempUsageDetail_20' ) end [2025-02-19 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507313', 'tblTempVendorCDR_20' ) start [2025-02-19 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507313', 'tblTempVendorCDR_20' ) end [2025-02-19 02:23:17] Production.INFO: ProcessCDR(1,14507313,1,1,2) [2025-02-19 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507313', 'tblTempUsageDetail_20' ) start [2025-02-19 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507313', 'tblTempUsageDetail_20' ) end [2025-02-19 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:23:20] Production.INFO: ==27440== Releasing lock... [2025-02-19 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:24:06 [end_date_ymd] => 2025-02-19 02:24:06 [RateCDR] => 1 ) [2025-02-19 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:24:06' and `end` < '2025-02-19 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:24:17] Production.INFO: count ==286 [2025-02-19 02:24:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:24:06 - End Time 2025-02-19 02:24:06 [2025-02-19 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507318', 'tblTempUsageDetail_20' ) start [2025-02-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507318', 'tblTempUsageDetail_20' ) end [2025-02-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507318', 'tblTempVendorCDR_20' ) start [2025-02-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507318', 'tblTempVendorCDR_20' ) end [2025-02-19 02:24:17] Production.INFO: ProcessCDR(1,14507318,1,1,2) [2025-02-19 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507318', 'tblTempUsageDetail_20' ) start [2025-02-19 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507318', 'tblTempUsageDetail_20' ) end [2025-02-19 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:24:21] Production.INFO: ==27510== Releasing lock... [2025-02-19 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:25:05 [end_date_ymd] => 2025-02-19 02:25:05 [RateCDR] => 1 ) [2025-02-19 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:25:05' and `end` < '2025-02-19 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:25:17] Production.INFO: count ==286 [2025-02-19 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:25:05 - End Time 2025-02-19 02:25:05 [2025-02-19 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507323', 'tblTempUsageDetail_20' ) start [2025-02-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507323', 'tblTempUsageDetail_20' ) end [2025-02-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507323', 'tblTempVendorCDR_20' ) start [2025-02-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507323', 'tblTempVendorCDR_20' ) end [2025-02-19 02:25:17] Production.INFO: ProcessCDR(1,14507323,1,1,2) [2025-02-19 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507323', 'tblTempUsageDetail_20' ) start [2025-02-19 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507323', 'tblTempUsageDetail_20' ) end [2025-02-19 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:25:20] Production.INFO: ==27585== Releasing lock... [2025-02-19 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:26:05 [end_date_ymd] => 2025-02-19 02:26:05 [RateCDR] => 1 ) [2025-02-19 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:26:05' and `end` < '2025-02-19 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:26:17] Production.INFO: count ==286 [2025-02-19 02:26:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:26:05 - End Time 2025-02-19 02:26:05 [2025-02-19 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507328', 'tblTempUsageDetail_20' ) start [2025-02-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507328', 'tblTempUsageDetail_20' ) end [2025-02-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507328', 'tblTempVendorCDR_20' ) start [2025-02-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507328', 'tblTempVendorCDR_20' ) end [2025-02-19 02:26:17] Production.INFO: ProcessCDR(1,14507328,1,1,2) [2025-02-19 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507328', 'tblTempUsageDetail_20' ) start [2025-02-19 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507328', 'tblTempUsageDetail_20' ) end [2025-02-19 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:26:20] Production.INFO: ==27657== Releasing lock... [2025-02-19 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:27:05 [end_date_ymd] => 2025-02-19 02:27:05 [RateCDR] => 1 ) [2025-02-19 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:27:05' and `end` < '2025-02-19 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:27:17] Production.INFO: count ==286 [2025-02-19 02:27:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:27:05 - End Time 2025-02-19 02:27:05 [2025-02-19 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507333', 'tblTempUsageDetail_20' ) start [2025-02-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507333', 'tblTempUsageDetail_20' ) end [2025-02-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507333', 'tblTempVendorCDR_20' ) start [2025-02-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507333', 'tblTempVendorCDR_20' ) end [2025-02-19 02:27:17] Production.INFO: ProcessCDR(1,14507333,1,1,2) [2025-02-19 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507333', 'tblTempUsageDetail_20' ) start [2025-02-19 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507333', 'tblTempUsageDetail_20' ) end [2025-02-19 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:27:20] Production.INFO: ==27728== Releasing lock... [2025-02-19 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:28:06 [end_date_ymd] => 2025-02-19 02:28:06 [RateCDR] => 1 ) [2025-02-19 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:28:06' and `end` < '2025-02-19 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:28:18] Production.INFO: count ==285 [2025-02-19 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:28:06 - End Time 2025-02-19 02:28:06 [2025-02-19 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507338', 'tblTempUsageDetail_20' ) start [2025-02-19 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507338', 'tblTempUsageDetail_20' ) end [2025-02-19 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507338', 'tblTempVendorCDR_20' ) start [2025-02-19 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507338', 'tblTempVendorCDR_20' ) end [2025-02-19 02:28:18] Production.INFO: ProcessCDR(1,14507338,1,1,2) [2025-02-19 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507338', 'tblTempUsageDetail_20' ) start [2025-02-19 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507338', 'tblTempUsageDetail_20' ) end [2025-02-19 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:28:21] Production.INFO: ==27838== Releasing lock... [2025-02-19 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:29:05 [end_date_ymd] => 2025-02-19 02:29:05 [RateCDR] => 1 ) [2025-02-19 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:29:05' and `end` < '2025-02-19 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:29:17] Production.INFO: count ==285 [2025-02-19 02:29:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:29:05 - End Time 2025-02-19 02:29:05 [2025-02-19 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507343', 'tblTempUsageDetail_20' ) start [2025-02-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507343', 'tblTempUsageDetail_20' ) end [2025-02-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507343', 'tblTempVendorCDR_20' ) start [2025-02-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507343', 'tblTempVendorCDR_20' ) end [2025-02-19 02:29:17] Production.INFO: ProcessCDR(1,14507343,1,1,2) [2025-02-19 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507343', 'tblTempUsageDetail_20' ) start [2025-02-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507343', 'tblTempUsageDetail_20' ) end [2025-02-19 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:29:20] Production.INFO: ==27907== Releasing lock... [2025-02-19 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:30:06 [end_date_ymd] => 2025-02-19 02:30:06 [RateCDR] => 1 ) [2025-02-19 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:30:06' and `end` < '2025-02-19 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:30:18] Production.INFO: count ==287 [2025-02-19 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:30:06 - End Time 2025-02-19 02:30:06 [2025-02-19 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507348', 'tblTempUsageDetail_20' ) start [2025-02-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507348', 'tblTempUsageDetail_20' ) end [2025-02-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507348', 'tblTempVendorCDR_20' ) start [2025-02-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507348', 'tblTempVendorCDR_20' ) end [2025-02-19 02:30:18] Production.INFO: ProcessCDR(1,14507348,1,1,2) [2025-02-19 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507348', 'tblTempUsageDetail_20' ) start [2025-02-19 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507348', 'tblTempUsageDetail_20' ) end [2025-02-19 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:30:21] Production.INFO: ==27982== Releasing lock... [2025-02-19 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:31:05 [end_date_ymd] => 2025-02-19 02:31:05 [RateCDR] => 1 ) [2025-02-19 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:31:05' and `end` < '2025-02-19 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:31:16] Production.INFO: count ==288 [2025-02-19 02:31:16] Production.ERROR: pbx CDR StartTime 2025-02-18 23:31:05 - End Time 2025-02-19 02:31:05 [2025-02-19 02:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507354', 'tblTempUsageDetail_20' ) start [2025-02-19 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507354', 'tblTempUsageDetail_20' ) end [2025-02-19 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507354', 'tblTempVendorCDR_20' ) start [2025-02-19 02:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507354', 'tblTempVendorCDR_20' ) end [2025-02-19 02:31:16] Production.INFO: ProcessCDR(1,14507354,1,1,2) [2025-02-19 02:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507354', 'tblTempUsageDetail_20' ) start [2025-02-19 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507354', 'tblTempUsageDetail_20' ) end [2025-02-19 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:31:20] Production.INFO: ==28055== Releasing lock... [2025-02-19 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:31:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:32:05 [end_date_ymd] => 2025-02-19 02:32:05 [RateCDR] => 1 ) [2025-02-19 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:32:05' and `end` < '2025-02-19 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:32:17] Production.INFO: count ==289 [2025-02-19 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:32:05 - End Time 2025-02-19 02:32:05 [2025-02-19 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507359', 'tblTempUsageDetail_20' ) start [2025-02-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507359', 'tblTempUsageDetail_20' ) end [2025-02-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507359', 'tblTempVendorCDR_20' ) start [2025-02-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507359', 'tblTempVendorCDR_20' ) end [2025-02-19 02:32:17] Production.INFO: ProcessCDR(1,14507359,1,1,2) [2025-02-19 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507359', 'tblTempUsageDetail_20' ) start [2025-02-19 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507359', 'tblTempUsageDetail_20' ) end [2025-02-19 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:32:21] Production.INFO: ==28126== Releasing lock... [2025-02-19 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:33:05 [end_date_ymd] => 2025-02-19 02:33:05 [RateCDR] => 1 ) [2025-02-19 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:33:05' and `end` < '2025-02-19 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:33:17] Production.INFO: count ==290 [2025-02-19 02:33:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:33:05 - End Time 2025-02-19 02:33:05 [2025-02-19 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507364', 'tblTempUsageDetail_20' ) start [2025-02-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507364', 'tblTempUsageDetail_20' ) end [2025-02-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507364', 'tblTempVendorCDR_20' ) start [2025-02-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507364', 'tblTempVendorCDR_20' ) end [2025-02-19 02:33:17] Production.INFO: ProcessCDR(1,14507364,1,1,2) [2025-02-19 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507364', 'tblTempUsageDetail_20' ) start [2025-02-19 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507364', 'tblTempUsageDetail_20' ) end [2025-02-19 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:33:20] Production.INFO: ==28198== Releasing lock... [2025-02-19 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:34:06 [end_date_ymd] => 2025-02-19 02:34:06 [RateCDR] => 1 ) [2025-02-19 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:34:06' and `end` < '2025-02-19 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:34:17] Production.INFO: count ==290 [2025-02-19 02:34:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:34:06 - End Time 2025-02-19 02:34:06 [2025-02-19 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507369', 'tblTempUsageDetail_20' ) start [2025-02-19 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507369', 'tblTempUsageDetail_20' ) end [2025-02-19 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507369', 'tblTempVendorCDR_20' ) start [2025-02-19 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507369', 'tblTempVendorCDR_20' ) end [2025-02-19 02:34:17] Production.INFO: ProcessCDR(1,14507369,1,1,2) [2025-02-19 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507369', 'tblTempUsageDetail_20' ) start [2025-02-19 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507369', 'tblTempUsageDetail_20' ) end [2025-02-19 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:34:21] Production.INFO: ==28270== Releasing lock... [2025-02-19 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:35:05 [end_date_ymd] => 2025-02-19 02:35:05 [RateCDR] => 1 ) [2025-02-19 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:35:05' and `end` < '2025-02-19 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:35:17] Production.INFO: count ==283 [2025-02-19 02:35:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:35:05 - End Time 2025-02-19 02:35:05 [2025-02-19 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507374', 'tblTempUsageDetail_20' ) start [2025-02-19 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507374', 'tblTempUsageDetail_20' ) end [2025-02-19 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507374', 'tblTempVendorCDR_20' ) start [2025-02-19 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507374', 'tblTempVendorCDR_20' ) end [2025-02-19 02:35:17] Production.INFO: ProcessCDR(1,14507374,1,1,2) [2025-02-19 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507374', 'tblTempUsageDetail_20' ) start [2025-02-19 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507374', 'tblTempUsageDetail_20' ) end [2025-02-19 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:35:20] Production.INFO: ==28340== Releasing lock... [2025-02-19 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:36:06 [end_date_ymd] => 2025-02-19 02:36:06 [RateCDR] => 1 ) [2025-02-19 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:36:06' and `end` < '2025-02-19 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:36:17] Production.INFO: count ==282 [2025-02-19 02:36:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:36:06 - End Time 2025-02-19 02:36:06 [2025-02-19 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507379', 'tblTempUsageDetail_20' ) start [2025-02-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507379', 'tblTempUsageDetail_20' ) end [2025-02-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507379', 'tblTempVendorCDR_20' ) start [2025-02-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507379', 'tblTempVendorCDR_20' ) end [2025-02-19 02:36:17] Production.INFO: ProcessCDR(1,14507379,1,1,2) [2025-02-19 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507379', 'tblTempUsageDetail_20' ) start [2025-02-19 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507379', 'tblTempUsageDetail_20' ) end [2025-02-19 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:36:21] Production.INFO: ==28417== Releasing lock... [2025-02-19 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:37:05 [end_date_ymd] => 2025-02-19 02:37:05 [RateCDR] => 1 ) [2025-02-19 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:37:05' and `end` < '2025-02-19 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:37:17] Production.INFO: count ==284 [2025-02-19 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:37:05 - End Time 2025-02-19 02:37:05 [2025-02-19 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507384', 'tblTempUsageDetail_20' ) start [2025-02-19 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507384', 'tblTempUsageDetail_20' ) end [2025-02-19 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507384', 'tblTempVendorCDR_20' ) start [2025-02-19 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507384', 'tblTempVendorCDR_20' ) end [2025-02-19 02:37:17] Production.INFO: ProcessCDR(1,14507384,1,1,2) [2025-02-19 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507384', 'tblTempUsageDetail_20' ) start [2025-02-19 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507384', 'tblTempUsageDetail_20' ) end [2025-02-19 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:37:20] Production.INFO: ==28489== Releasing lock... [2025-02-19 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:38:05 [end_date_ymd] => 2025-02-19 02:38:05 [RateCDR] => 1 ) [2025-02-19 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:38:05' and `end` < '2025-02-19 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:38:17] Production.INFO: count ==284 [2025-02-19 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:38:05 - End Time 2025-02-19 02:38:05 [2025-02-19 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507389', 'tblTempUsageDetail_20' ) start [2025-02-19 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507389', 'tblTempUsageDetail_20' ) end [2025-02-19 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507389', 'tblTempVendorCDR_20' ) start [2025-02-19 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507389', 'tblTempVendorCDR_20' ) end [2025-02-19 02:38:17] Production.INFO: ProcessCDR(1,14507389,1,1,2) [2025-02-19 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507389', 'tblTempUsageDetail_20' ) start [2025-02-19 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507389', 'tblTempUsageDetail_20' ) end [2025-02-19 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:38:20] Production.INFO: ==28559== Releasing lock... [2025-02-19 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:38:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:39:05 [end_date_ymd] => 2025-02-19 02:39:05 [RateCDR] => 1 ) [2025-02-19 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:39:05' and `end` < '2025-02-19 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:39:17] Production.INFO: count ==281 [2025-02-19 02:39:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:39:05 - End Time 2025-02-19 02:39:05 [2025-02-19 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507394', 'tblTempUsageDetail_20' ) start [2025-02-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507394', 'tblTempUsageDetail_20' ) end [2025-02-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507394', 'tblTempVendorCDR_20' ) start [2025-02-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507394', 'tblTempVendorCDR_20' ) end [2025-02-19 02:39:17] Production.INFO: ProcessCDR(1,14507394,1,1,2) [2025-02-19 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507394', 'tblTempUsageDetail_20' ) start [2025-02-19 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507394', 'tblTempUsageDetail_20' ) end [2025-02-19 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:39:20] Production.INFO: ==28629== Releasing lock... [2025-02-19 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:40:07 [end_date_ymd] => 2025-02-19 02:40:07 [RateCDR] => 1 ) [2025-02-19 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:40:07' and `end` < '2025-02-19 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:40:19] Production.INFO: count ==290 [2025-02-19 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-18 23:40:07 - End Time 2025-02-19 02:40:07 [2025-02-19 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507400', 'tblTempUsageDetail_20' ) start [2025-02-19 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507400', 'tblTempUsageDetail_20' ) end [2025-02-19 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507400', 'tblTempVendorCDR_20' ) start [2025-02-19 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507400', 'tblTempVendorCDR_20' ) end [2025-02-19 02:40:19] Production.INFO: ProcessCDR(1,14507400,1,1,2) [2025-02-19 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507400', 'tblTempUsageDetail_20' ) start [2025-02-19 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507400', 'tblTempUsageDetail_20' ) end [2025-02-19 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:40:22] Production.INFO: ==28703== Releasing lock... [2025-02-19 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:41:05 [end_date_ymd] => 2025-02-19 02:41:05 [RateCDR] => 1 ) [2025-02-19 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:41:05' and `end` < '2025-02-19 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:41:16] Production.INFO: count ==293 [2025-02-19 02:41:16] Production.ERROR: pbx CDR StartTime 2025-02-18 23:41:05 - End Time 2025-02-19 02:41:05 [2025-02-19 02:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507405', 'tblTempUsageDetail_20' ) start [2025-02-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507405', 'tblTempUsageDetail_20' ) end [2025-02-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507405', 'tblTempVendorCDR_20' ) start [2025-02-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507405', 'tblTempVendorCDR_20' ) end [2025-02-19 02:41:17] Production.INFO: ProcessCDR(1,14507405,1,1,2) [2025-02-19 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507405', 'tblTempUsageDetail_20' ) start [2025-02-19 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507405', 'tblTempUsageDetail_20' ) end [2025-02-19 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:41:20] Production.INFO: ==28775== Releasing lock... [2025-02-19 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:42:05 [end_date_ymd] => 2025-02-19 02:42:05 [RateCDR] => 1 ) [2025-02-19 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:42:05' and `end` < '2025-02-19 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:42:17] Production.INFO: count ==292 [2025-02-19 02:42:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:42:05 - End Time 2025-02-19 02:42:05 [2025-02-19 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507410', 'tblTempUsageDetail_20' ) start [2025-02-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507410', 'tblTempUsageDetail_20' ) end [2025-02-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507410', 'tblTempVendorCDR_20' ) start [2025-02-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507410', 'tblTempVendorCDR_20' ) end [2025-02-19 02:42:17] Production.INFO: ProcessCDR(1,14507410,1,1,2) [2025-02-19 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507410', 'tblTempUsageDetail_20' ) start [2025-02-19 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507410', 'tblTempUsageDetail_20' ) end [2025-02-19 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:42:20] Production.INFO: ==28847== Releasing lock... [2025-02-19 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:43:05 [end_date_ymd] => 2025-02-19 02:43:05 [RateCDR] => 1 ) [2025-02-19 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:43:05' and `end` < '2025-02-19 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:43:17] Production.INFO: count ==290 [2025-02-19 02:43:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:43:05 - End Time 2025-02-19 02:43:05 [2025-02-19 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507415', 'tblTempUsageDetail_20' ) start [2025-02-19 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507415', 'tblTempUsageDetail_20' ) end [2025-02-19 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507415', 'tblTempVendorCDR_20' ) start [2025-02-19 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507415', 'tblTempVendorCDR_20' ) end [2025-02-19 02:43:17] Production.INFO: ProcessCDR(1,14507415,1,1,2) [2025-02-19 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507415', 'tblTempUsageDetail_20' ) start [2025-02-19 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507415', 'tblTempUsageDetail_20' ) end [2025-02-19 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:43:20] Production.INFO: ==28956== Releasing lock... [2025-02-19 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:44:06 [end_date_ymd] => 2025-02-19 02:44:06 [RateCDR] => 1 ) [2025-02-19 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:44:06' and `end` < '2025-02-19 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:44:17] Production.INFO: count ==289 [2025-02-19 02:44:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:44:06 - End Time 2025-02-19 02:44:06 [2025-02-19 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507420', 'tblTempUsageDetail_20' ) start [2025-02-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507420', 'tblTempUsageDetail_20' ) end [2025-02-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507420', 'tblTempVendorCDR_20' ) start [2025-02-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507420', 'tblTempVendorCDR_20' ) end [2025-02-19 02:44:17] Production.INFO: ProcessCDR(1,14507420,1,1,2) [2025-02-19 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507420', 'tblTempUsageDetail_20' ) start [2025-02-19 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507420', 'tblTempUsageDetail_20' ) end [2025-02-19 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:44:21] Production.INFO: ==29031== Releasing lock... [2025-02-19 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:45:05 [end_date_ymd] => 2025-02-19 02:45:05 [RateCDR] => 1 ) [2025-02-19 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:45:05' and `end` < '2025-02-19 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:45:17] Production.INFO: count ==288 [2025-02-19 02:45:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:45:05 - End Time 2025-02-19 02:45:05 [2025-02-19 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507425', 'tblTempUsageDetail_20' ) start [2025-02-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507425', 'tblTempUsageDetail_20' ) end [2025-02-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507425', 'tblTempVendorCDR_20' ) start [2025-02-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507425', 'tblTempVendorCDR_20' ) end [2025-02-19 02:45:17] Production.INFO: ProcessCDR(1,14507425,1,1,2) [2025-02-19 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507425', 'tblTempUsageDetail_20' ) start [2025-02-19 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507425', 'tblTempUsageDetail_20' ) end [2025-02-19 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:45:20] Production.INFO: ==29106== Releasing lock... [2025-02-19 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:45:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:46:06 [end_date_ymd] => 2025-02-19 02:46:06 [RateCDR] => 1 ) [2025-02-19 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:46:06' and `end` < '2025-02-19 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:46:17] Production.INFO: count ==288 [2025-02-19 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:46:06 - End Time 2025-02-19 02:46:06 [2025-02-19 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507430', 'tblTempUsageDetail_20' ) start [2025-02-19 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507430', 'tblTempUsageDetail_20' ) end [2025-02-19 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507430', 'tblTempVendorCDR_20' ) start [2025-02-19 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507430', 'tblTempVendorCDR_20' ) end [2025-02-19 02:46:17] Production.INFO: ProcessCDR(1,14507430,1,1,2) [2025-02-19 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507430', 'tblTempUsageDetail_20' ) start [2025-02-19 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507430', 'tblTempUsageDetail_20' ) end [2025-02-19 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:46:21] Production.INFO: ==29177== Releasing lock... [2025-02-19 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:47:05 [end_date_ymd] => 2025-02-19 02:47:05 [RateCDR] => 1 ) [2025-02-19 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:47:05' and `end` < '2025-02-19 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:47:17] Production.INFO: count ==288 [2025-02-19 02:47:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:47:05 - End Time 2025-02-19 02:47:05 [2025-02-19 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507435', 'tblTempUsageDetail_20' ) start [2025-02-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507435', 'tblTempUsageDetail_20' ) end [2025-02-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507435', 'tblTempVendorCDR_20' ) start [2025-02-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507435', 'tblTempVendorCDR_20' ) end [2025-02-19 02:47:17] Production.INFO: ProcessCDR(1,14507435,1,1,2) [2025-02-19 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507435', 'tblTempUsageDetail_20' ) start [2025-02-19 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507435', 'tblTempUsageDetail_20' ) end [2025-02-19 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:47:20] Production.INFO: ==29248== Releasing lock... [2025-02-19 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:48:05 [end_date_ymd] => 2025-02-19 02:48:05 [RateCDR] => 1 ) [2025-02-19 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:48:05' and `end` < '2025-02-19 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:48:17] Production.INFO: count ==288 [2025-02-19 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:48:05 - End Time 2025-02-19 02:48:05 [2025-02-19 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507440', 'tblTempUsageDetail_20' ) start [2025-02-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507440', 'tblTempUsageDetail_20' ) end [2025-02-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507440', 'tblTempVendorCDR_20' ) start [2025-02-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507440', 'tblTempVendorCDR_20' ) end [2025-02-19 02:48:17] Production.INFO: ProcessCDR(1,14507440,1,1,2) [2025-02-19 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507440', 'tblTempUsageDetail_20' ) start [2025-02-19 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507440', 'tblTempUsageDetail_20' ) end [2025-02-19 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:48:20] Production.INFO: ==29319== Releasing lock... [2025-02-19 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:48:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:49:06 [end_date_ymd] => 2025-02-19 02:49:06 [RateCDR] => 1 ) [2025-02-19 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:49:06' and `end` < '2025-02-19 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:49:17] Production.INFO: count ==288 [2025-02-19 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:49:06 - End Time 2025-02-19 02:49:06 [2025-02-19 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507445', 'tblTempUsageDetail_20' ) start [2025-02-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507445', 'tblTempUsageDetail_20' ) end [2025-02-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507445', 'tblTempVendorCDR_20' ) start [2025-02-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507445', 'tblTempVendorCDR_20' ) end [2025-02-19 02:49:17] Production.INFO: ProcessCDR(1,14507445,1,1,2) [2025-02-19 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507445', 'tblTempUsageDetail_20' ) start [2025-02-19 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507445', 'tblTempUsageDetail_20' ) end [2025-02-19 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:49:21] Production.INFO: ==29392== Releasing lock... [2025-02-19 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:50:06 [end_date_ymd] => 2025-02-19 02:50:06 [RateCDR] => 1 ) [2025-02-19 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:50:06' and `end` < '2025-02-19 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:50:18] Production.INFO: count ==287 [2025-02-19 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-18 23:50:06 - End Time 2025-02-19 02:50:06 [2025-02-19 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507451', 'tblTempUsageDetail_20' ) start [2025-02-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507451', 'tblTempUsageDetail_20' ) end [2025-02-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507451', 'tblTempVendorCDR_20' ) start [2025-02-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507451', 'tblTempVendorCDR_20' ) end [2025-02-19 02:50:18] Production.INFO: ProcessCDR(1,14507451,1,1,2) [2025-02-19 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507451', 'tblTempUsageDetail_20' ) start [2025-02-19 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507451', 'tblTempUsageDetail_20' ) end [2025-02-19 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:50:21] Production.INFO: ==29468== Releasing lock... [2025-02-19 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:50:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:51:05 [end_date_ymd] => 2025-02-19 02:51:05 [RateCDR] => 1 ) [2025-02-19 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:51:05' and `end` < '2025-02-19 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:51:17] Production.INFO: count ==287 [2025-02-19 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:51:05 - End Time 2025-02-19 02:51:05 [2025-02-19 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507456', 'tblTempUsageDetail_20' ) start [2025-02-19 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507456', 'tblTempUsageDetail_20' ) end [2025-02-19 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507456', 'tblTempVendorCDR_20' ) start [2025-02-19 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507456', 'tblTempVendorCDR_20' ) end [2025-02-19 02:51:17] Production.INFO: ProcessCDR(1,14507456,1,1,2) [2025-02-19 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507456', 'tblTempUsageDetail_20' ) start [2025-02-19 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507456', 'tblTempUsageDetail_20' ) end [2025-02-19 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:51:20] Production.INFO: ==29542== Releasing lock... [2025-02-19 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:51:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:52:05 [end_date_ymd] => 2025-02-19 02:52:05 [RateCDR] => 1 ) [2025-02-19 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:52:05' and `end` < '2025-02-19 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:52:17] Production.INFO: count ==286 [2025-02-19 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:52:05 - End Time 2025-02-19 02:52:05 [2025-02-19 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507461', 'tblTempUsageDetail_20' ) start [2025-02-19 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507461', 'tblTempUsageDetail_20' ) end [2025-02-19 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507461', 'tblTempVendorCDR_20' ) start [2025-02-19 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507461', 'tblTempVendorCDR_20' ) end [2025-02-19 02:52:17] Production.INFO: ProcessCDR(1,14507461,1,1,2) [2025-02-19 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507461', 'tblTempUsageDetail_20' ) start [2025-02-19 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507461', 'tblTempUsageDetail_20' ) end [2025-02-19 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:52:20] Production.INFO: ==29614== Releasing lock... [2025-02-19 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:52:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:53:05 [end_date_ymd] => 2025-02-19 02:53:05 [RateCDR] => 1 ) [2025-02-19 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:53:05' and `end` < '2025-02-19 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:53:17] Production.INFO: count ==283 [2025-02-19 02:53:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:53:05 - End Time 2025-02-19 02:53:05 [2025-02-19 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507466', 'tblTempUsageDetail_20' ) start [2025-02-19 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507466', 'tblTempUsageDetail_20' ) end [2025-02-19 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507466', 'tblTempVendorCDR_20' ) start [2025-02-19 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507466', 'tblTempVendorCDR_20' ) end [2025-02-19 02:53:17] Production.INFO: ProcessCDR(1,14507466,1,1,2) [2025-02-19 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507466', 'tblTempUsageDetail_20' ) start [2025-02-19 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507466', 'tblTempUsageDetail_20' ) end [2025-02-19 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:53:20] Production.INFO: ==29687== Releasing lock... [2025-02-19 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:53:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:54:05 [end_date_ymd] => 2025-02-19 02:54:05 [RateCDR] => 1 ) [2025-02-19 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:54:05' and `end` < '2025-02-19 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:54:17] Production.INFO: count ==283 [2025-02-19 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:54:05 - End Time 2025-02-19 02:54:05 [2025-02-19 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507471', 'tblTempUsageDetail_20' ) start [2025-02-19 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507471', 'tblTempUsageDetail_20' ) end [2025-02-19 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507471', 'tblTempVendorCDR_20' ) start [2025-02-19 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507471', 'tblTempVendorCDR_20' ) end [2025-02-19 02:54:17] Production.INFO: ProcessCDR(1,14507471,1,1,2) [2025-02-19 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507471', 'tblTempUsageDetail_20' ) start [2025-02-19 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507471', 'tblTempUsageDetail_20' ) end [2025-02-19 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:54:20] Production.INFO: ==29759== Releasing lock... [2025-02-19 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:54:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:55:05 [end_date_ymd] => 2025-02-19 02:55:05 [RateCDR] => 1 ) [2025-02-19 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:55:05' and `end` < '2025-02-19 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:55:17] Production.INFO: count ==283 [2025-02-19 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:55:05 - End Time 2025-02-19 02:55:05 [2025-02-19 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507476', 'tblTempUsageDetail_20' ) start [2025-02-19 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507476', 'tblTempUsageDetail_20' ) end [2025-02-19 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507476', 'tblTempVendorCDR_20' ) start [2025-02-19 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507476', 'tblTempVendorCDR_20' ) end [2025-02-19 02:55:17] Production.INFO: ProcessCDR(1,14507476,1,1,2) [2025-02-19 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507476', 'tblTempUsageDetail_20' ) start [2025-02-19 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507476', 'tblTempUsageDetail_20' ) end [2025-02-19 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:55:21] Production.INFO: ==29835== Releasing lock... [2025-02-19 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:56:06 [end_date_ymd] => 2025-02-19 02:56:06 [RateCDR] => 1 ) [2025-02-19 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:56:06' and `end` < '2025-02-19 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:56:17] Production.INFO: count ==283 [2025-02-19 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:56:06 - End Time 2025-02-19 02:56:06 [2025-02-19 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507481', 'tblTempUsageDetail_20' ) start [2025-02-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507481', 'tblTempUsageDetail_20' ) end [2025-02-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507481', 'tblTempVendorCDR_20' ) start [2025-02-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507481', 'tblTempVendorCDR_20' ) end [2025-02-19 02:56:17] Production.INFO: ProcessCDR(1,14507481,1,1,2) [2025-02-19 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507481', 'tblTempUsageDetail_20' ) start [2025-02-19 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507481', 'tblTempUsageDetail_20' ) end [2025-02-19 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:56:21] Production.INFO: ==29909== Releasing lock... [2025-02-19 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:57:05 [end_date_ymd] => 2025-02-19 02:57:05 [RateCDR] => 1 ) [2025-02-19 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:57:05' and `end` < '2025-02-19 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:57:17] Production.INFO: count ==283 [2025-02-19 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:57:05 - End Time 2025-02-19 02:57:05 [2025-02-19 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507486', 'tblTempUsageDetail_20' ) start [2025-02-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507486', 'tblTempUsageDetail_20' ) end [2025-02-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507486', 'tblTempVendorCDR_20' ) start [2025-02-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507486', 'tblTempVendorCDR_20' ) end [2025-02-19 02:57:17] Production.INFO: ProcessCDR(1,14507486,1,1,2) [2025-02-19 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507486', 'tblTempUsageDetail_20' ) start [2025-02-19 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507486', 'tblTempUsageDetail_20' ) end [2025-02-19 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:57:21] Production.INFO: ==29990== Releasing lock... [2025-02-19 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:57:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:58:06 [end_date_ymd] => 2025-02-19 02:58:06 [RateCDR] => 1 ) [2025-02-19 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:58:06' and `end` < '2025-02-19 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:58:17] Production.INFO: count ==283 [2025-02-19 02:58:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:58:06 - End Time 2025-02-19 02:58:06 [2025-02-19 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507491', 'tblTempUsageDetail_20' ) start [2025-02-19 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507491', 'tblTempUsageDetail_20' ) end [2025-02-19 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507491', 'tblTempVendorCDR_20' ) start [2025-02-19 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507491', 'tblTempVendorCDR_20' ) end [2025-02-19 02:58:17] Production.INFO: ProcessCDR(1,14507491,1,1,2) [2025-02-19 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507491', 'tblTempUsageDetail_20' ) start [2025-02-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507491', 'tblTempUsageDetail_20' ) end [2025-02-19 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:58:21] Production.INFO: ==30106== Releasing lock... [2025-02-19 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-18 23:59:05 [end_date_ymd] => 2025-02-19 02:59:05 [RateCDR] => 1 ) [2025-02-19 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-18 23:59:05' and `end` < '2025-02-19 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 02:59:17] Production.INFO: count ==283 [2025-02-19 02:59:17] Production.ERROR: pbx CDR StartTime 2025-02-18 23:59:05 - End Time 2025-02-19 02:59:05 [2025-02-19 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507496', 'tblTempUsageDetail_20' ) start [2025-02-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507496', 'tblTempUsageDetail_20' ) end [2025-02-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507496', 'tblTempVendorCDR_20' ) start [2025-02-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507496', 'tblTempVendorCDR_20' ) end [2025-02-19 02:59:17] Production.INFO: ProcessCDR(1,14507496,1,1,2) [2025-02-19 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507496', 'tblTempUsageDetail_20' ) start [2025-02-19 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507496', 'tblTempUsageDetail_20' ) end [2025-02-19 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 02:59:20] Production.INFO: ==30185== Releasing lock... [2025-02-19 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 02:59:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:00:06 [end_date_ymd] => 2025-02-19 03:00:06 [RateCDR] => 1 ) [2025-02-19 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:00:06' and `end` < '2025-02-19 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:00:18] Production.INFO: count ==280 [2025-02-19 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:00:06 - End Time 2025-02-19 03:00:06 [2025-02-19 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507502', 'tblTempUsageDetail_20' ) start [2025-02-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507502', 'tblTempUsageDetail_20' ) end [2025-02-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507502', 'tblTempVendorCDR_20' ) start [2025-02-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507502', 'tblTempVendorCDR_20' ) end [2025-02-19 03:00:18] Production.INFO: ProcessCDR(1,14507502,1,1,2) [2025-02-19 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507502', 'tblTempUsageDetail_20' ) start [2025-02-19 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507502', 'tblTempUsageDetail_20' ) end [2025-02-19 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:00:21] Production.INFO: ==30267== Releasing lock... [2025-02-19 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:01:05 [end_date_ymd] => 2025-02-19 03:01:05 [RateCDR] => 1 ) [2025-02-19 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:01:05' and `end` < '2025-02-19 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:01:17] Production.INFO: count ==277 [2025-02-19 03:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:01:05 - End Time 2025-02-19 03:01:05 [2025-02-19 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507507', 'tblTempUsageDetail_20' ) start [2025-02-19 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507507', 'tblTempUsageDetail_20' ) end [2025-02-19 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507507', 'tblTempVendorCDR_20' ) start [2025-02-19 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507507', 'tblTempVendorCDR_20' ) end [2025-02-19 03:01:17] Production.INFO: ProcessCDR(1,14507507,1,1,2) [2025-02-19 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507507', 'tblTempUsageDetail_20' ) start [2025-02-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507507', 'tblTempUsageDetail_20' ) end [2025-02-19 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:01:21] Production.INFO: ==30358== Releasing lock... [2025-02-19 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:02:06 [end_date_ymd] => 2025-02-19 03:02:06 [RateCDR] => 1 ) [2025-02-19 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:02:06' and `end` < '2025-02-19 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:02:18] Production.INFO: count ==276 [2025-02-19 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:02:06 - End Time 2025-02-19 03:02:06 [2025-02-19 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507512', 'tblTempUsageDetail_20' ) start [2025-02-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507512', 'tblTempUsageDetail_20' ) end [2025-02-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507512', 'tblTempVendorCDR_20' ) start [2025-02-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507512', 'tblTempVendorCDR_20' ) end [2025-02-19 03:02:18] Production.INFO: ProcessCDR(1,14507512,1,1,2) [2025-02-19 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507512', 'tblTempUsageDetail_20' ) start [2025-02-19 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507512', 'tblTempUsageDetail_20' ) end [2025-02-19 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:02:21] Production.INFO: ==30513== Releasing lock... [2025-02-19 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:03:05 [end_date_ymd] => 2025-02-19 03:03:05 [RateCDR] => 1 ) [2025-02-19 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:03:05' and `end` < '2025-02-19 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:03:17] Production.INFO: count ==276 [2025-02-19 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:03:05 - End Time 2025-02-19 03:03:05 [2025-02-19 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507517', 'tblTempUsageDetail_20' ) start [2025-02-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507517', 'tblTempUsageDetail_20' ) end [2025-02-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507517', 'tblTempVendorCDR_20' ) start [2025-02-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507517', 'tblTempVendorCDR_20' ) end [2025-02-19 03:03:17] Production.INFO: ProcessCDR(1,14507517,1,1,2) [2025-02-19 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507517', 'tblTempUsageDetail_20' ) start [2025-02-19 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507517', 'tblTempUsageDetail_20' ) end [2025-02-19 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:03:20] Production.INFO: ==30592== Releasing lock... [2025-02-19 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:03:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:04:05 [end_date_ymd] => 2025-02-19 03:04:05 [RateCDR] => 1 ) [2025-02-19 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:04:05' and `end` < '2025-02-19 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:04:17] Production.INFO: count ==275 [2025-02-19 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:04:05 - End Time 2025-02-19 03:04:05 [2025-02-19 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507522', 'tblTempUsageDetail_20' ) start [2025-02-19 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507522', 'tblTempUsageDetail_20' ) end [2025-02-19 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507522', 'tblTempVendorCDR_20' ) start [2025-02-19 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507522', 'tblTempVendorCDR_20' ) end [2025-02-19 03:04:17] Production.INFO: ProcessCDR(1,14507522,1,1,2) [2025-02-19 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507522', 'tblTempUsageDetail_20' ) start [2025-02-19 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507522', 'tblTempUsageDetail_20' ) end [2025-02-19 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:04:21] Production.INFO: ==30676== Releasing lock... [2025-02-19 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:05:06 [end_date_ymd] => 2025-02-19 03:05:06 [RateCDR] => 1 ) [2025-02-19 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:05:06' and `end` < '2025-02-19 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:05:17] Production.INFO: count ==279 [2025-02-19 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:05:06 - End Time 2025-02-19 03:05:06 [2025-02-19 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507527', 'tblTempUsageDetail_20' ) start [2025-02-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507527', 'tblTempUsageDetail_20' ) end [2025-02-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507527', 'tblTempVendorCDR_20' ) start [2025-02-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507527', 'tblTempVendorCDR_20' ) end [2025-02-19 03:05:17] Production.INFO: ProcessCDR(1,14507527,1,1,2) [2025-02-19 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507527', 'tblTempUsageDetail_20' ) start [2025-02-19 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507527', 'tblTempUsageDetail_20' ) end [2025-02-19 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:05:21] Production.INFO: ==30750== Releasing lock... [2025-02-19 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:06:06 [end_date_ymd] => 2025-02-19 03:06:06 [RateCDR] => 1 ) [2025-02-19 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:06:06' and `end` < '2025-02-19 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:06:17] Production.INFO: count ==279 [2025-02-19 03:06:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:06:06 - End Time 2025-02-19 03:06:06 [2025-02-19 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507532', 'tblTempUsageDetail_20' ) start [2025-02-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507532', 'tblTempUsageDetail_20' ) end [2025-02-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507532', 'tblTempVendorCDR_20' ) start [2025-02-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507532', 'tblTempVendorCDR_20' ) end [2025-02-19 03:06:17] Production.INFO: ProcessCDR(1,14507532,1,1,2) [2025-02-19 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507532', 'tblTempUsageDetail_20' ) start [2025-02-19 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507532', 'tblTempUsageDetail_20' ) end [2025-02-19 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:06:21] Production.INFO: ==30901== Releasing lock... [2025-02-19 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:06:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:07:05 [end_date_ymd] => 2025-02-19 03:07:05 [RateCDR] => 1 ) [2025-02-19 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:07:05' and `end` < '2025-02-19 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:07:17] Production.INFO: count ==274 [2025-02-19 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:07:05 - End Time 2025-02-19 03:07:05 [2025-02-19 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507537', 'tblTempUsageDetail_20' ) start [2025-02-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507537', 'tblTempUsageDetail_20' ) end [2025-02-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507537', 'tblTempVendorCDR_20' ) start [2025-02-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507537', 'tblTempVendorCDR_20' ) end [2025-02-19 03:07:17] Production.INFO: ProcessCDR(1,14507537,1,1,2) [2025-02-19 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507537', 'tblTempUsageDetail_20' ) start [2025-02-19 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507537', 'tblTempUsageDetail_20' ) end [2025-02-19 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:07:21] Production.INFO: ==30978== Releasing lock... [2025-02-19 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:08:05 [end_date_ymd] => 2025-02-19 03:08:05 [RateCDR] => 1 ) [2025-02-19 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:08:05' and `end` < '2025-02-19 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:08:17] Production.INFO: count ==274 [2025-02-19 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:08:05 - End Time 2025-02-19 03:08:05 [2025-02-19 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507542', 'tblTempUsageDetail_20' ) start [2025-02-19 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507542', 'tblTempUsageDetail_20' ) end [2025-02-19 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507542', 'tblTempVendorCDR_20' ) start [2025-02-19 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507542', 'tblTempVendorCDR_20' ) end [2025-02-19 03:08:17] Production.INFO: ProcessCDR(1,14507542,1,1,2) [2025-02-19 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507542', 'tblTempUsageDetail_20' ) start [2025-02-19 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507542', 'tblTempUsageDetail_20' ) end [2025-02-19 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:08:20] Production.INFO: ==31055== Releasing lock... [2025-02-19 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:08:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:09:05 [end_date_ymd] => 2025-02-19 03:09:05 [RateCDR] => 1 ) [2025-02-19 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:09:05' and `end` < '2025-02-19 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:09:17] Production.INFO: count ==261 [2025-02-19 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:09:05 - End Time 2025-02-19 03:09:05 [2025-02-19 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507547', 'tblTempUsageDetail_20' ) start [2025-02-19 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507547', 'tblTempUsageDetail_20' ) end [2025-02-19 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507547', 'tblTempVendorCDR_20' ) start [2025-02-19 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507547', 'tblTempVendorCDR_20' ) end [2025-02-19 03:09:17] Production.INFO: ProcessCDR(1,14507547,1,1,2) [2025-02-19 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507547', 'tblTempUsageDetail_20' ) start [2025-02-19 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507547', 'tblTempUsageDetail_20' ) end [2025-02-19 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:09:20] Production.INFO: ==31208== Releasing lock... [2025-02-19 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:10:05 [end_date_ymd] => 2025-02-19 03:10:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 00:10:05' and `end` < '2025-02-19 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-02-19 03:10:17] Production.INFO: count ==261 [2025-02-19 03:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:10:05 - End Time 2025-02-19 03:10:05 [2025-02-19 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507552', 'tblTempUsageDetail_20' ) start [2025-02-19 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507552', 'tblTempUsageDetail_20' ) end [2025-02-19 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507552', 'tblTempVendorCDR_20' ) start [2025-02-19 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507552', 'tblTempVendorCDR_20' ) end [2025-02-19 03:10:17] Production.INFO: ProcessCDR(1,14507552,1,1,2) [2025-02-19 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507552', 'tblTempUsageDetail_20' ) start [2025-02-19 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507552', 'tblTempUsageDetail_20' ) end [2025-02-19 03:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:10:20] Production.INFO: ==31287== Releasing lock... [2025-02-19 03:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:10:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:11:06 [end_date_ymd] => 2025-02-19 03:11:06 [RateCDR] => 1 ) [2025-02-19 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:11:06' and `end` < '2025-02-19 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:11:18] Production.INFO: count ==253 [2025-02-19 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:11:06 - End Time 2025-02-19 03:11:06 [2025-02-19 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507558', 'tblTempUsageDetail_20' ) start [2025-02-19 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507558', 'tblTempUsageDetail_20' ) end [2025-02-19 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507558', 'tblTempVendorCDR_20' ) start [2025-02-19 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507558', 'tblTempVendorCDR_20' ) end [2025-02-19 03:11:18] Production.INFO: ProcessCDR(1,14507558,1,1,2) [2025-02-19 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507558', 'tblTempUsageDetail_20' ) start [2025-02-19 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507558', 'tblTempUsageDetail_20' ) end [2025-02-19 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:11:21] Production.INFO: ==31367== Releasing lock... [2025-02-19 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:12:05 [end_date_ymd] => 2025-02-19 03:12:05 [RateCDR] => 1 ) [2025-02-19 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:12:05' and `end` < '2025-02-19 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:12:17] Production.INFO: count ==253 [2025-02-19 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:12:05 - End Time 2025-02-19 03:12:05 [2025-02-19 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507563', 'tblTempUsageDetail_20' ) start [2025-02-19 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507563', 'tblTempUsageDetail_20' ) end [2025-02-19 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507563', 'tblTempVendorCDR_20' ) start [2025-02-19 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507563', 'tblTempVendorCDR_20' ) end [2025-02-19 03:12:17] Production.INFO: ProcessCDR(1,14507563,1,1,2) [2025-02-19 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507563', 'tblTempUsageDetail_20' ) start [2025-02-19 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507563', 'tblTempUsageDetail_20' ) end [2025-02-19 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:12:20] Production.INFO: ==31442== Releasing lock... [2025-02-19 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:13:05 [end_date_ymd] => 2025-02-19 03:13:05 [RateCDR] => 1 ) [2025-02-19 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:13:05' and `end` < '2025-02-19 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:13:17] Production.INFO: count ==252 [2025-02-19 03:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:13:05 - End Time 2025-02-19 03:13:05 [2025-02-19 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507568', 'tblTempUsageDetail_20' ) start [2025-02-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507568', 'tblTempUsageDetail_20' ) end [2025-02-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507568', 'tblTempVendorCDR_20' ) start [2025-02-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507568', 'tblTempVendorCDR_20' ) end [2025-02-19 03:13:17] Production.INFO: ProcessCDR(1,14507568,1,1,2) [2025-02-19 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507568', 'tblTempUsageDetail_20' ) start [2025-02-19 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507568', 'tblTempUsageDetail_20' ) end [2025-02-19 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:13:20] Production.INFO: ==31595== Releasing lock... [2025-02-19 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:13:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:14:05 [end_date_ymd] => 2025-02-19 03:14:05 [RateCDR] => 1 ) [2025-02-19 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:14:05' and `end` < '2025-02-19 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:14:17] Production.INFO: count ==252 [2025-02-19 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:14:05 - End Time 2025-02-19 03:14:05 [2025-02-19 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507573', 'tblTempUsageDetail_20' ) start [2025-02-19 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507573', 'tblTempUsageDetail_20' ) end [2025-02-19 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507573', 'tblTempVendorCDR_20' ) start [2025-02-19 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507573', 'tblTempVendorCDR_20' ) end [2025-02-19 03:14:17] Production.INFO: ProcessCDR(1,14507573,1,1,2) [2025-02-19 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507573', 'tblTempUsageDetail_20' ) start [2025-02-19 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507573', 'tblTempUsageDetail_20' ) end [2025-02-19 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:14:20] Production.INFO: ==31713== Releasing lock... [2025-02-19 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:14:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:15:05 [end_date_ymd] => 2025-02-19 03:15:05 [RateCDR] => 1 ) [2025-02-19 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:15:05' and `end` < '2025-02-19 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:15:17] Production.INFO: count ==252 [2025-02-19 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:15:05 - End Time 2025-02-19 03:15:05 [2025-02-19 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507578', 'tblTempUsageDetail_20' ) start [2025-02-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507578', 'tblTempUsageDetail_20' ) end [2025-02-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507578', 'tblTempVendorCDR_20' ) start [2025-02-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507578', 'tblTempVendorCDR_20' ) end [2025-02-19 03:15:17] Production.INFO: ProcessCDR(1,14507578,1,1,2) [2025-02-19 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507578', 'tblTempUsageDetail_20' ) start [2025-02-19 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507578', 'tblTempUsageDetail_20' ) end [2025-02-19 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:15:20] Production.INFO: ==31792== Releasing lock... [2025-02-19 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:16:05 [end_date_ymd] => 2025-02-19 03:16:05 [RateCDR] => 1 ) [2025-02-19 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:16:05' and `end` < '2025-02-19 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:16:17] Production.INFO: count ==252 [2025-02-19 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:16:05 - End Time 2025-02-19 03:16:05 [2025-02-19 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507583', 'tblTempUsageDetail_20' ) start [2025-02-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507583', 'tblTempUsageDetail_20' ) end [2025-02-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507583', 'tblTempVendorCDR_20' ) start [2025-02-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507583', 'tblTempVendorCDR_20' ) end [2025-02-19 03:16:17] Production.INFO: ProcessCDR(1,14507583,1,1,2) [2025-02-19 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507583', 'tblTempUsageDetail_20' ) start [2025-02-19 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507583', 'tblTempUsageDetail_20' ) end [2025-02-19 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:16:20] Production.INFO: ==31879== Releasing lock... [2025-02-19 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:17:05 [end_date_ymd] => 2025-02-19 03:17:05 [RateCDR] => 1 ) [2025-02-19 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:17:05' and `end` < '2025-02-19 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:17:17] Production.INFO: count ==252 [2025-02-19 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:17:05 - End Time 2025-02-19 03:17:05 [2025-02-19 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507588', 'tblTempUsageDetail_20' ) start [2025-02-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507588', 'tblTempUsageDetail_20' ) end [2025-02-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507588', 'tblTempVendorCDR_20' ) start [2025-02-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507588', 'tblTempVendorCDR_20' ) end [2025-02-19 03:17:17] Production.INFO: ProcessCDR(1,14507588,1,1,2) [2025-02-19 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507588', 'tblTempUsageDetail_20' ) start [2025-02-19 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507588', 'tblTempUsageDetail_20' ) end [2025-02-19 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:17:20] Production.INFO: ==32060== Releasing lock... [2025-02-19 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:18:05 [end_date_ymd] => 2025-02-19 03:18:05 [RateCDR] => 1 ) [2025-02-19 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:18:05' and `end` < '2025-02-19 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:18:17] Production.INFO: count ==252 [2025-02-19 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:18:05 - End Time 2025-02-19 03:18:05 [2025-02-19 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507593', 'tblTempUsageDetail_20' ) start [2025-02-19 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507593', 'tblTempUsageDetail_20' ) end [2025-02-19 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507593', 'tblTempVendorCDR_20' ) start [2025-02-19 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507593', 'tblTempVendorCDR_20' ) end [2025-02-19 03:18:17] Production.INFO: ProcessCDR(1,14507593,1,1,2) [2025-02-19 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507593', 'tblTempUsageDetail_20' ) start [2025-02-19 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507593', 'tblTempUsageDetail_20' ) end [2025-02-19 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:18:20] Production.INFO: ==32136== Releasing lock... [2025-02-19 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:19:05 [end_date_ymd] => 2025-02-19 03:19:05 [RateCDR] => 1 ) [2025-02-19 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:19:05' and `end` < '2025-02-19 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:19:17] Production.INFO: count ==252 [2025-02-19 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:19:05 - End Time 2025-02-19 03:19:05 [2025-02-19 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507598', 'tblTempUsageDetail_20' ) start [2025-02-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507598', 'tblTempUsageDetail_20' ) end [2025-02-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507598', 'tblTempVendorCDR_20' ) start [2025-02-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507598', 'tblTempVendorCDR_20' ) end [2025-02-19 03:19:17] Production.INFO: ProcessCDR(1,14507598,1,1,2) [2025-02-19 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507598', 'tblTempUsageDetail_20' ) start [2025-02-19 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507598', 'tblTempUsageDetail_20' ) end [2025-02-19 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:19:20] Production.INFO: ==32212== Releasing lock... [2025-02-19 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:20:06 [end_date_ymd] => 2025-02-19 03:20:06 [RateCDR] => 1 ) [2025-02-19 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:20:06' and `end` < '2025-02-19 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:20:18] Production.INFO: count ==244 [2025-02-19 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:20:06 - End Time 2025-02-19 03:20:06 [2025-02-19 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507604', 'tblTempUsageDetail_20' ) start [2025-02-19 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507604', 'tblTempUsageDetail_20' ) end [2025-02-19 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507604', 'tblTempVendorCDR_20' ) start [2025-02-19 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507604', 'tblTempVendorCDR_20' ) end [2025-02-19 03:20:18] Production.INFO: ProcessCDR(1,14507604,1,1,2) [2025-02-19 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507604', 'tblTempUsageDetail_20' ) start [2025-02-19 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507604', 'tblTempUsageDetail_20' ) end [2025-02-19 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:20:21] Production.INFO: ==32289== Releasing lock... [2025-02-19 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:21:05 [end_date_ymd] => 2025-02-19 03:21:05 [RateCDR] => 1 ) [2025-02-19 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:21:05' and `end` < '2025-02-19 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:21:16] Production.INFO: count ==244 [2025-02-19 03:21:16] Production.ERROR: pbx CDR StartTime 2025-02-19 00:21:05 - End Time 2025-02-19 03:21:05 [2025-02-19 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507609', 'tblTempUsageDetail_20' ) start [2025-02-19 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507609', 'tblTempUsageDetail_20' ) end [2025-02-19 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507609', 'tblTempVendorCDR_20' ) start [2025-02-19 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507609', 'tblTempVendorCDR_20' ) end [2025-02-19 03:21:16] Production.INFO: ProcessCDR(1,14507609,1,1,2) [2025-02-19 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507609', 'tblTempUsageDetail_20' ) start [2025-02-19 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507609', 'tblTempUsageDetail_20' ) end [2025-02-19 03:21:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:21:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:21:20] Production.INFO: ==32366== Releasing lock... [2025-02-19 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:21:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:22:06 [end_date_ymd] => 2025-02-19 03:22:06 [RateCDR] => 1 ) [2025-02-19 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:22:06' and `end` < '2025-02-19 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:22:17] Production.INFO: count ==244 [2025-02-19 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:22:06 - End Time 2025-02-19 03:22:06 [2025-02-19 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507614', 'tblTempUsageDetail_20' ) start [2025-02-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507614', 'tblTempUsageDetail_20' ) end [2025-02-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507614', 'tblTempVendorCDR_20' ) start [2025-02-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507614', 'tblTempVendorCDR_20' ) end [2025-02-19 03:22:17] Production.INFO: ProcessCDR(1,14507614,1,1,2) [2025-02-19 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507614', 'tblTempUsageDetail_20' ) start [2025-02-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507614', 'tblTempUsageDetail_20' ) end [2025-02-19 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:22:21] Production.INFO: ==32454== Releasing lock... [2025-02-19 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:23:05 [end_date_ymd] => 2025-02-19 03:23:05 [RateCDR] => 1 ) [2025-02-19 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:23:05' and `end` < '2025-02-19 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:23:17] Production.INFO: count ==244 [2025-02-19 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:23:05 - End Time 2025-02-19 03:23:05 [2025-02-19 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507619', 'tblTempUsageDetail_20' ) start [2025-02-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507619', 'tblTempUsageDetail_20' ) end [2025-02-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507619', 'tblTempVendorCDR_20' ) start [2025-02-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507619', 'tblTempVendorCDR_20' ) end [2025-02-19 03:23:17] Production.INFO: ProcessCDR(1,14507619,1,1,2) [2025-02-19 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507619', 'tblTempUsageDetail_20' ) start [2025-02-19 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507619', 'tblTempUsageDetail_20' ) end [2025-02-19 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:23:20] Production.INFO: ==32539== Releasing lock... [2025-02-19 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:23:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:24:05 [end_date_ymd] => 2025-02-19 03:24:05 [RateCDR] => 1 ) [2025-02-19 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:24:05' and `end` < '2025-02-19 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:24:17] Production.INFO: count ==245 [2025-02-19 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:24:05 - End Time 2025-02-19 03:24:05 [2025-02-19 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507624', 'tblTempUsageDetail_20' ) start [2025-02-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507624', 'tblTempUsageDetail_20' ) end [2025-02-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507624', 'tblTempVendorCDR_20' ) start [2025-02-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507624', 'tblTempVendorCDR_20' ) end [2025-02-19 03:24:17] Production.INFO: ProcessCDR(1,14507624,1,1,2) [2025-02-19 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507624', 'tblTempUsageDetail_20' ) start [2025-02-19 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507624', 'tblTempUsageDetail_20' ) end [2025-02-19 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:24:22] Production.INFO: ==32618== Releasing lock... [2025-02-19 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:25:05 [end_date_ymd] => 2025-02-19 03:25:05 [RateCDR] => 1 ) [2025-02-19 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:25:05' and `end` < '2025-02-19 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:25:17] Production.INFO: count ==245 [2025-02-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:25:05 - End Time 2025-02-19 03:25:05 [2025-02-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507629', 'tblTempUsageDetail_20' ) start [2025-02-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507629', 'tblTempUsageDetail_20' ) end [2025-02-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507629', 'tblTempVendorCDR_20' ) start [2025-02-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507629', 'tblTempVendorCDR_20' ) end [2025-02-19 03:25:17] Production.INFO: ProcessCDR(1,14507629,1,1,2) [2025-02-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507629', 'tblTempUsageDetail_20' ) start [2025-02-19 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507629', 'tblTempUsageDetail_20' ) end [2025-02-19 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:25:21] Production.INFO: ==32695== Releasing lock... [2025-02-19 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:26:05 [end_date_ymd] => 2025-02-19 03:26:05 [RateCDR] => 1 ) [2025-02-19 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:26:05' and `end` < '2025-02-19 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:26:17] Production.INFO: count ==245 [2025-02-19 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:26:05 - End Time 2025-02-19 03:26:05 [2025-02-19 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507634', 'tblTempUsageDetail_20' ) start [2025-02-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507634', 'tblTempUsageDetail_20' ) end [2025-02-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507634', 'tblTempVendorCDR_20' ) start [2025-02-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507634', 'tblTempVendorCDR_20' ) end [2025-02-19 03:26:17] Production.INFO: ProcessCDR(1,14507634,1,1,2) [2025-02-19 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507634', 'tblTempUsageDetail_20' ) start [2025-02-19 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507634', 'tblTempUsageDetail_20' ) end [2025-02-19 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:26:20] Production.INFO: ==304== Releasing lock... [2025-02-19 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:27:05 [end_date_ymd] => 2025-02-19 03:27:05 [RateCDR] => 1 ) [2025-02-19 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:27:05' and `end` < '2025-02-19 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:27:17] Production.INFO: count ==242 [2025-02-19 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:27:05 - End Time 2025-02-19 03:27:05 [2025-02-19 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507639', 'tblTempUsageDetail_20' ) start [2025-02-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507639', 'tblTempUsageDetail_20' ) end [2025-02-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507639', 'tblTempVendorCDR_20' ) start [2025-02-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507639', 'tblTempVendorCDR_20' ) end [2025-02-19 03:27:17] Production.INFO: ProcessCDR(1,14507639,1,1,2) [2025-02-19 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507639', 'tblTempUsageDetail_20' ) start [2025-02-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507639', 'tblTempUsageDetail_20' ) end [2025-02-19 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:27:20] Production.INFO: ==397== Releasing lock... [2025-02-19 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:28:06 [end_date_ymd] => 2025-02-19 03:28:06 [RateCDR] => 1 ) [2025-02-19 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:28:06' and `end` < '2025-02-19 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:28:18] Production.INFO: count ==241 [2025-02-19 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:28:06 - End Time 2025-02-19 03:28:06 [2025-02-19 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507644', 'tblTempUsageDetail_20' ) start [2025-02-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507644', 'tblTempUsageDetail_20' ) end [2025-02-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507644', 'tblTempVendorCDR_20' ) start [2025-02-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507644', 'tblTempVendorCDR_20' ) end [2025-02-19 03:28:18] Production.INFO: ProcessCDR(1,14507644,1,1,2) [2025-02-19 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507644', 'tblTempUsageDetail_20' ) start [2025-02-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507644', 'tblTempUsageDetail_20' ) end [2025-02-19 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:28:21] Production.INFO: ==490== Releasing lock... [2025-02-19 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:29:05 [end_date_ymd] => 2025-02-19 03:29:05 [RateCDR] => 1 ) [2025-02-19 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:29:05' and `end` < '2025-02-19 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:29:17] Production.INFO: count ==241 [2025-02-19 03:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:29:05 - End Time 2025-02-19 03:29:05 [2025-02-19 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507649', 'tblTempUsageDetail_20' ) start [2025-02-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507649', 'tblTempUsageDetail_20' ) end [2025-02-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507649', 'tblTempVendorCDR_20' ) start [2025-02-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507649', 'tblTempVendorCDR_20' ) end [2025-02-19 03:29:17] Production.INFO: ProcessCDR(1,14507649,1,1,2) [2025-02-19 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507649', 'tblTempUsageDetail_20' ) start [2025-02-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507649', 'tblTempUsageDetail_20' ) end [2025-02-19 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:29:20] Production.INFO: ==596== Releasing lock... [2025-02-19 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:29:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:30:06 [end_date_ymd] => 2025-02-19 03:30:06 [RateCDR] => 1 ) [2025-02-19 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:30:06' and `end` < '2025-02-19 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:30:18] Production.INFO: count ==233 [2025-02-19 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:30:06 - End Time 2025-02-19 03:30:06 [2025-02-19 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507655', 'tblTempUsageDetail_20' ) start [2025-02-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507655', 'tblTempUsageDetail_20' ) end [2025-02-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507655', 'tblTempVendorCDR_20' ) start [2025-02-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507655', 'tblTempVendorCDR_20' ) end [2025-02-19 03:30:18] Production.INFO: ProcessCDR(1,14507655,1,1,2) [2025-02-19 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507655', 'tblTempUsageDetail_20' ) start [2025-02-19 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507655', 'tblTempUsageDetail_20' ) end [2025-02-19 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:30:22] Production.INFO: ==728== Releasing lock... [2025-02-19 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:31:05 [end_date_ymd] => 2025-02-19 03:31:05 [RateCDR] => 1 ) [2025-02-19 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:31:05' and `end` < '2025-02-19 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:31:17] Production.INFO: count ==225 [2025-02-19 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:31:05 - End Time 2025-02-19 03:31:05 [2025-02-19 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507660', 'tblTempUsageDetail_20' ) start [2025-02-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507660', 'tblTempUsageDetail_20' ) end [2025-02-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507660', 'tblTempVendorCDR_20' ) start [2025-02-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507660', 'tblTempVendorCDR_20' ) end [2025-02-19 03:31:17] Production.INFO: ProcessCDR(1,14507660,1,1,2) [2025-02-19 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507660', 'tblTempUsageDetail_20' ) start [2025-02-19 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507660', 'tblTempUsageDetail_20' ) end [2025-02-19 03:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:31:20] Production.INFO: ==863== Releasing lock... [2025-02-19 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:31:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:32:06 [end_date_ymd] => 2025-02-19 03:32:06 [RateCDR] => 1 ) [2025-02-19 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:32:06' and `end` < '2025-02-19 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:32:17] Production.INFO: count ==225 [2025-02-19 03:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:32:06 - End Time 2025-02-19 03:32:06 [2025-02-19 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507665', 'tblTempUsageDetail_20' ) start [2025-02-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507665', 'tblTempUsageDetail_20' ) end [2025-02-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507665', 'tblTempVendorCDR_20' ) start [2025-02-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507665', 'tblTempVendorCDR_20' ) end [2025-02-19 03:32:17] Production.INFO: ProcessCDR(1,14507665,1,1,2) [2025-02-19 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507665', 'tblTempUsageDetail_20' ) start [2025-02-19 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507665', 'tblTempUsageDetail_20' ) end [2025-02-19 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:32:21] Production.INFO: ==935== Releasing lock... [2025-02-19 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:33:05 [end_date_ymd] => 2025-02-19 03:33:05 [RateCDR] => 1 ) [2025-02-19 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:33:05' and `end` < '2025-02-19 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:33:17] Production.INFO: count ==225 [2025-02-19 03:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:33:05 - End Time 2025-02-19 03:33:05 [2025-02-19 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507670', 'tblTempUsageDetail_20' ) start [2025-02-19 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507670', 'tblTempUsageDetail_20' ) end [2025-02-19 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507670', 'tblTempVendorCDR_20' ) start [2025-02-19 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507670', 'tblTempVendorCDR_20' ) end [2025-02-19 03:33:17] Production.INFO: ProcessCDR(1,14507670,1,1,2) [2025-02-19 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507670', 'tblTempUsageDetail_20' ) start [2025-02-19 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507670', 'tblTempUsageDetail_20' ) end [2025-02-19 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:33:20] Production.INFO: ==1007== Releasing lock... [2025-02-19 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:33:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:34:06 [end_date_ymd] => 2025-02-19 03:34:06 [RateCDR] => 1 ) [2025-02-19 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:34:06' and `end` < '2025-02-19 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:34:18] Production.INFO: count ==225 [2025-02-19 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:34:06 - End Time 2025-02-19 03:34:06 [2025-02-19 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507675', 'tblTempUsageDetail_20' ) start [2025-02-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507675', 'tblTempUsageDetail_20' ) end [2025-02-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507675', 'tblTempVendorCDR_20' ) start [2025-02-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507675', 'tblTempVendorCDR_20' ) end [2025-02-19 03:34:18] Production.INFO: ProcessCDR(1,14507675,1,1,2) [2025-02-19 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507675', 'tblTempUsageDetail_20' ) start [2025-02-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507675', 'tblTempUsageDetail_20' ) end [2025-02-19 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:34:21] Production.INFO: ==1079== Releasing lock... [2025-02-19 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:35:05 [end_date_ymd] => 2025-02-19 03:35:05 [RateCDR] => 1 ) [2025-02-19 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:35:05' and `end` < '2025-02-19 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:35:17] Production.INFO: count ==225 [2025-02-19 03:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:35:05 - End Time 2025-02-19 03:35:05 [2025-02-19 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507680', 'tblTempUsageDetail_20' ) start [2025-02-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507680', 'tblTempUsageDetail_20' ) end [2025-02-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507680', 'tblTempVendorCDR_20' ) start [2025-02-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507680', 'tblTempVendorCDR_20' ) end [2025-02-19 03:35:17] Production.INFO: ProcessCDR(1,14507680,1,1,2) [2025-02-19 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507680', 'tblTempUsageDetail_20' ) start [2025-02-19 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507680', 'tblTempUsageDetail_20' ) end [2025-02-19 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:35:20] Production.INFO: ==1157== Releasing lock... [2025-02-19 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:36:06 [end_date_ymd] => 2025-02-19 03:36:06 [RateCDR] => 1 ) [2025-02-19 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:36:06' and `end` < '2025-02-19 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:36:18] Production.INFO: count ==225 [2025-02-19 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:36:06 - End Time 2025-02-19 03:36:06 [2025-02-19 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507685', 'tblTempUsageDetail_20' ) start [2025-02-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507685', 'tblTempUsageDetail_20' ) end [2025-02-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507685', 'tblTempVendorCDR_20' ) start [2025-02-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507685', 'tblTempVendorCDR_20' ) end [2025-02-19 03:36:18] Production.INFO: ProcessCDR(1,14507685,1,1,2) [2025-02-19 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507685', 'tblTempUsageDetail_20' ) start [2025-02-19 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507685', 'tblTempUsageDetail_20' ) end [2025-02-19 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:36:22] Production.INFO: ==1233== Releasing lock... [2025-02-19 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:37:05 [end_date_ymd] => 2025-02-19 03:37:05 [RateCDR] => 1 ) [2025-02-19 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:37:05' and `end` < '2025-02-19 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:37:17] Production.INFO: count ==222 [2025-02-19 03:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:37:05 - End Time 2025-02-19 03:37:05 [2025-02-19 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507690', 'tblTempUsageDetail_20' ) start [2025-02-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507690', 'tblTempUsageDetail_20' ) end [2025-02-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507690', 'tblTempVendorCDR_20' ) start [2025-02-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507690', 'tblTempVendorCDR_20' ) end [2025-02-19 03:37:17] Production.INFO: ProcessCDR(1,14507690,1,1,2) [2025-02-19 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507690', 'tblTempUsageDetail_20' ) start [2025-02-19 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507690', 'tblTempUsageDetail_20' ) end [2025-02-19 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:37:21] Production.INFO: ==1314== Releasing lock... [2025-02-19 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:38:06 [end_date_ymd] => 2025-02-19 03:38:06 [RateCDR] => 1 ) [2025-02-19 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:38:06' and `end` < '2025-02-19 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:38:17] Production.INFO: count ==221 [2025-02-19 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:38:06 - End Time 2025-02-19 03:38:06 [2025-02-19 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507695', 'tblTempUsageDetail_20' ) start [2025-02-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507695', 'tblTempUsageDetail_20' ) end [2025-02-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507695', 'tblTempVendorCDR_20' ) start [2025-02-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507695', 'tblTempVendorCDR_20' ) end [2025-02-19 03:38:17] Production.INFO: ProcessCDR(1,14507695,1,1,2) [2025-02-19 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507695', 'tblTempUsageDetail_20' ) start [2025-02-19 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507695', 'tblTempUsageDetail_20' ) end [2025-02-19 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:38:21] Production.INFO: ==1385== Releasing lock... [2025-02-19 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:39:05 [end_date_ymd] => 2025-02-19 03:39:05 [RateCDR] => 1 ) [2025-02-19 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:39:05' and `end` < '2025-02-19 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:39:17] Production.INFO: count ==221 [2025-02-19 03:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:39:05 - End Time 2025-02-19 03:39:05 [2025-02-19 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507700', 'tblTempUsageDetail_20' ) start [2025-02-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507700', 'tblTempUsageDetail_20' ) end [2025-02-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507700', 'tblTempVendorCDR_20' ) start [2025-02-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507700', 'tblTempVendorCDR_20' ) end [2025-02-19 03:39:17] Production.INFO: ProcessCDR(1,14507700,1,1,2) [2025-02-19 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507700', 'tblTempUsageDetail_20' ) start [2025-02-19 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507700', 'tblTempUsageDetail_20' ) end [2025-02-19 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:39:21] Production.INFO: ==1455== Releasing lock... [2025-02-19 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:40:07 [end_date_ymd] => 2025-02-19 03:40:07 [RateCDR] => 1 ) [2025-02-19 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:40:07' and `end` < '2025-02-19 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:40:19] Production.INFO: count ==221 [2025-02-19 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-19 00:40:07 - End Time 2025-02-19 03:40:07 [2025-02-19 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507706', 'tblTempUsageDetail_20' ) start [2025-02-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507706', 'tblTempUsageDetail_20' ) end [2025-02-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507706', 'tblTempVendorCDR_20' ) start [2025-02-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507706', 'tblTempVendorCDR_20' ) end [2025-02-19 03:40:19] Production.INFO: ProcessCDR(1,14507706,1,1,2) [2025-02-19 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507706', 'tblTempUsageDetail_20' ) start [2025-02-19 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507706', 'tblTempUsageDetail_20' ) end [2025-02-19 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:40:23] Production.INFO: ==1562== Releasing lock... [2025-02-19 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:41:06 [end_date_ymd] => 2025-02-19 03:41:06 [RateCDR] => 1 ) [2025-02-19 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:41:06' and `end` < '2025-02-19 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:41:17] Production.INFO: count ==221 [2025-02-19 03:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:41:06 - End Time 2025-02-19 03:41:06 [2025-02-19 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507711', 'tblTempUsageDetail_20' ) start [2025-02-19 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507711', 'tblTempUsageDetail_20' ) end [2025-02-19 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507711', 'tblTempVendorCDR_20' ) start [2025-02-19 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507711', 'tblTempVendorCDR_20' ) end [2025-02-19 03:41:17] Production.INFO: ProcessCDR(1,14507711,1,1,2) [2025-02-19 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507711', 'tblTempUsageDetail_20' ) start [2025-02-19 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507711', 'tblTempUsageDetail_20' ) end [2025-02-19 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:41:21] Production.INFO: ==1639== Releasing lock... [2025-02-19 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:42:06 [end_date_ymd] => 2025-02-19 03:42:06 [RateCDR] => 1 ) [2025-02-19 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:42:06' and `end` < '2025-02-19 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:42:18] Production.INFO: count ==225 [2025-02-19 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:42:06 - End Time 2025-02-19 03:42:06 [2025-02-19 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507716', 'tblTempUsageDetail_20' ) start [2025-02-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507716', 'tblTempUsageDetail_20' ) end [2025-02-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507716', 'tblTempVendorCDR_20' ) start [2025-02-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507716', 'tblTempVendorCDR_20' ) end [2025-02-19 03:42:18] Production.INFO: ProcessCDR(1,14507716,1,1,2) [2025-02-19 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507716', 'tblTempUsageDetail_20' ) start [2025-02-19 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507716', 'tblTempUsageDetail_20' ) end [2025-02-19 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:42:21] Production.INFO: ==1709== Releasing lock... [2025-02-19 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:43:06 [end_date_ymd] => 2025-02-19 03:43:06 [RateCDR] => 1 ) [2025-02-19 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:43:06' and `end` < '2025-02-19 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:43:17] Production.INFO: count ==225 [2025-02-19 03:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:43:06 - End Time 2025-02-19 03:43:06 [2025-02-19 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507721', 'tblTempUsageDetail_20' ) start [2025-02-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507721', 'tblTempUsageDetail_20' ) end [2025-02-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507721', 'tblTempVendorCDR_20' ) start [2025-02-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507721', 'tblTempVendorCDR_20' ) end [2025-02-19 03:43:17] Production.INFO: ProcessCDR(1,14507721,1,1,2) [2025-02-19 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507721', 'tblTempUsageDetail_20' ) start [2025-02-19 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507721', 'tblTempUsageDetail_20' ) end [2025-02-19 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:43:21] Production.INFO: ==1786== Releasing lock... [2025-02-19 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:44:05 [end_date_ymd] => 2025-02-19 03:44:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 00:44:05' and `end` < '2025-02-19 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:44:17] Production.INFO: count ==225 [2025-02-19 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:44:05 - End Time 2025-02-19 03:44:05 [2025-02-19 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507726', 'tblTempUsageDetail_20' ) start [2025-02-19 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507726', 'tblTempUsageDetail_20' ) end [2025-02-19 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507726', 'tblTempVendorCDR_20' ) start [2025-02-19 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507726', 'tblTempVendorCDR_20' ) end [2025-02-19 03:44:17] Production.INFO: ProcessCDR(1,14507726,1,1,2) [2025-02-19 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507726', 'tblTempUsageDetail_20' ) start [2025-02-19 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507726', 'tblTempUsageDetail_20' ) end [2025-02-19 03:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:44:20] Production.INFO: ==1862== Releasing lock... [2025-02-19 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:44:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:45:05 [end_date_ymd] => 2025-02-19 03:45:05 [RateCDR] => 1 ) [2025-02-19 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:45:05' and `end` < '2025-02-19 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:45:17] Production.INFO: count ==225 [2025-02-19 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:45:05 - End Time 2025-02-19 03:45:05 [2025-02-19 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507727', 'tblTempUsageDetail_20' ) start [2025-02-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507727', 'tblTempUsageDetail_20' ) end [2025-02-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507727', 'tblTempVendorCDR_20' ) start [2025-02-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507727', 'tblTempVendorCDR_20' ) end [2025-02-19 03:45:17] Production.INFO: ProcessCDR(1,14507727,1,1,2) [2025-02-19 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507727', 'tblTempUsageDetail_20' ) start [2025-02-19 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507727', 'tblTempUsageDetail_20' ) end [2025-02-19 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:45:21] Production.INFO: ==1938== Releasing lock... [2025-02-19 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:46:05 [end_date_ymd] => 2025-02-19 03:46:05 [RateCDR] => 1 ) [2025-02-19 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:46:05' and `end` < '2025-02-19 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:46:17] Production.INFO: count ==225 [2025-02-19 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:46:05 - End Time 2025-02-19 03:46:05 [2025-02-19 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507736', 'tblTempUsageDetail_20' ) start [2025-02-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507736', 'tblTempUsageDetail_20' ) end [2025-02-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507736', 'tblTempVendorCDR_20' ) start [2025-02-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507736', 'tblTempVendorCDR_20' ) end [2025-02-19 03:46:17] Production.INFO: ProcessCDR(1,14507736,1,1,2) [2025-02-19 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507736', 'tblTempUsageDetail_20' ) start [2025-02-19 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507736', 'tblTempUsageDetail_20' ) end [2025-02-19 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:46:20] Production.INFO: ==2049== Releasing lock... [2025-02-19 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:46:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:47:05 [end_date_ymd] => 2025-02-19 03:47:05 [RateCDR] => 1 ) [2025-02-19 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:47:05' and `end` < '2025-02-19 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:47:17] Production.INFO: count ==225 [2025-02-19 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:47:05 - End Time 2025-02-19 03:47:05 [2025-02-19 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507741', 'tblTempUsageDetail_20' ) start [2025-02-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507741', 'tblTempUsageDetail_20' ) end [2025-02-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507741', 'tblTempVendorCDR_20' ) start [2025-02-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507741', 'tblTempVendorCDR_20' ) end [2025-02-19 03:47:17] Production.INFO: ProcessCDR(1,14507741,1,1,2) [2025-02-19 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507741', 'tblTempUsageDetail_20' ) start [2025-02-19 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507741', 'tblTempUsageDetail_20' ) end [2025-02-19 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:47:21] Production.INFO: ==2123== Releasing lock... [2025-02-19 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:48:05 [end_date_ymd] => 2025-02-19 03:48:05 [RateCDR] => 1 ) [2025-02-19 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:48:05' and `end` < '2025-02-19 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:48:16] Production.INFO: count ==225 [2025-02-19 03:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:48:05 - End Time 2025-02-19 03:48:05 [2025-02-19 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507746', 'tblTempUsageDetail_20' ) start [2025-02-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507746', 'tblTempUsageDetail_20' ) end [2025-02-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507746', 'tblTempVendorCDR_20' ) start [2025-02-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507746', 'tblTempVendorCDR_20' ) end [2025-02-19 03:48:17] Production.INFO: ProcessCDR(1,14507746,1,1,2) [2025-02-19 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507746', 'tblTempUsageDetail_20' ) start [2025-02-19 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507746', 'tblTempUsageDetail_20' ) end [2025-02-19 03:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:48:20] Production.INFO: ==2195== Releasing lock... [2025-02-19 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:48:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:49:05 [end_date_ymd] => 2025-02-19 03:49:05 [RateCDR] => 1 ) [2025-02-19 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:49:05' and `end` < '2025-02-19 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:49:17] Production.INFO: count ==225 [2025-02-19 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:49:05 - End Time 2025-02-19 03:49:05 [2025-02-19 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507751', 'tblTempUsageDetail_20' ) start [2025-02-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507751', 'tblTempUsageDetail_20' ) end [2025-02-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507751', 'tblTempVendorCDR_20' ) start [2025-02-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507751', 'tblTempVendorCDR_20' ) end [2025-02-19 03:49:17] Production.INFO: ProcessCDR(1,14507751,1,1,2) [2025-02-19 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507751', 'tblTempUsageDetail_20' ) start [2025-02-19 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507751', 'tblTempUsageDetail_20' ) end [2025-02-19 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:49:20] Production.INFO: ==2266== Releasing lock... [2025-02-19 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:49:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:50:07 [end_date_ymd] => 2025-02-19 03:50:07 [RateCDR] => 1 ) [2025-02-19 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:50:07' and `end` < '2025-02-19 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:50:18] Production.INFO: count ==215 [2025-02-19 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-19 00:50:07 - End Time 2025-02-19 03:50:07 [2025-02-19 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507757', 'tblTempUsageDetail_20' ) start [2025-02-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507757', 'tblTempUsageDetail_20' ) end [2025-02-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507757', 'tblTempVendorCDR_20' ) start [2025-02-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507757', 'tblTempVendorCDR_20' ) end [2025-02-19 03:50:19] Production.INFO: ProcessCDR(1,14507757,1,1,2) [2025-02-19 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507757', 'tblTempUsageDetail_20' ) start [2025-02-19 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507757', 'tblTempUsageDetail_20' ) end [2025-02-19 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:50:22] Production.INFO: ==2339== Releasing lock... [2025-02-19 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:51:06 [end_date_ymd] => 2025-02-19 03:51:06 [RateCDR] => 1 ) [2025-02-19 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:51:06' and `end` < '2025-02-19 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:51:17] Production.INFO: count ==211 [2025-02-19 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:51:06 - End Time 2025-02-19 03:51:06 [2025-02-19 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507762', 'tblTempUsageDetail_20' ) start [2025-02-19 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507762', 'tblTempUsageDetail_20' ) end [2025-02-19 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507762', 'tblTempVendorCDR_20' ) start [2025-02-19 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507762', 'tblTempVendorCDR_20' ) end [2025-02-19 03:51:17] Production.INFO: ProcessCDR(1,14507762,1,1,2) [2025-02-19 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507762', 'tblTempUsageDetail_20' ) start [2025-02-19 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507762', 'tblTempUsageDetail_20' ) end [2025-02-19 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:51:21] Production.INFO: ==2412== Releasing lock... [2025-02-19 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:52:06 [end_date_ymd] => 2025-02-19 03:52:06 [RateCDR] => 1 ) [2025-02-19 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:52:06' and `end` < '2025-02-19 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:52:18] Production.INFO: count ==211 [2025-02-19 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:52:06 - End Time 2025-02-19 03:52:06 [2025-02-19 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507767', 'tblTempUsageDetail_20' ) start [2025-02-19 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507767', 'tblTempUsageDetail_20' ) end [2025-02-19 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507767', 'tblTempVendorCDR_20' ) start [2025-02-19 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507767', 'tblTempVendorCDR_20' ) end [2025-02-19 03:52:18] Production.INFO: ProcessCDR(1,14507767,1,1,2) [2025-02-19 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507767', 'tblTempUsageDetail_20' ) start [2025-02-19 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507767', 'tblTempUsageDetail_20' ) end [2025-02-19 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:52:22] Production.INFO: ==2483== Releasing lock... [2025-02-19 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:53:06 [end_date_ymd] => 2025-02-19 03:53:06 [RateCDR] => 1 ) [2025-02-19 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:53:06' and `end` < '2025-02-19 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:53:17] Production.INFO: count ==211 [2025-02-19 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:53:06 - End Time 2025-02-19 03:53:06 [2025-02-19 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507772', 'tblTempUsageDetail_20' ) start [2025-02-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507772', 'tblTempUsageDetail_20' ) end [2025-02-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507772', 'tblTempVendorCDR_20' ) start [2025-02-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507772', 'tblTempVendorCDR_20' ) end [2025-02-19 03:53:17] Production.INFO: ProcessCDR(1,14507772,1,1,2) [2025-02-19 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507772', 'tblTempUsageDetail_20' ) start [2025-02-19 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507772', 'tblTempUsageDetail_20' ) end [2025-02-19 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:53:21] Production.INFO: ==2556== Releasing lock... [2025-02-19 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:54:05 [end_date_ymd] => 2025-02-19 03:54:05 [RateCDR] => 1 ) [2025-02-19 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:54:05' and `end` < '2025-02-19 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:54:16] Production.INFO: count ==211 [2025-02-19 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:54:05 - End Time 2025-02-19 03:54:05 [2025-02-19 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507777', 'tblTempUsageDetail_20' ) start [2025-02-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507777', 'tblTempUsageDetail_20' ) end [2025-02-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507777', 'tblTempVendorCDR_20' ) start [2025-02-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507777', 'tblTempVendorCDR_20' ) end [2025-02-19 03:54:17] Production.INFO: ProcessCDR(1,14507777,1,1,2) [2025-02-19 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507777', 'tblTempUsageDetail_20' ) start [2025-02-19 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507777', 'tblTempUsageDetail_20' ) end [2025-02-19 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:54:20] Production.INFO: ==2627== Releasing lock... [2025-02-19 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:55:05 [end_date_ymd] => 2025-02-19 03:55:05 [RateCDR] => 1 ) [2025-02-19 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:55:05' and `end` < '2025-02-19 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:55:17] Production.INFO: count ==211 [2025-02-19 03:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:55:05 - End Time 2025-02-19 03:55:05 [2025-02-19 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507782', 'tblTempUsageDetail_20' ) start [2025-02-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507782', 'tblTempUsageDetail_20' ) end [2025-02-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507782', 'tblTempVendorCDR_20' ) start [2025-02-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507782', 'tblTempVendorCDR_20' ) end [2025-02-19 03:55:17] Production.INFO: ProcessCDR(1,14507782,1,1,2) [2025-02-19 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507782', 'tblTempUsageDetail_20' ) start [2025-02-19 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507782', 'tblTempUsageDetail_20' ) end [2025-02-19 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:55:20] Production.INFO: ==2700== Releasing lock... [2025-02-19 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:55:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:56:06 [end_date_ymd] => 2025-02-19 03:56:06 [RateCDR] => 1 ) [2025-02-19 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:56:06' and `end` < '2025-02-19 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:56:18] Production.INFO: count ==200 [2025-02-19 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-19 00:56:06 - End Time 2025-02-19 03:56:06 [2025-02-19 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507787', 'tblTempUsageDetail_20' ) start [2025-02-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507787', 'tblTempUsageDetail_20' ) end [2025-02-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507787', 'tblTempVendorCDR_20' ) start [2025-02-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507787', 'tblTempVendorCDR_20' ) end [2025-02-19 03:56:18] Production.INFO: ProcessCDR(1,14507787,1,1,2) [2025-02-19 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507787', 'tblTempUsageDetail_20' ) start [2025-02-19 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507787', 'tblTempUsageDetail_20' ) end [2025-02-19 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:56:22] Production.INFO: ==2775== Releasing lock... [2025-02-19 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:57:05 [end_date_ymd] => 2025-02-19 03:57:05 [RateCDR] => 1 ) [2025-02-19 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:57:05' and `end` < '2025-02-19 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:57:17] Production.INFO: count ==200 [2025-02-19 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:57:05 - End Time 2025-02-19 03:57:05 [2025-02-19 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507792', 'tblTempUsageDetail_20' ) start [2025-02-19 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507792', 'tblTempUsageDetail_20' ) end [2025-02-19 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507792', 'tblTempVendorCDR_20' ) start [2025-02-19 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507792', 'tblTempVendorCDR_20' ) end [2025-02-19 03:57:17] Production.INFO: ProcessCDR(1,14507792,1,1,2) [2025-02-19 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507792', 'tblTempUsageDetail_20' ) start [2025-02-19 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507792', 'tblTempUsageDetail_20' ) end [2025-02-19 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:57:21] Production.INFO: ==2846== Releasing lock... [2025-02-19 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:58:05 [end_date_ymd] => 2025-02-19 03:58:05 [RateCDR] => 1 ) [2025-02-19 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:58:05' and `end` < '2025-02-19 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:58:17] Production.INFO: count ==199 [2025-02-19 03:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:58:05 - End Time 2025-02-19 03:58:05 [2025-02-19 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507797', 'tblTempUsageDetail_20' ) start [2025-02-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507797', 'tblTempUsageDetail_20' ) end [2025-02-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507797', 'tblTempVendorCDR_20' ) start [2025-02-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507797', 'tblTempVendorCDR_20' ) end [2025-02-19 03:58:17] Production.INFO: ProcessCDR(1,14507797,1,1,2) [2025-02-19 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507797', 'tblTempUsageDetail_20' ) start [2025-02-19 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507797', 'tblTempUsageDetail_20' ) end [2025-02-19 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:58:20] Production.INFO: ==2922== Releasing lock... [2025-02-19 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:58:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 00:59:05 [end_date_ymd] => 2025-02-19 03:59:05 [RateCDR] => 1 ) [2025-02-19 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 00:59:05' and `end` < '2025-02-19 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 03:59:17] Production.INFO: count ==199 [2025-02-19 03:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 00:59:05 - End Time 2025-02-19 03:59:05 [2025-02-19 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507802', 'tblTempUsageDetail_20' ) start [2025-02-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507802', 'tblTempUsageDetail_20' ) end [2025-02-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507802', 'tblTempVendorCDR_20' ) start [2025-02-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507802', 'tblTempVendorCDR_20' ) end [2025-02-19 03:59:17] Production.INFO: ProcessCDR(1,14507802,1,1,2) [2025-02-19 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507802', 'tblTempUsageDetail_20' ) start [2025-02-19 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507802', 'tblTempUsageDetail_20' ) end [2025-02-19 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 03:59:21] Production.INFO: ==2997== Releasing lock... [2025-02-19 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 03:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:00:07 [end_date_ymd] => 2025-02-19 04:00:07 [RateCDR] => 1 ) [2025-02-19 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:00:07' and `end` < '2025-02-19 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:00:18] Production.INFO: count ==195 [2025-02-19 04:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:00:07 - End Time 2025-02-19 04:00:07 [2025-02-19 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507807', 'tblTempUsageDetail_20' ) start [2025-02-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507807', 'tblTempUsageDetail_20' ) end [2025-02-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507807', 'tblTempVendorCDR_20' ) start [2025-02-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507807', 'tblTempVendorCDR_20' ) end [2025-02-19 04:00:19] Production.INFO: ProcessCDR(1,14507807,1,1,2) [2025-02-19 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507807', 'tblTempUsageDetail_20' ) start [2025-02-19 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507807', 'tblTempUsageDetail_20' ) end [2025-02-19 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:00:24] Production.INFO: ==3078== Releasing lock... [2025-02-19 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:01:06 [end_date_ymd] => 2025-02-19 04:01:06 [RateCDR] => 1 ) [2025-02-19 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:01:06' and `end` < '2025-02-19 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:01:17] Production.INFO: count ==185 [2025-02-19 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:01:06 - End Time 2025-02-19 04:01:06 [2025-02-19 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507814', 'tblTempUsageDetail_20' ) start [2025-02-19 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507814', 'tblTempUsageDetail_20' ) end [2025-02-19 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507814', 'tblTempVendorCDR_20' ) start [2025-02-19 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507814', 'tblTempVendorCDR_20' ) end [2025-02-19 04:01:17] Production.INFO: ProcessCDR(1,14507814,1,1,2) [2025-02-19 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507814', 'tblTempUsageDetail_20' ) start [2025-02-19 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507814', 'tblTempUsageDetail_20' ) end [2025-02-19 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:01:21] Production.INFO: ==3165== Releasing lock... [2025-02-19 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:02:05 [end_date_ymd] => 2025-02-19 04:02:05 [RateCDR] => 1 ) [2025-02-19 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:02:05' and `end` < '2025-02-19 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:02:17] Production.INFO: count ==185 [2025-02-19 04:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:02:05 - End Time 2025-02-19 04:02:05 [2025-02-19 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507819', 'tblTempUsageDetail_20' ) start [2025-02-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507819', 'tblTempUsageDetail_20' ) end [2025-02-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507819', 'tblTempVendorCDR_20' ) start [2025-02-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507819', 'tblTempVendorCDR_20' ) end [2025-02-19 04:02:17] Production.INFO: ProcessCDR(1,14507819,1,1,2) [2025-02-19 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507819', 'tblTempUsageDetail_20' ) start [2025-02-19 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507819', 'tblTempUsageDetail_20' ) end [2025-02-19 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:02:20] Production.INFO: ==3282== Releasing lock... [2025-02-19 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:02:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:03:05 [end_date_ymd] => 2025-02-19 04:03:05 [RateCDR] => 1 ) [2025-02-19 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:03:05' and `end` < '2025-02-19 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:03:17] Production.INFO: count ==185 [2025-02-19 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:03:05 - End Time 2025-02-19 04:03:05 [2025-02-19 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507824', 'tblTempUsageDetail_20' ) start [2025-02-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507824', 'tblTempUsageDetail_20' ) end [2025-02-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507824', 'tblTempVendorCDR_20' ) start [2025-02-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507824', 'tblTempVendorCDR_20' ) end [2025-02-19 04:03:17] Production.INFO: ProcessCDR(1,14507824,1,1,2) [2025-02-19 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507824', 'tblTempUsageDetail_20' ) start [2025-02-19 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507824', 'tblTempUsageDetail_20' ) end [2025-02-19 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:03:20] Production.INFO: ==3352== Releasing lock... [2025-02-19 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:04:05 [end_date_ymd] => 2025-02-19 04:04:05 [RateCDR] => 1 ) [2025-02-19 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:04:05' and `end` < '2025-02-19 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:04:17] Production.INFO: count ==185 [2025-02-19 04:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:04:05 - End Time 2025-02-19 04:04:05 [2025-02-19 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507829', 'tblTempUsageDetail_20' ) start [2025-02-19 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507829', 'tblTempUsageDetail_20' ) end [2025-02-19 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507829', 'tblTempVendorCDR_20' ) start [2025-02-19 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507829', 'tblTempVendorCDR_20' ) end [2025-02-19 04:04:17] Production.INFO: ProcessCDR(1,14507829,1,1,2) [2025-02-19 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507829', 'tblTempUsageDetail_20' ) start [2025-02-19 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507829', 'tblTempUsageDetail_20' ) end [2025-02-19 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:04:20] Production.INFO: ==3424== Releasing lock... [2025-02-19 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:04:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:05:06 [end_date_ymd] => 2025-02-19 04:05:06 [RateCDR] => 1 ) [2025-02-19 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:05:06' and `end` < '2025-02-19 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:05:17] Production.INFO: count ==185 [2025-02-19 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:05:06 - End Time 2025-02-19 04:05:06 [2025-02-19 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507834', 'tblTempUsageDetail_20' ) start [2025-02-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507834', 'tblTempUsageDetail_20' ) end [2025-02-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507834', 'tblTempVendorCDR_20' ) start [2025-02-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507834', 'tblTempVendorCDR_20' ) end [2025-02-19 04:05:17] Production.INFO: ProcessCDR(1,14507834,1,1,2) [2025-02-19 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507834', 'tblTempUsageDetail_20' ) start [2025-02-19 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507834', 'tblTempUsageDetail_20' ) end [2025-02-19 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:05:21] Production.INFO: ==3497== Releasing lock... [2025-02-19 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:06:05 [end_date_ymd] => 2025-02-19 04:06:05 [RateCDR] => 1 ) [2025-02-19 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:06:05' and `end` < '2025-02-19 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:06:16] Production.INFO: count ==185 [2025-02-19 04:06:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:06:05 - End Time 2025-02-19 04:06:05 [2025-02-19 04:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507839', 'tblTempUsageDetail_20' ) start [2025-02-19 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507839', 'tblTempUsageDetail_20' ) end [2025-02-19 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507839', 'tblTempVendorCDR_20' ) start [2025-02-19 04:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507839', 'tblTempVendorCDR_20' ) end [2025-02-19 04:06:16] Production.INFO: ProcessCDR(1,14507839,1,1,2) [2025-02-19 04:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507839', 'tblTempUsageDetail_20' ) start [2025-02-19 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507839', 'tblTempUsageDetail_20' ) end [2025-02-19 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:06:20] Production.INFO: ==3570== Releasing lock... [2025-02-19 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:07:05 [end_date_ymd] => 2025-02-19 04:07:05 [RateCDR] => 1 ) [2025-02-19 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:07:05' and `end` < '2025-02-19 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:07:17] Production.INFO: count ==185 [2025-02-19 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:07:05 - End Time 2025-02-19 04:07:05 [2025-02-19 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507844', 'tblTempUsageDetail_20' ) start [2025-02-19 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507844', 'tblTempUsageDetail_20' ) end [2025-02-19 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507844', 'tblTempVendorCDR_20' ) start [2025-02-19 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507844', 'tblTempVendorCDR_20' ) end [2025-02-19 04:07:17] Production.INFO: ProcessCDR(1,14507844,1,1,2) [2025-02-19 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507844', 'tblTempUsageDetail_20' ) start [2025-02-19 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507844', 'tblTempUsageDetail_20' ) end [2025-02-19 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:07:20] Production.INFO: ==3643== Releasing lock... [2025-02-19 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:07:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:08:04 [end_date_ymd] => 2025-02-19 04:08:04 [RateCDR] => 1 ) [2025-02-19 04:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:08:04' and `end` < '2025-02-19 04:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:08:16] Production.INFO: count ==185 [2025-02-19 04:08:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:08:04 - End Time 2025-02-19 04:08:04 [2025-02-19 04:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507849', 'tblTempUsageDetail_20' ) start [2025-02-19 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507849', 'tblTempUsageDetail_20' ) end [2025-02-19 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507849', 'tblTempVendorCDR_20' ) start [2025-02-19 04:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507849', 'tblTempVendorCDR_20' ) end [2025-02-19 04:08:16] Production.INFO: ProcessCDR(1,14507849,1,1,2) [2025-02-19 04:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507849', 'tblTempUsageDetail_20' ) start [2025-02-19 04:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507849', 'tblTempUsageDetail_20' ) end [2025-02-19 04:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:08:19] Production.INFO: ==3716== Releasing lock... [2025-02-19 04:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:08:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:09:05 [end_date_ymd] => 2025-02-19 04:09:05 [RateCDR] => 1 ) [2025-02-19 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:09:05' and `end` < '2025-02-19 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:09:17] Production.INFO: count ==185 [2025-02-19 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:09:05 - End Time 2025-02-19 04:09:05 [2025-02-19 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507854', 'tblTempUsageDetail_20' ) start [2025-02-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507854', 'tblTempUsageDetail_20' ) end [2025-02-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507854', 'tblTempVendorCDR_20' ) start [2025-02-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507854', 'tblTempVendorCDR_20' ) end [2025-02-19 04:09:17] Production.INFO: ProcessCDR(1,14507854,1,1,2) [2025-02-19 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507854', 'tblTempUsageDetail_20' ) start [2025-02-19 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507854', 'tblTempUsageDetail_20' ) end [2025-02-19 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:09:20] Production.INFO: ==3787== Releasing lock... [2025-02-19 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:10:06 [end_date_ymd] => 2025-02-19 04:10:06 [RateCDR] => 1 ) [2025-02-19 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:10:06' and `end` < '2025-02-19 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:10:18] Production.INFO: count ==175 [2025-02-19 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:10:06 - End Time 2025-02-19 04:10:06 [2025-02-19 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507859', 'tblTempUsageDetail_20' ) start [2025-02-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507859', 'tblTempUsageDetail_20' ) end [2025-02-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507859', 'tblTempVendorCDR_20' ) start [2025-02-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507859', 'tblTempVendorCDR_20' ) end [2025-02-19 04:10:18] Production.INFO: ProcessCDR(1,14507859,1,1,2) [2025-02-19 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507859', 'tblTempUsageDetail_20' ) start [2025-02-19 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507859', 'tblTempUsageDetail_20' ) end [2025-02-19 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:10:21] Production.INFO: ==3862== Releasing lock... [2025-02-19 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:11:06 [end_date_ymd] => 2025-02-19 04:11:06 [RateCDR] => 1 ) [2025-02-19 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:11:06' and `end` < '2025-02-19 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:11:17] Production.INFO: count ==175 [2025-02-19 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:11:06 - End Time 2025-02-19 04:11:06 [2025-02-19 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507865', 'tblTempUsageDetail_20' ) start [2025-02-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507865', 'tblTempUsageDetail_20' ) end [2025-02-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507865', 'tblTempVendorCDR_20' ) start [2025-02-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507865', 'tblTempVendorCDR_20' ) end [2025-02-19 04:11:17] Production.INFO: ProcessCDR(1,14507865,1,1,2) [2025-02-19 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507865', 'tblTempUsageDetail_20' ) start [2025-02-19 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507865', 'tblTempUsageDetail_20' ) end [2025-02-19 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:11:21] Production.INFO: ==3939== Releasing lock... [2025-02-19 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:12:05 [end_date_ymd] => 2025-02-19 04:12:05 [RateCDR] => 1 ) [2025-02-19 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:12:05' and `end` < '2025-02-19 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:12:17] Production.INFO: count ==175 [2025-02-19 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:12:05 - End Time 2025-02-19 04:12:05 [2025-02-19 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507870', 'tblTempUsageDetail_20' ) start [2025-02-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507870', 'tblTempUsageDetail_20' ) end [2025-02-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507870', 'tblTempVendorCDR_20' ) start [2025-02-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507870', 'tblTempVendorCDR_20' ) end [2025-02-19 04:12:17] Production.INFO: ProcessCDR(1,14507870,1,1,2) [2025-02-19 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507870', 'tblTempUsageDetail_20' ) start [2025-02-19 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507870', 'tblTempUsageDetail_20' ) end [2025-02-19 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:12:20] Production.INFO: ==4016== Releasing lock... [2025-02-19 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:12:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:13:05 [end_date_ymd] => 2025-02-19 04:13:05 [RateCDR] => 1 ) [2025-02-19 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:13:05' and `end` < '2025-02-19 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:13:17] Production.INFO: count ==175 [2025-02-19 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:13:05 - End Time 2025-02-19 04:13:05 [2025-02-19 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507875', 'tblTempUsageDetail_20' ) start [2025-02-19 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507875', 'tblTempUsageDetail_20' ) end [2025-02-19 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507875', 'tblTempVendorCDR_20' ) start [2025-02-19 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507875', 'tblTempVendorCDR_20' ) end [2025-02-19 04:13:17] Production.INFO: ProcessCDR(1,14507875,1,1,2) [2025-02-19 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507875', 'tblTempUsageDetail_20' ) start [2025-02-19 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507875', 'tblTempUsageDetail_20' ) end [2025-02-19 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:13:20] Production.INFO: ==4093== Releasing lock... [2025-02-19 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:14:05 [end_date_ymd] => 2025-02-19 04:14:05 [RateCDR] => 1 ) [2025-02-19 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:14:05' and `end` < '2025-02-19 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:14:16] Production.INFO: count ==175 [2025-02-19 04:14:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:14:05 - End Time 2025-02-19 04:14:05 [2025-02-19 04:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507880', 'tblTempUsageDetail_20' ) start [2025-02-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507880', 'tblTempUsageDetail_20' ) end [2025-02-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507880', 'tblTempVendorCDR_20' ) start [2025-02-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507880', 'tblTempVendorCDR_20' ) end [2025-02-19 04:14:16] Production.INFO: ProcessCDR(1,14507880,1,1,2) [2025-02-19 04:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507880', 'tblTempUsageDetail_20' ) start [2025-02-19 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507880', 'tblTempUsageDetail_20' ) end [2025-02-19 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:14:20] Production.INFO: ==4166== Releasing lock... [2025-02-19 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:14:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:15:05 [end_date_ymd] => 2025-02-19 04:15:05 [RateCDR] => 1 ) [2025-02-19 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:15:05' and `end` < '2025-02-19 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:15:17] Production.INFO: count ==175 [2025-02-19 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:15:05 - End Time 2025-02-19 04:15:05 [2025-02-19 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507885', 'tblTempUsageDetail_20' ) start [2025-02-19 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507885', 'tblTempUsageDetail_20' ) end [2025-02-19 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507885', 'tblTempVendorCDR_20' ) start [2025-02-19 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507885', 'tblTempVendorCDR_20' ) end [2025-02-19 04:15:17] Production.INFO: ProcessCDR(1,14507885,1,1,2) [2025-02-19 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507885', 'tblTempUsageDetail_20' ) start [2025-02-19 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507885', 'tblTempUsageDetail_20' ) end [2025-02-19 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:15:20] Production.INFO: ==4241== Releasing lock... [2025-02-19 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:16:05 [end_date_ymd] => 2025-02-19 04:16:05 [RateCDR] => 1 ) [2025-02-19 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:16:05' and `end` < '2025-02-19 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:16:17] Production.INFO: count ==175 [2025-02-19 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:16:05 - End Time 2025-02-19 04:16:05 [2025-02-19 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507890', 'tblTempUsageDetail_20' ) start [2025-02-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507890', 'tblTempUsageDetail_20' ) end [2025-02-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507890', 'tblTempVendorCDR_20' ) start [2025-02-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507890', 'tblTempVendorCDR_20' ) end [2025-02-19 04:16:17] Production.INFO: ProcessCDR(1,14507890,1,1,2) [2025-02-19 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507890', 'tblTempUsageDetail_20' ) start [2025-02-19 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507890', 'tblTempUsageDetail_20' ) end [2025-02-19 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:16:20] Production.INFO: ==4315== Releasing lock... [2025-02-19 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:17:05 [end_date_ymd] => 2025-02-19 04:17:05 [RateCDR] => 1 ) [2025-02-19 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:17:05' and `end` < '2025-02-19 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:17:17] Production.INFO: count ==175 [2025-02-19 04:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:17:05 - End Time 2025-02-19 04:17:05 [2025-02-19 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507895', 'tblTempUsageDetail_20' ) start [2025-02-19 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507895', 'tblTempUsageDetail_20' ) end [2025-02-19 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507895', 'tblTempVendorCDR_20' ) start [2025-02-19 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507895', 'tblTempVendorCDR_20' ) end [2025-02-19 04:17:17] Production.INFO: ProcessCDR(1,14507895,1,1,2) [2025-02-19 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507895', 'tblTempUsageDetail_20' ) start [2025-02-19 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507895', 'tblTempUsageDetail_20' ) end [2025-02-19 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:17:20] Production.INFO: ==4429== Releasing lock... [2025-02-19 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:17:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:18:06 [end_date_ymd] => 2025-02-19 04:18:06 [RateCDR] => 1 ) [2025-02-19 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:18:06' and `end` < '2025-02-19 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:18:17] Production.INFO: count ==175 [2025-02-19 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:18:06 - End Time 2025-02-19 04:18:06 [2025-02-19 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507900', 'tblTempUsageDetail_20' ) start [2025-02-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507900', 'tblTempUsageDetail_20' ) end [2025-02-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507900', 'tblTempVendorCDR_20' ) start [2025-02-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507900', 'tblTempVendorCDR_20' ) end [2025-02-19 04:18:17] Production.INFO: ProcessCDR(1,14507900,1,1,2) [2025-02-19 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507900', 'tblTempUsageDetail_20' ) start [2025-02-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507900', 'tblTempUsageDetail_20' ) end [2025-02-19 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:18:21] Production.INFO: ==4513== Releasing lock... [2025-02-19 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:19:05 [end_date_ymd] => 2025-02-19 04:19:05 [RateCDR] => 1 ) [2025-02-19 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:19:05' and `end` < '2025-02-19 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:19:17] Production.INFO: count ==174 [2025-02-19 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:19:05 - End Time 2025-02-19 04:19:05 [2025-02-19 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507905', 'tblTempUsageDetail_20' ) start [2025-02-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507905', 'tblTempUsageDetail_20' ) end [2025-02-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507905', 'tblTempVendorCDR_20' ) start [2025-02-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507905', 'tblTempVendorCDR_20' ) end [2025-02-19 04:19:17] Production.INFO: ProcessCDR(1,14507905,1,1,2) [2025-02-19 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507905', 'tblTempUsageDetail_20' ) start [2025-02-19 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507905', 'tblTempUsageDetail_20' ) end [2025-02-19 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:19:20] Production.INFO: ==4589== Releasing lock... [2025-02-19 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:20:07 [end_date_ymd] => 2025-02-19 04:20:07 [RateCDR] => 1 ) [2025-02-19 04:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:20:07' and `end` < '2025-02-19 04:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:20:18] Production.INFO: count ==166 [2025-02-19 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:20:07 - End Time 2025-02-19 04:20:07 [2025-02-19 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507911', 'tblTempUsageDetail_20' ) start [2025-02-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507911', 'tblTempUsageDetail_20' ) end [2025-02-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507911', 'tblTempVendorCDR_20' ) start [2025-02-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507911', 'tblTempVendorCDR_20' ) end [2025-02-19 04:20:18] Production.INFO: ProcessCDR(1,14507911,1,1,2) [2025-02-19 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507911', 'tblTempUsageDetail_20' ) start [2025-02-19 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507911', 'tblTempUsageDetail_20' ) end [2025-02-19 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:20:22] Production.INFO: ==4665== Releasing lock... [2025-02-19 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:21:05 [end_date_ymd] => 2025-02-19 04:21:05 [RateCDR] => 1 ) [2025-02-19 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:21:05' and `end` < '2025-02-19 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:21:17] Production.INFO: count ==162 [2025-02-19 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:21:05 - End Time 2025-02-19 04:21:05 [2025-02-19 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507916', 'tblTempUsageDetail_20' ) start [2025-02-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507916', 'tblTempUsageDetail_20' ) end [2025-02-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507916', 'tblTempVendorCDR_20' ) start [2025-02-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507916', 'tblTempVendorCDR_20' ) end [2025-02-19 04:21:17] Production.INFO: ProcessCDR(1,14507916,1,1,2) [2025-02-19 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507916', 'tblTempUsageDetail_20' ) start [2025-02-19 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507916', 'tblTempUsageDetail_20' ) end [2025-02-19 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:21:20] Production.INFO: ==4744== Releasing lock... [2025-02-19 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:22:05 [end_date_ymd] => 2025-02-19 04:22:05 [RateCDR] => 1 ) [2025-02-19 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:22:05' and `end` < '2025-02-19 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:22:17] Production.INFO: count ==162 [2025-02-19 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:22:05 - End Time 2025-02-19 04:22:05 [2025-02-19 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507921', 'tblTempUsageDetail_20' ) start [2025-02-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507921', 'tblTempUsageDetail_20' ) end [2025-02-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507921', 'tblTempVendorCDR_20' ) start [2025-02-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507921', 'tblTempVendorCDR_20' ) end [2025-02-19 04:22:17] Production.INFO: ProcessCDR(1,14507921,1,1,2) [2025-02-19 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507921', 'tblTempUsageDetail_20' ) start [2025-02-19 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507921', 'tblTempUsageDetail_20' ) end [2025-02-19 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:22:21] Production.INFO: ==4816== Releasing lock... [2025-02-19 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:23:05 [end_date_ymd] => 2025-02-19 04:23:05 [RateCDR] => 1 ) [2025-02-19 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:23:05' and `end` < '2025-02-19 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:23:16] Production.INFO: count ==162 [2025-02-19 04:23:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:23:05 - End Time 2025-02-19 04:23:05 [2025-02-19 04:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507926', 'tblTempUsageDetail_20' ) start [2025-02-19 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507926', 'tblTempUsageDetail_20' ) end [2025-02-19 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507926', 'tblTempVendorCDR_20' ) start [2025-02-19 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507926', 'tblTempVendorCDR_20' ) end [2025-02-19 04:23:16] Production.INFO: ProcessCDR(1,14507926,1,1,2) [2025-02-19 04:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507926', 'tblTempUsageDetail_20' ) start [2025-02-19 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507926', 'tblTempUsageDetail_20' ) end [2025-02-19 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:23:20] Production.INFO: ==4894== Releasing lock... [2025-02-19 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:24:06 [end_date_ymd] => 2025-02-19 04:24:06 [RateCDR] => 1 ) [2025-02-19 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:24:06' and `end` < '2025-02-19 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:24:17] Production.INFO: count ==162 [2025-02-19 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:24:06 - End Time 2025-02-19 04:24:06 [2025-02-19 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507931', 'tblTempUsageDetail_20' ) start [2025-02-19 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507931', 'tblTempUsageDetail_20' ) end [2025-02-19 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507931', 'tblTempVendorCDR_20' ) start [2025-02-19 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507931', 'tblTempVendorCDR_20' ) end [2025-02-19 04:24:18] Production.INFO: ProcessCDR(1,14507931,1,1,2) [2025-02-19 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507931', 'tblTempUsageDetail_20' ) start [2025-02-19 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507931', 'tblTempUsageDetail_20' ) end [2025-02-19 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:24:21] Production.INFO: ==4966== Releasing lock... [2025-02-19 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:25:05 [end_date_ymd] => 2025-02-19 04:25:05 [RateCDR] => 1 ) [2025-02-19 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:25:05' and `end` < '2025-02-19 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:25:16] Production.INFO: count ==162 [2025-02-19 04:25:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:25:05 - End Time 2025-02-19 04:25:05 [2025-02-19 04:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507936', 'tblTempUsageDetail_20' ) start [2025-02-19 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507936', 'tblTempUsageDetail_20' ) end [2025-02-19 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507936', 'tblTempVendorCDR_20' ) start [2025-02-19 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507936', 'tblTempVendorCDR_20' ) end [2025-02-19 04:25:16] Production.INFO: ProcessCDR(1,14507936,1,1,2) [2025-02-19 04:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507936', 'tblTempUsageDetail_20' ) start [2025-02-19 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507936', 'tblTempUsageDetail_20' ) end [2025-02-19 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:25:20] Production.INFO: ==5040== Releasing lock... [2025-02-19 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:26:06 [end_date_ymd] => 2025-02-19 04:26:06 [RateCDR] => 1 ) [2025-02-19 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:26:06' and `end` < '2025-02-19 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:26:17] Production.INFO: count ==160 [2025-02-19 04:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:26:06 - End Time 2025-02-19 04:26:06 [2025-02-19 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507941', 'tblTempUsageDetail_20' ) start [2025-02-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507941', 'tblTempUsageDetail_20' ) end [2025-02-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507941', 'tblTempVendorCDR_20' ) start [2025-02-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507941', 'tblTempVendorCDR_20' ) end [2025-02-19 04:26:17] Production.INFO: ProcessCDR(1,14507941,1,1,2) [2025-02-19 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507941', 'tblTempUsageDetail_20' ) start [2025-02-19 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507941', 'tblTempUsageDetail_20' ) end [2025-02-19 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:26:21] Production.INFO: ==5118== Releasing lock... [2025-02-19 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:27:04 [end_date_ymd] => 2025-02-19 04:27:04 [RateCDR] => 1 ) [2025-02-19 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-02-19 01:27:04' and `end` < '2025-02-19 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-02-19 04:27:16] Production.INFO: count ==158 [2025-02-19 04:27:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:27:04 - End Time 2025-02-19 04:27:04 [2025-02-19 04:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507946', 'tblTempUsageDetail_20' ) start [2025-02-19 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507946', 'tblTempUsageDetail_20' ) end [2025-02-19 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507946', 'tblTempVendorCDR_20' ) start [2025-02-19 04:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507946', 'tblTempVendorCDR_20' ) end [2025-02-19 04:27:16] Production.INFO: ProcessCDR(1,14507946,1,1,2) [2025-02-19 04:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507946', 'tblTempUsageDetail_20' ) start [2025-02-19 04:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507946', 'tblTempUsageDetail_20' ) end [2025-02-19 04:27:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:27:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:27:19] Production.INFO: ==5190== Releasing lock... [2025-02-19 04:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:27:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:28:05 [end_date_ymd] => 2025-02-19 04:28:05 [RateCDR] => 1 ) [2025-02-19 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:28:05' and `end` < '2025-02-19 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:28:17] Production.INFO: count ==158 [2025-02-19 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:28:05 - End Time 2025-02-19 04:28:05 [2025-02-19 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507951', 'tblTempUsageDetail_20' ) start [2025-02-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507951', 'tblTempUsageDetail_20' ) end [2025-02-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507951', 'tblTempVendorCDR_20' ) start [2025-02-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507951', 'tblTempVendorCDR_20' ) end [2025-02-19 04:28:17] Production.INFO: ProcessCDR(1,14507951,1,1,2) [2025-02-19 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507951', 'tblTempUsageDetail_20' ) start [2025-02-19 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507951', 'tblTempUsageDetail_20' ) end [2025-02-19 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:28:20] Production.INFO: ==5261== Releasing lock... [2025-02-19 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:29:05 [end_date_ymd] => 2025-02-19 04:29:05 [RateCDR] => 1 ) [2025-02-19 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:29:05' and `end` < '2025-02-19 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:29:17] Production.INFO: count ==158 [2025-02-19 04:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:29:05 - End Time 2025-02-19 04:29:05 [2025-02-19 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507956', 'tblTempUsageDetail_20' ) start [2025-02-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507956', 'tblTempUsageDetail_20' ) end [2025-02-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507956', 'tblTempVendorCDR_20' ) start [2025-02-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507956', 'tblTempVendorCDR_20' ) end [2025-02-19 04:29:17] Production.INFO: ProcessCDR(1,14507956,1,1,2) [2025-02-19 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507956', 'tblTempUsageDetail_20' ) start [2025-02-19 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507956', 'tblTempUsageDetail_20' ) end [2025-02-19 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:29:20] Production.INFO: ==5330== Releasing lock... [2025-02-19 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:30:06 [end_date_ymd] => 2025-02-19 04:30:06 [RateCDR] => 1 ) [2025-02-19 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:30:06' and `end` < '2025-02-19 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:30:18] Production.INFO: count ==149 [2025-02-19 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:30:06 - End Time 2025-02-19 04:30:06 [2025-02-19 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507961', 'tblTempUsageDetail_20' ) start [2025-02-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507961', 'tblTempUsageDetail_20' ) end [2025-02-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507961', 'tblTempVendorCDR_20' ) start [2025-02-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507961', 'tblTempVendorCDR_20' ) end [2025-02-19 04:30:18] Production.INFO: ProcessCDR(1,14507961,1,1,2) [2025-02-19 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507961', 'tblTempUsageDetail_20' ) start [2025-02-19 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507961', 'tblTempUsageDetail_20' ) end [2025-02-19 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:30:21] Production.INFO: ==5404== Releasing lock... [2025-02-19 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:31:05 [end_date_ymd] => 2025-02-19 04:31:05 [RateCDR] => 1 ) [2025-02-19 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:31:05' and `end` < '2025-02-19 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:31:17] Production.INFO: count ==141 [2025-02-19 04:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:31:05 - End Time 2025-02-19 04:31:05 [2025-02-19 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507968', 'tblTempUsageDetail_20' ) start [2025-02-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507968', 'tblTempUsageDetail_20' ) end [2025-02-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507968', 'tblTempVendorCDR_20' ) start [2025-02-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507968', 'tblTempVendorCDR_20' ) end [2025-02-19 04:31:17] Production.INFO: ProcessCDR(1,14507968,1,1,2) [2025-02-19 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507968', 'tblTempUsageDetail_20' ) start [2025-02-19 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507968', 'tblTempUsageDetail_20' ) end [2025-02-19 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:31:21] Production.INFO: ==5479== Releasing lock... [2025-02-19 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:32:06 [end_date_ymd] => 2025-02-19 04:32:06 [RateCDR] => 1 ) [2025-02-19 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:32:06' and `end` < '2025-02-19 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:32:17] Production.INFO: count ==141 [2025-02-19 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:32:06 - End Time 2025-02-19 04:32:06 [2025-02-19 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507973', 'tblTempUsageDetail_20' ) start [2025-02-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507973', 'tblTempUsageDetail_20' ) end [2025-02-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507973', 'tblTempVendorCDR_20' ) start [2025-02-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507973', 'tblTempVendorCDR_20' ) end [2025-02-19 04:32:17] Production.INFO: ProcessCDR(1,14507973,1,1,2) [2025-02-19 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507973', 'tblTempUsageDetail_20' ) start [2025-02-19 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507973', 'tblTempUsageDetail_20' ) end [2025-02-19 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:32:21] Production.INFO: ==5646== Releasing lock... [2025-02-19 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:33:05 [end_date_ymd] => 2025-02-19 04:33:05 [RateCDR] => 1 ) [2025-02-19 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:33:05' and `end` < '2025-02-19 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:33:16] Production.INFO: count ==139 [2025-02-19 04:33:16] Production.ERROR: pbx CDR StartTime 2025-02-19 01:33:05 - End Time 2025-02-19 04:33:05 [2025-02-19 04:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507978', 'tblTempUsageDetail_20' ) start [2025-02-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507978', 'tblTempUsageDetail_20' ) end [2025-02-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507978', 'tblTempVendorCDR_20' ) start [2025-02-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507978', 'tblTempVendorCDR_20' ) end [2025-02-19 04:33:16] Production.INFO: ProcessCDR(1,14507978,1,1,2) [2025-02-19 04:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507978', 'tblTempUsageDetail_20' ) start [2025-02-19 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507978', 'tblTempUsageDetail_20' ) end [2025-02-19 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:33:21] Production.INFO: ==5780== Releasing lock... [2025-02-19 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:34:05 [end_date_ymd] => 2025-02-19 04:34:05 [RateCDR] => 1 ) [2025-02-19 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:34:05' and `end` < '2025-02-19 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:34:17] Production.INFO: count ==131 [2025-02-19 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:34:05 - End Time 2025-02-19 04:34:05 [2025-02-19 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507983', 'tblTempUsageDetail_20' ) start [2025-02-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507983', 'tblTempUsageDetail_20' ) end [2025-02-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507983', 'tblTempVendorCDR_20' ) start [2025-02-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507983', 'tblTempVendorCDR_20' ) end [2025-02-19 04:34:17] Production.INFO: ProcessCDR(1,14507983,1,1,2) [2025-02-19 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507983', 'tblTempUsageDetail_20' ) start [2025-02-19 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507983', 'tblTempUsageDetail_20' ) end [2025-02-19 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:34:20] Production.INFO: ==5850== Releasing lock... [2025-02-19 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:35:05 [end_date_ymd] => 2025-02-19 04:35:05 [RateCDR] => 1 ) [2025-02-19 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:35:05' and `end` < '2025-02-19 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:35:17] Production.INFO: count ==128 [2025-02-19 04:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:35:05 - End Time 2025-02-19 04:35:05 [2025-02-19 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507988', 'tblTempUsageDetail_20' ) start [2025-02-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507988', 'tblTempUsageDetail_20' ) end [2025-02-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507988', 'tblTempVendorCDR_20' ) start [2025-02-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507988', 'tblTempVendorCDR_20' ) end [2025-02-19 04:35:17] Production.INFO: ProcessCDR(1,14507988,1,1,2) [2025-02-19 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507988', 'tblTempUsageDetail_20' ) start [2025-02-19 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507988', 'tblTempUsageDetail_20' ) end [2025-02-19 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:35:20] Production.INFO: ==5921== Releasing lock... [2025-02-19 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:35:20] Production.INFO: 29 MB #Memory Used# [2025-02-19 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:36:05 [end_date_ymd] => 2025-02-19 04:36:05 [RateCDR] => 1 ) [2025-02-19 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:36:05' and `end` < '2025-02-19 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:36:17] Production.INFO: count ==126 [2025-02-19 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:36:05 - End Time 2025-02-19 04:36:05 [2025-02-19 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507993', 'tblTempUsageDetail_20' ) start [2025-02-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507993', 'tblTempUsageDetail_20' ) end [2025-02-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507993', 'tblTempVendorCDR_20' ) start [2025-02-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507993', 'tblTempVendorCDR_20' ) end [2025-02-19 04:36:17] Production.INFO: ProcessCDR(1,14507993,1,1,2) [2025-02-19 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507993', 'tblTempUsageDetail_20' ) start [2025-02-19 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507993', 'tblTempUsageDetail_20' ) end [2025-02-19 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:36:20] Production.INFO: ==5993== Releasing lock... [2025-02-19 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:36:20] Production.INFO: 29 MB #Memory Used# [2025-02-19 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:37:06 [end_date_ymd] => 2025-02-19 04:37:06 [RateCDR] => 1 ) [2025-02-19 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:37:06' and `end` < '2025-02-19 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:37:17] Production.INFO: count ==126 [2025-02-19 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:37:06 - End Time 2025-02-19 04:37:06 [2025-02-19 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507998', 'tblTempUsageDetail_20' ) start [2025-02-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14507998', 'tblTempUsageDetail_20' ) end [2025-02-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507998', 'tblTempVendorCDR_20' ) start [2025-02-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14507998', 'tblTempVendorCDR_20' ) end [2025-02-19 04:37:17] Production.INFO: ProcessCDR(1,14507998,1,1,2) [2025-02-19 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14507998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14507998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14507998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14507998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507998', 'tblTempUsageDetail_20' ) start [2025-02-19 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14507998', 'tblTempUsageDetail_20' ) end [2025-02-19 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:37:20] Production.INFO: ==6064== Releasing lock... [2025-02-19 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-19 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:38:05 [end_date_ymd] => 2025-02-19 04:38:05 [RateCDR] => 1 ) [2025-02-19 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:38:05' and `end` < '2025-02-19 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:38:17] Production.INFO: count ==123 [2025-02-19 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:38:05 - End Time 2025-02-19 04:38:05 [2025-02-19 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508003', 'tblTempUsageDetail_20' ) start [2025-02-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508003', 'tblTempUsageDetail_20' ) end [2025-02-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508003', 'tblTempVendorCDR_20' ) start [2025-02-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508003', 'tblTempVendorCDR_20' ) end [2025-02-19 04:38:17] Production.INFO: ProcessCDR(1,14508003,1,1,2) [2025-02-19 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508003', 'tblTempUsageDetail_20' ) start [2025-02-19 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508003', 'tblTempUsageDetail_20' ) end [2025-02-19 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:38:20] Production.INFO: ==6136== Releasing lock... [2025-02-19 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-19 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:39:06 [end_date_ymd] => 2025-02-19 04:39:06 [RateCDR] => 1 ) [2025-02-19 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:39:06' and `end` < '2025-02-19 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:39:17] Production.INFO: count ==122 [2025-02-19 04:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:39:06 - End Time 2025-02-19 04:39:06 [2025-02-19 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508008', 'tblTempUsageDetail_20' ) start [2025-02-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508008', 'tblTempUsageDetail_20' ) end [2025-02-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508008', 'tblTempVendorCDR_20' ) start [2025-02-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508008', 'tblTempVendorCDR_20' ) end [2025-02-19 04:39:17] Production.INFO: ProcessCDR(1,14508008,1,1,2) [2025-02-19 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508008', 'tblTempUsageDetail_20' ) start [2025-02-19 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508008', 'tblTempUsageDetail_20' ) end [2025-02-19 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:39:20] Production.INFO: ==6209== Releasing lock... [2025-02-19 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:39:20] Production.INFO: 29 MB #Memory Used# [2025-02-19 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:40:05 [end_date_ymd] => 2025-02-19 04:40:05 [RateCDR] => 1 ) [2025-02-19 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:40:05' and `end` < '2025-02-19 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:40:17] Production.INFO: count ==116 [2025-02-19 04:40:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:40:05 - End Time 2025-02-19 04:40:05 [2025-02-19 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508014', 'tblTempUsageDetail_20' ) start [2025-02-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508014', 'tblTempUsageDetail_20' ) end [2025-02-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508014', 'tblTempVendorCDR_20' ) start [2025-02-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508014', 'tblTempVendorCDR_20' ) end [2025-02-19 04:40:17] Production.INFO: ProcessCDR(1,14508014,1,1,2) [2025-02-19 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508014', 'tblTempUsageDetail_20' ) start [2025-02-19 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508014', 'tblTempUsageDetail_20' ) end [2025-02-19 04:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:40:20] Production.INFO: ==6283== Releasing lock... [2025-02-19 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:40:20] Production.INFO: 29 MB #Memory Used# [2025-02-19 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:41:05 [end_date_ymd] => 2025-02-19 04:41:05 [RateCDR] => 1 ) [2025-02-19 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:41:05' and `end` < '2025-02-19 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:41:17] Production.INFO: count ==106 [2025-02-19 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:41:05 - End Time 2025-02-19 04:41:05 [2025-02-19 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508019', 'tblTempUsageDetail_20' ) start [2025-02-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508019', 'tblTempUsageDetail_20' ) end [2025-02-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508019', 'tblTempVendorCDR_20' ) start [2025-02-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508019', 'tblTempVendorCDR_20' ) end [2025-02-19 04:41:17] Production.INFO: ProcessCDR(1,14508019,1,1,2) [2025-02-19 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508019', 'tblTempUsageDetail_20' ) start [2025-02-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508019', 'tblTempUsageDetail_20' ) end [2025-02-19 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:41:20] Production.INFO: ==6362== Releasing lock... [2025-02-19 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-19 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:42:06 [end_date_ymd] => 2025-02-19 04:42:06 [RateCDR] => 1 ) [2025-02-19 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:42:06' and `end` < '2025-02-19 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:42:17] Production.INFO: count ==92 [2025-02-19 04:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:42:06 - End Time 2025-02-19 04:42:06 [2025-02-19 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508024', 'tblTempUsageDetail_20' ) start [2025-02-19 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508024', 'tblTempUsageDetail_20' ) end [2025-02-19 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508024', 'tblTempVendorCDR_20' ) start [2025-02-19 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508024', 'tblTempVendorCDR_20' ) end [2025-02-19 04:42:17] Production.INFO: ProcessCDR(1,14508024,1,1,2) [2025-02-19 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508024', 'tblTempUsageDetail_20' ) start [2025-02-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508024', 'tblTempUsageDetail_20' ) end [2025-02-19 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:42:21] Production.INFO: ==6433== Releasing lock... [2025-02-19 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:43:05 [end_date_ymd] => 2025-02-19 04:43:05 [RateCDR] => 1 ) [2025-02-19 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:43:05' and `end` < '2025-02-19 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:43:17] Production.INFO: count ==88 [2025-02-19 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:43:05 - End Time 2025-02-19 04:43:05 [2025-02-19 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508029', 'tblTempUsageDetail_20' ) start [2025-02-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508029', 'tblTempUsageDetail_20' ) end [2025-02-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508029', 'tblTempVendorCDR_20' ) start [2025-02-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508029', 'tblTempVendorCDR_20' ) end [2025-02-19 04:43:17] Production.INFO: ProcessCDR(1,14508029,1,1,2) [2025-02-19 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508029', 'tblTempUsageDetail_20' ) start [2025-02-19 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508029', 'tblTempUsageDetail_20' ) end [2025-02-19 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:43:20] Production.INFO: ==6508== Releasing lock... [2025-02-19 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:44:05 [end_date_ymd] => 2025-02-19 04:44:05 [RateCDR] => 1 ) [2025-02-19 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:44:05' and `end` < '2025-02-19 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:44:17] Production.INFO: count ==88 [2025-02-19 04:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:44:05 - End Time 2025-02-19 04:44:05 [2025-02-19 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508034', 'tblTempUsageDetail_20' ) start [2025-02-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508034', 'tblTempUsageDetail_20' ) end [2025-02-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508034', 'tblTempVendorCDR_20' ) start [2025-02-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508034', 'tblTempVendorCDR_20' ) end [2025-02-19 04:44:17] Production.INFO: ProcessCDR(1,14508034,1,1,2) [2025-02-19 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508034', 'tblTempUsageDetail_20' ) start [2025-02-19 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508034', 'tblTempUsageDetail_20' ) end [2025-02-19 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:44:20] Production.INFO: ==6579== Releasing lock... [2025-02-19 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:45:05 [end_date_ymd] => 2025-02-19 04:45:05 [RateCDR] => 1 ) [2025-02-19 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:45:05' and `end` < '2025-02-19 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:45:17] Production.INFO: count ==88 [2025-02-19 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:45:05 - End Time 2025-02-19 04:45:05 [2025-02-19 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508039', 'tblTempUsageDetail_20' ) start [2025-02-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508039', 'tblTempUsageDetail_20' ) end [2025-02-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508039', 'tblTempVendorCDR_20' ) start [2025-02-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508039', 'tblTempVendorCDR_20' ) end [2025-02-19 04:45:17] Production.INFO: ProcessCDR(1,14508039,1,1,2) [2025-02-19 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508039', 'tblTempUsageDetail_20' ) start [2025-02-19 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508039', 'tblTempUsageDetail_20' ) end [2025-02-19 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:45:20] Production.INFO: ==6651== Releasing lock... [2025-02-19 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:46:05 [end_date_ymd] => 2025-02-19 04:46:05 [RateCDR] => 1 ) [2025-02-19 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:46:05' and `end` < '2025-02-19 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:46:17] Production.INFO: count ==88 [2025-02-19 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:46:05 - End Time 2025-02-19 04:46:05 [2025-02-19 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508044', 'tblTempUsageDetail_20' ) start [2025-02-19 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508044', 'tblTempUsageDetail_20' ) end [2025-02-19 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508044', 'tblTempVendorCDR_20' ) start [2025-02-19 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508044', 'tblTempVendorCDR_20' ) end [2025-02-19 04:46:17] Production.INFO: ProcessCDR(1,14508044,1,1,2) [2025-02-19 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508044', 'tblTempUsageDetail_20' ) start [2025-02-19 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508044', 'tblTempUsageDetail_20' ) end [2025-02-19 04:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:46:20] Production.INFO: ==6721== Releasing lock... [2025-02-19 04:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:47:05 [end_date_ymd] => 2025-02-19 04:47:05 [RateCDR] => 1 ) [2025-02-19 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:47:05' and `end` < '2025-02-19 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:47:17] Production.INFO: count ==87 [2025-02-19 04:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:47:05 - End Time 2025-02-19 04:47:05 [2025-02-19 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508049', 'tblTempUsageDetail_20' ) start [2025-02-19 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508049', 'tblTempUsageDetail_20' ) end [2025-02-19 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508049', 'tblTempVendorCDR_20' ) start [2025-02-19 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508049', 'tblTempVendorCDR_20' ) end [2025-02-19 04:47:17] Production.INFO: ProcessCDR(1,14508049,1,1,2) [2025-02-19 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508049', 'tblTempUsageDetail_20' ) start [2025-02-19 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508049', 'tblTempUsageDetail_20' ) end [2025-02-19 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:47:20] Production.INFO: ==6792== Releasing lock... [2025-02-19 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:48:05 [end_date_ymd] => 2025-02-19 04:48:05 [RateCDR] => 1 ) [2025-02-19 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:48:05' and `end` < '2025-02-19 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:48:18] Production.INFO: count ==86 [2025-02-19 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-19 01:48:05 - End Time 2025-02-19 04:48:05 [2025-02-19 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508054', 'tblTempUsageDetail_20' ) start [2025-02-19 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508054', 'tblTempUsageDetail_20' ) end [2025-02-19 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508054', 'tblTempVendorCDR_20' ) start [2025-02-19 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508054', 'tblTempVendorCDR_20' ) end [2025-02-19 04:48:19] Production.INFO: ProcessCDR(1,14508054,1,1,2) [2025-02-19 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508054', 'tblTempUsageDetail_20' ) start [2025-02-19 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508054', 'tblTempUsageDetail_20' ) end [2025-02-19 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:48:22] Production.INFO: ==6899== Releasing lock... [2025-02-19 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:49:05 [end_date_ymd] => 2025-02-19 04:49:05 [RateCDR] => 1 ) [2025-02-19 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:49:05' and `end` < '2025-02-19 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:49:17] Production.INFO: count ==86 [2025-02-19 04:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:49:05 - End Time 2025-02-19 04:49:05 [2025-02-19 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508057', 'tblTempUsageDetail_20' ) start [2025-02-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508057', 'tblTempUsageDetail_20' ) end [2025-02-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508057', 'tblTempVendorCDR_20' ) start [2025-02-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508057', 'tblTempVendorCDR_20' ) end [2025-02-19 04:49:17] Production.INFO: ProcessCDR(1,14508057,1,1,2) [2025-02-19 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508057', 'tblTempUsageDetail_20' ) start [2025-02-19 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508057', 'tblTempUsageDetail_20' ) end [2025-02-19 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:49:20] Production.INFO: ==6971== Releasing lock... [2025-02-19 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:50:06 [end_date_ymd] => 2025-02-19 04:50:06 [RateCDR] => 1 ) [2025-02-19 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:50:06' and `end` < '2025-02-19 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:50:18] Production.INFO: count ==86 [2025-02-19 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:50:06 - End Time 2025-02-19 04:50:06 [2025-02-19 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508065', 'tblTempUsageDetail_20' ) start [2025-02-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508065', 'tblTempUsageDetail_20' ) end [2025-02-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508065', 'tblTempVendorCDR_20' ) start [2025-02-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508065', 'tblTempVendorCDR_20' ) end [2025-02-19 04:50:18] Production.INFO: ProcessCDR(1,14508065,1,1,2) [2025-02-19 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508065', 'tblTempUsageDetail_20' ) start [2025-02-19 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508065', 'tblTempUsageDetail_20' ) end [2025-02-19 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:50:21] Production.INFO: ==7045== Releasing lock... [2025-02-19 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:51:05 [end_date_ymd] => 2025-02-19 04:51:05 [RateCDR] => 1 ) [2025-02-19 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:51:05' and `end` < '2025-02-19 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:51:17] Production.INFO: count ==86 [2025-02-19 04:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:51:05 - End Time 2025-02-19 04:51:05 [2025-02-19 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508070', 'tblTempUsageDetail_20' ) start [2025-02-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508070', 'tblTempUsageDetail_20' ) end [2025-02-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508070', 'tblTempVendorCDR_20' ) start [2025-02-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508070', 'tblTempVendorCDR_20' ) end [2025-02-19 04:51:17] Production.INFO: ProcessCDR(1,14508070,1,1,2) [2025-02-19 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508070', 'tblTempUsageDetail_20' ) start [2025-02-19 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508070', 'tblTempUsageDetail_20' ) end [2025-02-19 04:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:51:20] Production.INFO: ==7116== Releasing lock... [2025-02-19 04:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:52:06 [end_date_ymd] => 2025-02-19 04:52:06 [RateCDR] => 1 ) [2025-02-19 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:52:06' and `end` < '2025-02-19 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:52:18] Production.INFO: count ==86 [2025-02-19 04:52:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:52:06 - End Time 2025-02-19 04:52:06 [2025-02-19 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508075', 'tblTempUsageDetail_20' ) start [2025-02-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508075', 'tblTempUsageDetail_20' ) end [2025-02-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508075', 'tblTempVendorCDR_20' ) start [2025-02-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508075', 'tblTempVendorCDR_20' ) end [2025-02-19 04:52:18] Production.INFO: ProcessCDR(1,14508075,1,1,2) [2025-02-19 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508075', 'tblTempUsageDetail_20' ) start [2025-02-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508075', 'tblTempUsageDetail_20' ) end [2025-02-19 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:52:22] Production.INFO: ==7189== Releasing lock... [2025-02-19 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:53:05 [end_date_ymd] => 2025-02-19 04:53:05 [RateCDR] => 1 ) [2025-02-19 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:53:05' and `end` < '2025-02-19 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:53:18] Production.INFO: count ==86 [2025-02-19 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:53:05 - End Time 2025-02-19 04:53:05 [2025-02-19 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508080', 'tblTempUsageDetail_20' ) start [2025-02-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508080', 'tblTempUsageDetail_20' ) end [2025-02-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508080', 'tblTempVendorCDR_20' ) start [2025-02-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508080', 'tblTempVendorCDR_20' ) end [2025-02-19 04:53:18] Production.INFO: ProcessCDR(1,14508080,1,1,2) [2025-02-19 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508080', 'tblTempUsageDetail_20' ) start [2025-02-19 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508080', 'tblTempUsageDetail_20' ) end [2025-02-19 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:53:21] Production.INFO: ==7267== Releasing lock... [2025-02-19 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:54:05 [end_date_ymd] => 2025-02-19 04:54:05 [RateCDR] => 1 ) [2025-02-19 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:54:05' and `end` < '2025-02-19 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:54:18] Production.INFO: count ==86 [2025-02-19 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:54:05 - End Time 2025-02-19 04:54:05 [2025-02-19 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508085', 'tblTempUsageDetail_20' ) start [2025-02-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508085', 'tblTempUsageDetail_20' ) end [2025-02-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508085', 'tblTempVendorCDR_20' ) start [2025-02-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508085', 'tblTempVendorCDR_20' ) end [2025-02-19 04:54:18] Production.INFO: ProcessCDR(1,14508085,1,1,2) [2025-02-19 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508085', 'tblTempUsageDetail_20' ) start [2025-02-19 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508085', 'tblTempUsageDetail_20' ) end [2025-02-19 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:54:22] Production.INFO: ==7338== Releasing lock... [2025-02-19 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:55:05 [end_date_ymd] => 2025-02-19 04:55:05 [RateCDR] => 1 ) [2025-02-19 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:55:05' and `end` < '2025-02-19 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:55:17] Production.INFO: count ==86 [2025-02-19 04:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:55:05 - End Time 2025-02-19 04:55:05 [2025-02-19 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508090', 'tblTempUsageDetail_20' ) start [2025-02-19 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508090', 'tblTempUsageDetail_20' ) end [2025-02-19 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508090', 'tblTempVendorCDR_20' ) start [2025-02-19 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508090', 'tblTempVendorCDR_20' ) end [2025-02-19 04:55:17] Production.INFO: ProcessCDR(1,14508090,1,1,2) [2025-02-19 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508090', 'tblTempUsageDetail_20' ) start [2025-02-19 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508090', 'tblTempUsageDetail_20' ) end [2025-02-19 04:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:55:20] Production.INFO: ==7409== Releasing lock... [2025-02-19 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:56:06 [end_date_ymd] => 2025-02-19 04:56:06 [RateCDR] => 1 ) [2025-02-19 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:56:06' and `end` < '2025-02-19 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:56:17] Production.INFO: count ==86 [2025-02-19 04:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:56:06 - End Time 2025-02-19 04:56:06 [2025-02-19 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508095', 'tblTempUsageDetail_20' ) start [2025-02-19 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508095', 'tblTempUsageDetail_20' ) end [2025-02-19 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508095', 'tblTempVendorCDR_20' ) start [2025-02-19 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508095', 'tblTempVendorCDR_20' ) end [2025-02-19 04:56:17] Production.INFO: ProcessCDR(1,14508095,1,1,2) [2025-02-19 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508095', 'tblTempUsageDetail_20' ) start [2025-02-19 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508095', 'tblTempUsageDetail_20' ) end [2025-02-19 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:56:20] Production.INFO: ==7481== Releasing lock... [2025-02-19 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:57:05 [end_date_ymd] => 2025-02-19 04:57:05 [RateCDR] => 1 ) [2025-02-19 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:57:05' and `end` < '2025-02-19 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:57:17] Production.INFO: count ==86 [2025-02-19 04:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 01:57:05 - End Time 2025-02-19 04:57:05 [2025-02-19 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508100', 'tblTempUsageDetail_20' ) start [2025-02-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508100', 'tblTempUsageDetail_20' ) end [2025-02-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508100', 'tblTempVendorCDR_20' ) start [2025-02-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508100', 'tblTempVendorCDR_20' ) end [2025-02-19 04:57:17] Production.INFO: ProcessCDR(1,14508100,1,1,2) [2025-02-19 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508100', 'tblTempUsageDetail_20' ) start [2025-02-19 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508100', 'tblTempUsageDetail_20' ) end [2025-02-19 04:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:57:20] Production.INFO: ==7551== Releasing lock... [2025-02-19 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:58:05 [end_date_ymd] => 2025-02-19 04:58:05 [RateCDR] => 1 ) [2025-02-19 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:58:05' and `end` < '2025-02-19 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:58:18] Production.INFO: count ==86 [2025-02-19 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:58:05 - End Time 2025-02-19 04:58:05 [2025-02-19 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508105', 'tblTempUsageDetail_20' ) start [2025-02-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508105', 'tblTempUsageDetail_20' ) end [2025-02-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508105', 'tblTempVendorCDR_20' ) start [2025-02-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508105', 'tblTempVendorCDR_20' ) end [2025-02-19 04:58:18] Production.INFO: ProcessCDR(1,14508105,1,1,2) [2025-02-19 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508105', 'tblTempUsageDetail_20' ) start [2025-02-19 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508105', 'tblTempUsageDetail_20' ) end [2025-02-19 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:58:21] Production.INFO: ==7624== Releasing lock... [2025-02-19 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 01:59:05 [end_date_ymd] => 2025-02-19 04:59:05 [RateCDR] => 1 ) [2025-02-19 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 01:59:05' and `end` < '2025-02-19 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 04:59:18] Production.INFO: count ==86 [2025-02-19 04:59:18] Production.ERROR: pbx CDR StartTime 2025-02-19 01:59:05 - End Time 2025-02-19 04:59:05 [2025-02-19 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508110', 'tblTempUsageDetail_20' ) start [2025-02-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508110', 'tblTempUsageDetail_20' ) end [2025-02-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508110', 'tblTempVendorCDR_20' ) start [2025-02-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508110', 'tblTempVendorCDR_20' ) end [2025-02-19 04:59:18] Production.INFO: ProcessCDR(1,14508110,1,1,2) [2025-02-19 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508110', 'tblTempUsageDetail_20' ) start [2025-02-19 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508110', 'tblTempUsageDetail_20' ) end [2025-02-19 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 04:59:21] Production.INFO: ==7693== Releasing lock... [2025-02-19 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 04:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:00:06 [end_date_ymd] => 2025-02-19 05:00:06 [RateCDR] => 1 ) [2025-02-19 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:00:06' and `end` < '2025-02-19 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:00:18] Production.INFO: count ==88 [2025-02-19 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:00:06 - End Time 2025-02-19 05:00:06 [2025-02-19 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508115', 'tblTempUsageDetail_20' ) start [2025-02-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508115', 'tblTempUsageDetail_20' ) end [2025-02-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508115', 'tblTempVendorCDR_20' ) start [2025-02-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508115', 'tblTempVendorCDR_20' ) end [2025-02-19 05:00:18] Production.INFO: ProcessCDR(1,14508115,1,1,2) [2025-02-19 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508115', 'tblTempUsageDetail_20' ) start [2025-02-19 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508115', 'tblTempUsageDetail_20' ) end [2025-02-19 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:00:21] Production.INFO: ==7772== Releasing lock... [2025-02-19 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:01:05 [end_date_ymd] => 2025-02-19 05:01:05 [RateCDR] => 1 ) [2025-02-19 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:01:05' and `end` < '2025-02-19 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:01:18] Production.INFO: count ==84 [2025-02-19 05:01:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:01:05 - End Time 2025-02-19 05:01:05 [2025-02-19 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508121', 'tblTempUsageDetail_20' ) start [2025-02-19 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508121', 'tblTempUsageDetail_20' ) end [2025-02-19 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508121', 'tblTempVendorCDR_20' ) start [2025-02-19 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508121', 'tblTempVendorCDR_20' ) end [2025-02-19 05:01:18] Production.INFO: ProcessCDR(1,14508121,1,1,2) [2025-02-19 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508121', 'tblTempUsageDetail_20' ) start [2025-02-19 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508121', 'tblTempUsageDetail_20' ) end [2025-02-19 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:01:21] Production.INFO: ==7855== Releasing lock... [2025-02-19 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:02:06 [end_date_ymd] => 2025-02-19 05:02:06 [RateCDR] => 1 ) [2025-02-19 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:02:06' and `end` < '2025-02-19 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:02:17] Production.INFO: count ==81 [2025-02-19 05:02:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:02:06 - End Time 2025-02-19 05:02:06 [2025-02-19 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508126', 'tblTempUsageDetail_20' ) start [2025-02-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508126', 'tblTempUsageDetail_20' ) end [2025-02-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508126', 'tblTempVendorCDR_20' ) start [2025-02-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508126', 'tblTempVendorCDR_20' ) end [2025-02-19 05:02:18] Production.INFO: ProcessCDR(1,14508126,1,1,2) [2025-02-19 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508126', 'tblTempUsageDetail_20' ) start [2025-02-19 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508126', 'tblTempUsageDetail_20' ) end [2025-02-19 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:02:21] Production.INFO: ==7925== Releasing lock... [2025-02-19 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:03:05 [end_date_ymd] => 2025-02-19 05:03:05 [RateCDR] => 1 ) [2025-02-19 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:03:05' and `end` < '2025-02-19 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:03:17] Production.INFO: count ==80 [2025-02-19 05:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:03:05 - End Time 2025-02-19 05:03:05 [2025-02-19 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508131', 'tblTempUsageDetail_20' ) start [2025-02-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508131', 'tblTempUsageDetail_20' ) end [2025-02-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508131', 'tblTempVendorCDR_20' ) start [2025-02-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508131', 'tblTempVendorCDR_20' ) end [2025-02-19 05:03:17] Production.INFO: ProcessCDR(1,14508131,1,1,2) [2025-02-19 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508131', 'tblTempUsageDetail_20' ) start [2025-02-19 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508131', 'tblTempUsageDetail_20' ) end [2025-02-19 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:03:20] Production.INFO: ==7995== Releasing lock... [2025-02-19 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:04:05 [end_date_ymd] => 2025-02-19 05:04:05 [RateCDR] => 1 ) [2025-02-19 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:04:05' and `end` < '2025-02-19 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:04:17] Production.INFO: count ==80 [2025-02-19 05:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:04:05 - End Time 2025-02-19 05:04:05 [2025-02-19 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508136', 'tblTempUsageDetail_20' ) start [2025-02-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508136', 'tblTempUsageDetail_20' ) end [2025-02-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508136', 'tblTempVendorCDR_20' ) start [2025-02-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508136', 'tblTempVendorCDR_20' ) end [2025-02-19 05:04:17] Production.INFO: ProcessCDR(1,14508136,1,1,2) [2025-02-19 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508136', 'tblTempUsageDetail_20' ) start [2025-02-19 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508136', 'tblTempUsageDetail_20' ) end [2025-02-19 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:04:21] Production.INFO: ==8107== Releasing lock... [2025-02-19 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:05:05 [end_date_ymd] => 2025-02-19 05:05:05 [RateCDR] => 1 ) [2025-02-19 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:05:05' and `end` < '2025-02-19 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:05:16] Production.INFO: count ==76 [2025-02-19 05:05:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:05:05 - End Time 2025-02-19 05:05:05 [2025-02-19 05:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508141', 'tblTempUsageDetail_20' ) start [2025-02-19 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508141', 'tblTempUsageDetail_20' ) end [2025-02-19 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508141', 'tblTempVendorCDR_20' ) start [2025-02-19 05:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508141', 'tblTempVendorCDR_20' ) end [2025-02-19 05:05:16] Production.INFO: ProcessCDR(1,14508141,1,1,2) [2025-02-19 05:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508141', 'tblTempUsageDetail_20' ) start [2025-02-19 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508141', 'tblTempUsageDetail_20' ) end [2025-02-19 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:05:20] Production.INFO: ==8177== Releasing lock... [2025-02-19 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:06:05 [end_date_ymd] => 2025-02-19 05:06:05 [RateCDR] => 1 ) [2025-02-19 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:06:05' and `end` < '2025-02-19 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:06:18] Production.INFO: count ==76 [2025-02-19 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:06:05 - End Time 2025-02-19 05:06:05 [2025-02-19 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508146', 'tblTempUsageDetail_20' ) start [2025-02-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508146', 'tblTempUsageDetail_20' ) end [2025-02-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508146', 'tblTempVendorCDR_20' ) start [2025-02-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508146', 'tblTempVendorCDR_20' ) end [2025-02-19 05:06:18] Production.INFO: ProcessCDR(1,14508146,1,1,2) [2025-02-19 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508146', 'tblTempUsageDetail_20' ) start [2025-02-19 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508146', 'tblTempUsageDetail_20' ) end [2025-02-19 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:06:21] Production.INFO: ==8251== Releasing lock... [2025-02-19 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:07:06 [end_date_ymd] => 2025-02-19 05:07:06 [RateCDR] => 1 ) [2025-02-19 05:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:07:06' and `end` < '2025-02-19 05:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:07:17] Production.INFO: count ==76 [2025-02-19 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:07:06 - End Time 2025-02-19 05:07:06 [2025-02-19 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508151', 'tblTempUsageDetail_20' ) start [2025-02-19 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508151', 'tblTempUsageDetail_20' ) end [2025-02-19 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508151', 'tblTempVendorCDR_20' ) start [2025-02-19 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508151', 'tblTempVendorCDR_20' ) end [2025-02-19 05:07:17] Production.INFO: ProcessCDR(1,14508151,1,1,2) [2025-02-19 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508151', 'tblTempUsageDetail_20' ) start [2025-02-19 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508151', 'tblTempUsageDetail_20' ) end [2025-02-19 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:07:21] Production.INFO: ==8323== Releasing lock... [2025-02-19 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:08:05 [end_date_ymd] => 2025-02-19 05:08:05 [RateCDR] => 1 ) [2025-02-19 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:08:05' and `end` < '2025-02-19 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:08:17] Production.INFO: count ==76 [2025-02-19 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:08:05 - End Time 2025-02-19 05:08:05 [2025-02-19 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508156', 'tblTempUsageDetail_20' ) start [2025-02-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508156', 'tblTempUsageDetail_20' ) end [2025-02-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508156', 'tblTempVendorCDR_20' ) start [2025-02-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508156', 'tblTempVendorCDR_20' ) end [2025-02-19 05:08:17] Production.INFO: ProcessCDR(1,14508156,1,1,2) [2025-02-19 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508156', 'tblTempUsageDetail_20' ) start [2025-02-19 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508156', 'tblTempUsageDetail_20' ) end [2025-02-19 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:08:20] Production.INFO: ==8395== Releasing lock... [2025-02-19 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:09:05 [end_date_ymd] => 2025-02-19 05:09:05 [RateCDR] => 1 ) [2025-02-19 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:09:05' and `end` < '2025-02-19 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:09:17] Production.INFO: count ==76 [2025-02-19 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:09:05 - End Time 2025-02-19 05:09:05 [2025-02-19 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508161', 'tblTempUsageDetail_20' ) start [2025-02-19 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508161', 'tblTempUsageDetail_20' ) end [2025-02-19 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508161', 'tblTempVendorCDR_20' ) start [2025-02-19 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508161', 'tblTempVendorCDR_20' ) end [2025-02-19 05:09:17] Production.INFO: ProcessCDR(1,14508161,1,1,2) [2025-02-19 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508161', 'tblTempUsageDetail_20' ) start [2025-02-19 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508161', 'tblTempUsageDetail_20' ) end [2025-02-19 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:09:20] Production.INFO: ==8465== Releasing lock... [2025-02-19 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:10:05 [end_date_ymd] => 2025-02-19 05:10:05 [RateCDR] => 1 ) [2025-02-19 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:10:05' and `end` < '2025-02-19 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:10:17] Production.INFO: count ==72 [2025-02-19 05:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:10:05 - End Time 2025-02-19 05:10:05 [2025-02-19 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508167', 'tblTempUsageDetail_20' ) start [2025-02-19 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508167', 'tblTempUsageDetail_20' ) end [2025-02-19 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508167', 'tblTempVendorCDR_20' ) start [2025-02-19 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508167', 'tblTempVendorCDR_20' ) end [2025-02-19 05:10:17] Production.INFO: ProcessCDR(1,14508167,1,1,2) [2025-02-19 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508167', 'tblTempUsageDetail_20' ) start [2025-02-19 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508167', 'tblTempUsageDetail_20' ) end [2025-02-19 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:10:21] Production.INFO: ==8543== Releasing lock... [2025-02-19 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:11:06 [end_date_ymd] => 2025-02-19 05:11:06 [RateCDR] => 1 ) [2025-02-19 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:11:06' and `end` < '2025-02-19 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:11:17] Production.INFO: count ==72 [2025-02-19 05:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:11:06 - End Time 2025-02-19 05:11:06 [2025-02-19 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508172', 'tblTempUsageDetail_20' ) start [2025-02-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508172', 'tblTempUsageDetail_20' ) end [2025-02-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508172', 'tblTempVendorCDR_20' ) start [2025-02-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508172', 'tblTempVendorCDR_20' ) end [2025-02-19 05:11:17] Production.INFO: ProcessCDR(1,14508172,1,1,2) [2025-02-19 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508172', 'tblTempUsageDetail_20' ) start [2025-02-19 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508172', 'tblTempUsageDetail_20' ) end [2025-02-19 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:11:21] Production.INFO: ==8619== Releasing lock... [2025-02-19 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:12:05 [end_date_ymd] => 2025-02-19 05:12:05 [RateCDR] => 1 ) [2025-02-19 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:12:05' and `end` < '2025-02-19 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:12:17] Production.INFO: count ==72 [2025-02-19 05:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:12:05 - End Time 2025-02-19 05:12:05 [2025-02-19 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508177', 'tblTempUsageDetail_20' ) start [2025-02-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508177', 'tblTempUsageDetail_20' ) end [2025-02-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508177', 'tblTempVendorCDR_20' ) start [2025-02-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508177', 'tblTempVendorCDR_20' ) end [2025-02-19 05:12:17] Production.INFO: ProcessCDR(1,14508177,1,1,2) [2025-02-19 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508177', 'tblTempUsageDetail_20' ) start [2025-02-19 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508177', 'tblTempUsageDetail_20' ) end [2025-02-19 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:12:20] Production.INFO: ==8691== Releasing lock... [2025-02-19 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:13:05 [end_date_ymd] => 2025-02-19 05:13:05 [RateCDR] => 1 ) [2025-02-19 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:13:05' and `end` < '2025-02-19 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:13:17] Production.INFO: count ==72 [2025-02-19 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:13:05 - End Time 2025-02-19 05:13:05 [2025-02-19 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508182', 'tblTempUsageDetail_20' ) start [2025-02-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508182', 'tblTempUsageDetail_20' ) end [2025-02-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508182', 'tblTempVendorCDR_20' ) start [2025-02-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508182', 'tblTempVendorCDR_20' ) end [2025-02-19 05:13:17] Production.INFO: ProcessCDR(1,14508182,1,1,2) [2025-02-19 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508182', 'tblTempUsageDetail_20' ) start [2025-02-19 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508182', 'tblTempUsageDetail_20' ) end [2025-02-19 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:13:20] Production.INFO: ==8762== Releasing lock... [2025-02-19 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:14:05 [end_date_ymd] => 2025-02-19 05:14:05 [RateCDR] => 1 ) [2025-02-19 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:14:05' and `end` < '2025-02-19 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:14:16] Production.INFO: count ==72 [2025-02-19 05:14:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:14:05 - End Time 2025-02-19 05:14:05 [2025-02-19 05:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508187', 'tblTempUsageDetail_20' ) start [2025-02-19 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508187', 'tblTempUsageDetail_20' ) end [2025-02-19 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508187', 'tblTempVendorCDR_20' ) start [2025-02-19 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508187', 'tblTempVendorCDR_20' ) end [2025-02-19 05:14:16] Production.INFO: ProcessCDR(1,14508187,1,1,2) [2025-02-19 05:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508187', 'tblTempUsageDetail_20' ) start [2025-02-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508187', 'tblTempUsageDetail_20' ) end [2025-02-19 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:14:20] Production.INFO: ==8834== Releasing lock... [2025-02-19 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:15:06 [end_date_ymd] => 2025-02-19 05:15:06 [RateCDR] => 1 ) [2025-02-19 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:15:06' and `end` < '2025-02-19 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:15:18] Production.INFO: count ==72 [2025-02-19 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:15:06 - End Time 2025-02-19 05:15:06 [2025-02-19 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508192', 'tblTempUsageDetail_20' ) start [2025-02-19 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508192', 'tblTempUsageDetail_20' ) end [2025-02-19 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508192', 'tblTempVendorCDR_20' ) start [2025-02-19 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508192', 'tblTempVendorCDR_20' ) end [2025-02-19 05:15:18] Production.INFO: ProcessCDR(1,14508192,1,1,2) [2025-02-19 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508192', 'tblTempUsageDetail_20' ) start [2025-02-19 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508192', 'tblTempUsageDetail_20' ) end [2025-02-19 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:15:21] Production.INFO: ==8905== Releasing lock... [2025-02-19 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:16:05 [end_date_ymd] => 2025-02-19 05:16:05 [RateCDR] => 1 ) [2025-02-19 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:16:05' and `end` < '2025-02-19 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:16:17] Production.INFO: count ==72 [2025-02-19 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:16:05 - End Time 2025-02-19 05:16:05 [2025-02-19 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508197', 'tblTempUsageDetail_20' ) start [2025-02-19 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508197', 'tblTempUsageDetail_20' ) end [2025-02-19 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508197', 'tblTempVendorCDR_20' ) start [2025-02-19 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508197', 'tblTempVendorCDR_20' ) end [2025-02-19 05:16:17] Production.INFO: ProcessCDR(1,14508197,1,1,2) [2025-02-19 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508197', 'tblTempUsageDetail_20' ) start [2025-02-19 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508197', 'tblTempUsageDetail_20' ) end [2025-02-19 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:16:20] Production.INFO: ==8977== Releasing lock... [2025-02-19 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:17:05 [end_date_ymd] => 2025-02-19 05:17:05 [RateCDR] => 1 ) [2025-02-19 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:17:05' and `end` < '2025-02-19 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:17:17] Production.INFO: count ==69 [2025-02-19 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:17:05 - End Time 2025-02-19 05:17:05 [2025-02-19 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508202', 'tblTempUsageDetail_20' ) start [2025-02-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508202', 'tblTempUsageDetail_20' ) end [2025-02-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508202', 'tblTempVendorCDR_20' ) start [2025-02-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508202', 'tblTempVendorCDR_20' ) end [2025-02-19 05:17:17] Production.INFO: ProcessCDR(1,14508202,1,1,2) [2025-02-19 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508202', 'tblTempUsageDetail_20' ) start [2025-02-19 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508202', 'tblTempUsageDetail_20' ) end [2025-02-19 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:17:20] Production.INFO: ==9048== Releasing lock... [2025-02-19 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:18:05 [end_date_ymd] => 2025-02-19 05:18:05 [RateCDR] => 1 ) [2025-02-19 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:18:05' and `end` < '2025-02-19 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:18:16] Production.INFO: count ==68 [2025-02-19 05:18:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:18:05 - End Time 2025-02-19 05:18:05 [2025-02-19 05:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508207', 'tblTempUsageDetail_20' ) start [2025-02-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508207', 'tblTempUsageDetail_20' ) end [2025-02-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508207', 'tblTempVendorCDR_20' ) start [2025-02-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508207', 'tblTempVendorCDR_20' ) end [2025-02-19 05:18:16] Production.INFO: ProcessCDR(1,14508207,1,1,2) [2025-02-19 05:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508207', 'tblTempUsageDetail_20' ) start [2025-02-19 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508207', 'tblTempUsageDetail_20' ) end [2025-02-19 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:18:20] Production.INFO: ==9121== Releasing lock... [2025-02-19 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:19:05 [end_date_ymd] => 2025-02-19 05:19:05 [RateCDR] => 1 ) [2025-02-19 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:19:05' and `end` < '2025-02-19 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:19:17] Production.INFO: count ==68 [2025-02-19 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:19:05 - End Time 2025-02-19 05:19:05 [2025-02-19 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508212', 'tblTempUsageDetail_20' ) start [2025-02-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508212', 'tblTempUsageDetail_20' ) end [2025-02-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508212', 'tblTempVendorCDR_20' ) start [2025-02-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508212', 'tblTempVendorCDR_20' ) end [2025-02-19 05:19:17] Production.INFO: ProcessCDR(1,14508212,1,1,2) [2025-02-19 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508212', 'tblTempUsageDetail_20' ) start [2025-02-19 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508212', 'tblTempUsageDetail_20' ) end [2025-02-19 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:19:20] Production.INFO: ==9238== Releasing lock... [2025-02-19 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:20:06 [end_date_ymd] => 2025-02-19 05:20:06 [RateCDR] => 1 ) [2025-02-19 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:20:06' and `end` < '2025-02-19 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:20:17] Production.INFO: count ==68 [2025-02-19 05:20:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:20:06 - End Time 2025-02-19 05:20:06 [2025-02-19 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508218', 'tblTempUsageDetail_20' ) start [2025-02-19 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508218', 'tblTempUsageDetail_20' ) end [2025-02-19 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508218', 'tblTempVendorCDR_20' ) start [2025-02-19 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508218', 'tblTempVendorCDR_20' ) end [2025-02-19 05:20:17] Production.INFO: ProcessCDR(1,14508218,1,1,2) [2025-02-19 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508218', 'tblTempUsageDetail_20' ) start [2025-02-19 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508218', 'tblTempUsageDetail_20' ) end [2025-02-19 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:20:21] Production.INFO: ==9316== Releasing lock... [2025-02-19 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:21:06 [end_date_ymd] => 2025-02-19 05:21:06 [RateCDR] => 1 ) [2025-02-19 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:21:06' and `end` < '2025-02-19 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:21:17] Production.INFO: count ==68 [2025-02-19 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:21:06 - End Time 2025-02-19 05:21:06 [2025-02-19 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508223', 'tblTempUsageDetail_20' ) start [2025-02-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508223', 'tblTempUsageDetail_20' ) end [2025-02-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508223', 'tblTempVendorCDR_20' ) start [2025-02-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508223', 'tblTempVendorCDR_20' ) end [2025-02-19 05:21:17] Production.INFO: ProcessCDR(1,14508223,1,1,2) [2025-02-19 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508223', 'tblTempUsageDetail_20' ) start [2025-02-19 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508223', 'tblTempUsageDetail_20' ) end [2025-02-19 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:21:21] Production.INFO: ==9390== Releasing lock... [2025-02-19 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:22:05 [end_date_ymd] => 2025-02-19 05:22:05 [RateCDR] => 1 ) [2025-02-19 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:22:05' and `end` < '2025-02-19 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:22:16] Production.INFO: count ==69 [2025-02-19 05:22:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:22:05 - End Time 2025-02-19 05:22:05 [2025-02-19 05:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508228', 'tblTempUsageDetail_20' ) start [2025-02-19 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508228', 'tblTempUsageDetail_20' ) end [2025-02-19 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508228', 'tblTempVendorCDR_20' ) start [2025-02-19 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508228', 'tblTempVendorCDR_20' ) end [2025-02-19 05:22:16] Production.INFO: ProcessCDR(1,14508228,1,1,2) [2025-02-19 05:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508228', 'tblTempUsageDetail_20' ) start [2025-02-19 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508228', 'tblTempUsageDetail_20' ) end [2025-02-19 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:22:20] Production.INFO: ==9459== Releasing lock... [2025-02-19 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:23:05 [end_date_ymd] => 2025-02-19 05:23:05 [RateCDR] => 1 ) [2025-02-19 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:23:05' and `end` < '2025-02-19 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:23:17] Production.INFO: count ==69 [2025-02-19 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:23:05 - End Time 2025-02-19 05:23:05 [2025-02-19 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508233', 'tblTempUsageDetail_20' ) start [2025-02-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508233', 'tblTempUsageDetail_20' ) end [2025-02-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508233', 'tblTempVendorCDR_20' ) start [2025-02-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508233', 'tblTempVendorCDR_20' ) end [2025-02-19 05:23:17] Production.INFO: ProcessCDR(1,14508233,1,1,2) [2025-02-19 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508233', 'tblTempUsageDetail_20' ) start [2025-02-19 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508233', 'tblTempUsageDetail_20' ) end [2025-02-19 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:23:20] Production.INFO: ==9532== Releasing lock... [2025-02-19 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:24:06 [end_date_ymd] => 2025-02-19 05:24:06 [RateCDR] => 1 ) [2025-02-19 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:24:06' and `end` < '2025-02-19 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:24:18] Production.INFO: count ==69 [2025-02-19 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:24:06 - End Time 2025-02-19 05:24:06 [2025-02-19 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508238', 'tblTempUsageDetail_20' ) start [2025-02-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508238', 'tblTempUsageDetail_20' ) end [2025-02-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508238', 'tblTempVendorCDR_20' ) start [2025-02-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508238', 'tblTempVendorCDR_20' ) end [2025-02-19 05:24:18] Production.INFO: ProcessCDR(1,14508238,1,1,2) [2025-02-19 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508238', 'tblTempUsageDetail_20' ) start [2025-02-19 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508238', 'tblTempUsageDetail_20' ) end [2025-02-19 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:24:21] Production.INFO: ==9604== Releasing lock... [2025-02-19 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:25:05 [end_date_ymd] => 2025-02-19 05:25:05 [RateCDR] => 1 ) [2025-02-19 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:25:05' and `end` < '2025-02-19 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:25:17] Production.INFO: count ==69 [2025-02-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:25:05 - End Time 2025-02-19 05:25:05 [2025-02-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508243', 'tblTempUsageDetail_20' ) start [2025-02-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508243', 'tblTempUsageDetail_20' ) end [2025-02-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508243', 'tblTempVendorCDR_20' ) start [2025-02-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508243', 'tblTempVendorCDR_20' ) end [2025-02-19 05:25:17] Production.INFO: ProcessCDR(1,14508243,1,1,2) [2025-02-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508243', 'tblTempUsageDetail_20' ) start [2025-02-19 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508243', 'tblTempUsageDetail_20' ) end [2025-02-19 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:25:20] Production.INFO: ==9674== Releasing lock... [2025-02-19 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:26:05 [end_date_ymd] => 2025-02-19 05:26:05 [RateCDR] => 1 ) [2025-02-19 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:26:05' and `end` < '2025-02-19 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:26:16] Production.INFO: count ==69 [2025-02-19 05:26:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:26:05 - End Time 2025-02-19 05:26:05 [2025-02-19 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508248', 'tblTempUsageDetail_20' ) start [2025-02-19 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508248', 'tblTempUsageDetail_20' ) end [2025-02-19 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508248', 'tblTempVendorCDR_20' ) start [2025-02-19 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508248', 'tblTempVendorCDR_20' ) end [2025-02-19 05:26:16] Production.INFO: ProcessCDR(1,14508248,1,1,2) [2025-02-19 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508248', 'tblTempUsageDetail_20' ) start [2025-02-19 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508248', 'tblTempUsageDetail_20' ) end [2025-02-19 05:26:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:26:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:26:19] Production.INFO: ==9746== Releasing lock... [2025-02-19 05:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:26:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:27:05 [end_date_ymd] => 2025-02-19 05:27:05 [RateCDR] => 1 ) [2025-02-19 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:27:05' and `end` < '2025-02-19 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:27:17] Production.INFO: count ==69 [2025-02-19 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:27:05 - End Time 2025-02-19 05:27:05 [2025-02-19 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508253', 'tblTempUsageDetail_20' ) start [2025-02-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508253', 'tblTempUsageDetail_20' ) end [2025-02-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508253', 'tblTempVendorCDR_20' ) start [2025-02-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508253', 'tblTempVendorCDR_20' ) end [2025-02-19 05:27:17] Production.INFO: ProcessCDR(1,14508253,1,1,2) [2025-02-19 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508253', 'tblTempUsageDetail_20' ) start [2025-02-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508253', 'tblTempUsageDetail_20' ) end [2025-02-19 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:27:20] Production.INFO: ==9816== Releasing lock... [2025-02-19 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:28:06 [end_date_ymd] => 2025-02-19 05:28:06 [RateCDR] => 1 ) [2025-02-19 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:28:06' and `end` < '2025-02-19 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:28:17] Production.INFO: count ==69 [2025-02-19 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:28:06 - End Time 2025-02-19 05:28:06 [2025-02-19 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508258', 'tblTempUsageDetail_20' ) start [2025-02-19 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508258', 'tblTempUsageDetail_20' ) end [2025-02-19 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508258', 'tblTempVendorCDR_20' ) start [2025-02-19 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508258', 'tblTempVendorCDR_20' ) end [2025-02-19 05:28:17] Production.INFO: ProcessCDR(1,14508258,1,1,2) [2025-02-19 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508258', 'tblTempUsageDetail_20' ) start [2025-02-19 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508258', 'tblTempUsageDetail_20' ) end [2025-02-19 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:28:21] Production.INFO: ==9887== Releasing lock... [2025-02-19 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:29:05 [end_date_ymd] => 2025-02-19 05:29:05 [RateCDR] => 1 ) [2025-02-19 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:29:05' and `end` < '2025-02-19 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:29:16] Production.INFO: count ==69 [2025-02-19 05:29:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:29:05 - End Time 2025-02-19 05:29:05 [2025-02-19 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508263', 'tblTempUsageDetail_20' ) start [2025-02-19 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508263', 'tblTempUsageDetail_20' ) end [2025-02-19 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508263', 'tblTempVendorCDR_20' ) start [2025-02-19 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508263', 'tblTempVendorCDR_20' ) end [2025-02-19 05:29:16] Production.INFO: ProcessCDR(1,14508263,1,1,2) [2025-02-19 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508263', 'tblTempUsageDetail_20' ) start [2025-02-19 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508263', 'tblTempUsageDetail_20' ) end [2025-02-19 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:29:20] Production.INFO: ==9962== Releasing lock... [2025-02-19 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:30:06 [end_date_ymd] => 2025-02-19 05:30:06 [RateCDR] => 1 ) [2025-02-19 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:30:06' and `end` < '2025-02-19 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:30:18] Production.INFO: count ==66 [2025-02-19 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:30:06 - End Time 2025-02-19 05:30:06 [2025-02-19 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508268', 'tblTempUsageDetail_20' ) start [2025-02-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508268', 'tblTempUsageDetail_20' ) end [2025-02-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508268', 'tblTempVendorCDR_20' ) start [2025-02-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508268', 'tblTempVendorCDR_20' ) end [2025-02-19 05:30:18] Production.INFO: ProcessCDR(1,14508268,1,1,2) [2025-02-19 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508268', 'tblTempUsageDetail_20' ) start [2025-02-19 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508268', 'tblTempUsageDetail_20' ) end [2025-02-19 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:30:21] Production.INFO: ==10036== Releasing lock... [2025-02-19 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:31:05 [end_date_ymd] => 2025-02-19 05:31:05 [RateCDR] => 1 ) [2025-02-19 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:31:05' and `end` < '2025-02-19 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:31:17] Production.INFO: count ==66 [2025-02-19 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:31:05 - End Time 2025-02-19 05:31:05 [2025-02-19 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508274', 'tblTempUsageDetail_20' ) start [2025-02-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508274', 'tblTempUsageDetail_20' ) end [2025-02-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508274', 'tblTempVendorCDR_20' ) start [2025-02-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508274', 'tblTempVendorCDR_20' ) end [2025-02-19 05:31:17] Production.INFO: ProcessCDR(1,14508274,1,1,2) [2025-02-19 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508274', 'tblTempUsageDetail_20' ) start [2025-02-19 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508274', 'tblTempUsageDetail_20' ) end [2025-02-19 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:31:20] Production.INFO: ==10108== Releasing lock... [2025-02-19 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:31:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:32:06 [end_date_ymd] => 2025-02-19 05:32:06 [RateCDR] => 1 ) [2025-02-19 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:32:06' and `end` < '2025-02-19 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:32:18] Production.INFO: count ==63 [2025-02-19 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:32:06 - End Time 2025-02-19 05:32:06 [2025-02-19 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508279', 'tblTempUsageDetail_20' ) start [2025-02-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508279', 'tblTempUsageDetail_20' ) end [2025-02-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508279', 'tblTempVendorCDR_20' ) start [2025-02-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508279', 'tblTempVendorCDR_20' ) end [2025-02-19 05:32:18] Production.INFO: ProcessCDR(1,14508279,1,1,2) [2025-02-19 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508279', 'tblTempUsageDetail_20' ) start [2025-02-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508279', 'tblTempUsageDetail_20' ) end [2025-02-19 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:32:21] Production.INFO: ==10180== Releasing lock... [2025-02-19 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:33:05 [end_date_ymd] => 2025-02-19 05:33:05 [RateCDR] => 1 ) [2025-02-19 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:33:05' and `end` < '2025-02-19 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:33:16] Production.INFO: count ==62 [2025-02-19 05:33:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:33:05 - End Time 2025-02-19 05:33:05 [2025-02-19 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508284', 'tblTempUsageDetail_20' ) start [2025-02-19 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508284', 'tblTempUsageDetail_20' ) end [2025-02-19 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508284', 'tblTempVendorCDR_20' ) start [2025-02-19 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508284', 'tblTempVendorCDR_20' ) end [2025-02-19 05:33:16] Production.INFO: ProcessCDR(1,14508284,1,1,2) [2025-02-19 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508284', 'tblTempUsageDetail_20' ) start [2025-02-19 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508284', 'tblTempUsageDetail_20' ) end [2025-02-19 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:33:20] Production.INFO: ==10251== Releasing lock... [2025-02-19 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:33:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:34:06 [end_date_ymd] => 2025-02-19 05:34:06 [RateCDR] => 1 ) [2025-02-19 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:34:06' and `end` < '2025-02-19 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:34:18] Production.INFO: count ==62 [2025-02-19 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:34:06 - End Time 2025-02-19 05:34:06 [2025-02-19 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508289', 'tblTempUsageDetail_20' ) start [2025-02-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508289', 'tblTempUsageDetail_20' ) end [2025-02-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508289', 'tblTempVendorCDR_20' ) start [2025-02-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508289', 'tblTempVendorCDR_20' ) end [2025-02-19 05:34:18] Production.INFO: ProcessCDR(1,14508289,1,1,2) [2025-02-19 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508289', 'tblTempUsageDetail_20' ) start [2025-02-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508289', 'tblTempUsageDetail_20' ) end [2025-02-19 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:34:21] Production.INFO: ==10328== Releasing lock... [2025-02-19 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:35:05 [end_date_ymd] => 2025-02-19 05:35:05 [RateCDR] => 1 ) [2025-02-19 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:35:05' and `end` < '2025-02-19 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:35:17] Production.INFO: count ==62 [2025-02-19 05:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:35:05 - End Time 2025-02-19 05:35:05 [2025-02-19 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508294', 'tblTempUsageDetail_20' ) start [2025-02-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508294', 'tblTempUsageDetail_20' ) end [2025-02-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508294', 'tblTempVendorCDR_20' ) start [2025-02-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508294', 'tblTempVendorCDR_20' ) end [2025-02-19 05:35:17] Production.INFO: ProcessCDR(1,14508294,1,1,2) [2025-02-19 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508294', 'tblTempUsageDetail_20' ) start [2025-02-19 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508294', 'tblTempUsageDetail_20' ) end [2025-02-19 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:35:20] Production.INFO: ==10432== Releasing lock... [2025-02-19 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:35:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:36:06 [end_date_ymd] => 2025-02-19 05:36:06 [RateCDR] => 1 ) [2025-02-19 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:36:06' and `end` < '2025-02-19 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:36:17] Production.INFO: count ==62 [2025-02-19 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:36:06 - End Time 2025-02-19 05:36:06 [2025-02-19 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508299', 'tblTempUsageDetail_20' ) start [2025-02-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508299', 'tblTempUsageDetail_20' ) end [2025-02-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508299', 'tblTempVendorCDR_20' ) start [2025-02-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508299', 'tblTempVendorCDR_20' ) end [2025-02-19 05:36:17] Production.INFO: ProcessCDR(1,14508299,1,1,2) [2025-02-19 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508299', 'tblTempUsageDetail_20' ) start [2025-02-19 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508299', 'tblTempUsageDetail_20' ) end [2025-02-19 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:36:21] Production.INFO: ==10505== Releasing lock... [2025-02-19 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:37:05 [end_date_ymd] => 2025-02-19 05:37:05 [RateCDR] => 1 ) [2025-02-19 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:37:05' and `end` < '2025-02-19 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:37:17] Production.INFO: count ==58 [2025-02-19 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:37:05 - End Time 2025-02-19 05:37:05 [2025-02-19 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508304', 'tblTempUsageDetail_20' ) start [2025-02-19 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508304', 'tblTempUsageDetail_20' ) end [2025-02-19 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508304', 'tblTempVendorCDR_20' ) start [2025-02-19 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508304', 'tblTempVendorCDR_20' ) end [2025-02-19 05:37:17] Production.INFO: ProcessCDR(1,14508304,1,1,2) [2025-02-19 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508304', 'tblTempUsageDetail_20' ) start [2025-02-19 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508304', 'tblTempUsageDetail_20' ) end [2025-02-19 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:37:20] Production.INFO: ==10576== Releasing lock... [2025-02-19 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:37:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:38:05 [end_date_ymd] => 2025-02-19 05:38:05 [RateCDR] => 1 ) [2025-02-19 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:38:05' and `end` < '2025-02-19 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:38:17] Production.INFO: count ==58 [2025-02-19 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:38:05 - End Time 2025-02-19 05:38:05 [2025-02-19 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508309', 'tblTempUsageDetail_20' ) start [2025-02-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508309', 'tblTempUsageDetail_20' ) end [2025-02-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508309', 'tblTempVendorCDR_20' ) start [2025-02-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508309', 'tblTempVendorCDR_20' ) end [2025-02-19 05:38:17] Production.INFO: ProcessCDR(1,14508309,1,1,2) [2025-02-19 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508309', 'tblTempUsageDetail_20' ) start [2025-02-19 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508309', 'tblTempUsageDetail_20' ) end [2025-02-19 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:38:20] Production.INFO: ==10648== Releasing lock... [2025-02-19 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:38:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:39:05 [end_date_ymd] => 2025-02-19 05:39:05 [RateCDR] => 1 ) [2025-02-19 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:39:05' and `end` < '2025-02-19 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:39:17] Production.INFO: count ==58 [2025-02-19 05:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:39:05 - End Time 2025-02-19 05:39:05 [2025-02-19 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508314', 'tblTempUsageDetail_20' ) start [2025-02-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508314', 'tblTempUsageDetail_20' ) end [2025-02-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508314', 'tblTempVendorCDR_20' ) start [2025-02-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508314', 'tblTempVendorCDR_20' ) end [2025-02-19 05:39:17] Production.INFO: ProcessCDR(1,14508314,1,1,2) [2025-02-19 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508314', 'tblTempUsageDetail_20' ) start [2025-02-19 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508314', 'tblTempUsageDetail_20' ) end [2025-02-19 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:39:20] Production.INFO: ==10724== Releasing lock... [2025-02-19 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:39:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:40:06 [end_date_ymd] => 2025-02-19 05:40:06 [RateCDR] => 1 ) [2025-02-19 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:40:06' and `end` < '2025-02-19 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:40:17] Production.INFO: count ==49 [2025-02-19 05:40:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:40:06 - End Time 2025-02-19 05:40:06 [2025-02-19 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508320', 'tblTempUsageDetail_20' ) start [2025-02-19 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508320', 'tblTempUsageDetail_20' ) end [2025-02-19 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508320', 'tblTempVendorCDR_20' ) start [2025-02-19 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508320', 'tblTempVendorCDR_20' ) end [2025-02-19 05:40:17] Production.INFO: ProcessCDR(1,14508320,1,1,2) [2025-02-19 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508320', 'tblTempUsageDetail_20' ) start [2025-02-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508320', 'tblTempUsageDetail_20' ) end [2025-02-19 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:40:21] Production.INFO: ==10799== Releasing lock... [2025-02-19 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:41:05 [end_date_ymd] => 2025-02-19 05:41:05 [RateCDR] => 1 ) [2025-02-19 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:41:05' and `end` < '2025-02-19 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:41:17] Production.INFO: count ==45 [2025-02-19 05:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:41:05 - End Time 2025-02-19 05:41:05 [2025-02-19 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508325', 'tblTempUsageDetail_20' ) start [2025-02-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508325', 'tblTempUsageDetail_20' ) end [2025-02-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508325', 'tblTempVendorCDR_20' ) start [2025-02-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508325', 'tblTempVendorCDR_20' ) end [2025-02-19 05:41:17] Production.INFO: ProcessCDR(1,14508325,1,1,2) [2025-02-19 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508325', 'tblTempUsageDetail_20' ) start [2025-02-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508325', 'tblTempUsageDetail_20' ) end [2025-02-19 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:41:20] Production.INFO: ==10875== Releasing lock... [2025-02-19 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:41:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:42:05 [end_date_ymd] => 2025-02-19 05:42:05 [RateCDR] => 1 ) [2025-02-19 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:42:05' and `end` < '2025-02-19 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:42:17] Production.INFO: count ==45 [2025-02-19 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:42:05 - End Time 2025-02-19 05:42:05 [2025-02-19 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508330', 'tblTempUsageDetail_20' ) start [2025-02-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508330', 'tblTempUsageDetail_20' ) end [2025-02-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508330', 'tblTempVendorCDR_20' ) start [2025-02-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508330', 'tblTempVendorCDR_20' ) end [2025-02-19 05:42:17] Production.INFO: ProcessCDR(1,14508330,1,1,2) [2025-02-19 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508330', 'tblTempUsageDetail_20' ) start [2025-02-19 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508330', 'tblTempUsageDetail_20' ) end [2025-02-19 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:42:20] Production.INFO: ==10948== Releasing lock... [2025-02-19 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:42:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:43:05 [end_date_ymd] => 2025-02-19 05:43:05 [RateCDR] => 1 ) [2025-02-19 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:43:05' and `end` < '2025-02-19 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:43:17] Production.INFO: count ==45 [2025-02-19 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:43:05 - End Time 2025-02-19 05:43:05 [2025-02-19 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508335', 'tblTempUsageDetail_20' ) start [2025-02-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508335', 'tblTempUsageDetail_20' ) end [2025-02-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508335', 'tblTempVendorCDR_20' ) start [2025-02-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508335', 'tblTempVendorCDR_20' ) end [2025-02-19 05:43:17] Production.INFO: ProcessCDR(1,14508335,1,1,2) [2025-02-19 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508335', 'tblTempUsageDetail_20' ) start [2025-02-19 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508335', 'tblTempUsageDetail_20' ) end [2025-02-19 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:43:20] Production.INFO: ==11018== Releasing lock... [2025-02-19 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:43:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:44:06 [end_date_ymd] => 2025-02-19 05:44:06 [RateCDR] => 1 ) [2025-02-19 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:44:06' and `end` < '2025-02-19 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:44:18] Production.INFO: count ==45 [2025-02-19 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:44:06 - End Time 2025-02-19 05:44:06 [2025-02-19 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508340', 'tblTempUsageDetail_20' ) start [2025-02-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508340', 'tblTempUsageDetail_20' ) end [2025-02-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508340', 'tblTempVendorCDR_20' ) start [2025-02-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508340', 'tblTempVendorCDR_20' ) end [2025-02-19 05:44:18] Production.INFO: ProcessCDR(1,14508340,1,1,2) [2025-02-19 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508340', 'tblTempUsageDetail_20' ) start [2025-02-19 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508340', 'tblTempUsageDetail_20' ) end [2025-02-19 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:44:21] Production.INFO: ==11089== Releasing lock... [2025-02-19 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:45:05 [end_date_ymd] => 2025-02-19 05:45:05 [RateCDR] => 1 ) [2025-02-19 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:45:05' and `end` < '2025-02-19 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:45:16] Production.INFO: count ==45 [2025-02-19 05:45:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:45:05 - End Time 2025-02-19 05:45:05 [2025-02-19 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508345', 'tblTempUsageDetail_20' ) start [2025-02-19 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508345', 'tblTempUsageDetail_20' ) end [2025-02-19 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508345', 'tblTempVendorCDR_20' ) start [2025-02-19 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508345', 'tblTempVendorCDR_20' ) end [2025-02-19 05:45:16] Production.INFO: ProcessCDR(1,14508345,1,1,2) [2025-02-19 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508345', 'tblTempUsageDetail_20' ) start [2025-02-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508345', 'tblTempUsageDetail_20' ) end [2025-02-19 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:45:20] Production.INFO: ==11159== Releasing lock... [2025-02-19 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:45:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:46:05 [end_date_ymd] => 2025-02-19 05:46:05 [RateCDR] => 1 ) [2025-02-19 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:46:05' and `end` < '2025-02-19 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:46:17] Production.INFO: count ==45 [2025-02-19 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:46:05 - End Time 2025-02-19 05:46:05 [2025-02-19 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508350', 'tblTempUsageDetail_20' ) start [2025-02-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508350', 'tblTempUsageDetail_20' ) end [2025-02-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508350', 'tblTempVendorCDR_20' ) start [2025-02-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508350', 'tblTempVendorCDR_20' ) end [2025-02-19 05:46:17] Production.INFO: ProcessCDR(1,14508350,1,1,2) [2025-02-19 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508350', 'tblTempUsageDetail_20' ) start [2025-02-19 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508350', 'tblTempUsageDetail_20' ) end [2025-02-19 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:46:20] Production.INFO: ==11229== Releasing lock... [2025-02-19 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:46:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:47:05 [end_date_ymd] => 2025-02-19 05:47:05 [RateCDR] => 1 ) [2025-02-19 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:47:05' and `end` < '2025-02-19 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:47:16] Production.INFO: count ==45 [2025-02-19 05:47:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:47:05 - End Time 2025-02-19 05:47:05 [2025-02-19 05:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508355', 'tblTempUsageDetail_20' ) start [2025-02-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508355', 'tblTempUsageDetail_20' ) end [2025-02-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508355', 'tblTempVendorCDR_20' ) start [2025-02-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508355', 'tblTempVendorCDR_20' ) end [2025-02-19 05:47:16] Production.INFO: ProcessCDR(1,14508355,1,1,2) [2025-02-19 05:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508355', 'tblTempUsageDetail_20' ) start [2025-02-19 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508355', 'tblTempUsageDetail_20' ) end [2025-02-19 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:47:20] Production.INFO: ==11307== Releasing lock... [2025-02-19 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:48:05 [end_date_ymd] => 2025-02-19 05:48:05 [RateCDR] => 1 ) [2025-02-19 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:48:05' and `end` < '2025-02-19 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:48:17] Production.INFO: count ==45 [2025-02-19 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:48:05 - End Time 2025-02-19 05:48:05 [2025-02-19 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508360', 'tblTempUsageDetail_20' ) start [2025-02-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508360', 'tblTempUsageDetail_20' ) end [2025-02-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508360', 'tblTempVendorCDR_20' ) start [2025-02-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508360', 'tblTempVendorCDR_20' ) end [2025-02-19 05:48:17] Production.INFO: ProcessCDR(1,14508360,1,1,2) [2025-02-19 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508360', 'tblTempUsageDetail_20' ) start [2025-02-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508360', 'tblTempUsageDetail_20' ) end [2025-02-19 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:48:20] Production.INFO: ==11382== Releasing lock... [2025-02-19 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:48:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:49:05 [end_date_ymd] => 2025-02-19 05:49:05 [RateCDR] => 1 ) [2025-02-19 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:49:05' and `end` < '2025-02-19 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:49:17] Production.INFO: count ==45 [2025-02-19 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:49:05 - End Time 2025-02-19 05:49:05 [2025-02-19 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508365', 'tblTempUsageDetail_20' ) start [2025-02-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508365', 'tblTempUsageDetail_20' ) end [2025-02-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508365', 'tblTempVendorCDR_20' ) start [2025-02-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508365', 'tblTempVendorCDR_20' ) end [2025-02-19 05:49:17] Production.INFO: ProcessCDR(1,14508365,1,1,2) [2025-02-19 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508365', 'tblTempUsageDetail_20' ) start [2025-02-19 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508365', 'tblTempUsageDetail_20' ) end [2025-02-19 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:49:20] Production.INFO: ==11452== Releasing lock... [2025-02-19 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:49:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:50:06 [end_date_ymd] => 2025-02-19 05:50:06 [RateCDR] => 1 ) [2025-02-19 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:50:06' and `end` < '2025-02-19 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:50:18] Production.INFO: count ==45 [2025-02-19 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-19 02:50:06 - End Time 2025-02-19 05:50:06 [2025-02-19 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508371', 'tblTempUsageDetail_20' ) start [2025-02-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508371', 'tblTempUsageDetail_20' ) end [2025-02-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508371', 'tblTempVendorCDR_20' ) start [2025-02-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508371', 'tblTempVendorCDR_20' ) end [2025-02-19 05:50:18] Production.INFO: ProcessCDR(1,14508371,1,1,2) [2025-02-19 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508371', 'tblTempUsageDetail_20' ) start [2025-02-19 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508371', 'tblTempUsageDetail_20' ) end [2025-02-19 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:50:21] Production.INFO: ==11566== Releasing lock... [2025-02-19 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:51:05 [end_date_ymd] => 2025-02-19 05:51:05 [RateCDR] => 1 ) [2025-02-19 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:51:05' and `end` < '2025-02-19 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:51:17] Production.INFO: count ==45 [2025-02-19 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:51:05 - End Time 2025-02-19 05:51:05 [2025-02-19 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508376', 'tblTempUsageDetail_20' ) start [2025-02-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508376', 'tblTempUsageDetail_20' ) end [2025-02-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508376', 'tblTempVendorCDR_20' ) start [2025-02-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508376', 'tblTempVendorCDR_20' ) end [2025-02-19 05:51:17] Production.INFO: ProcessCDR(1,14508376,1,1,2) [2025-02-19 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508376', 'tblTempUsageDetail_20' ) start [2025-02-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508376', 'tblTempUsageDetail_20' ) end [2025-02-19 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:51:20] Production.INFO: ==11637== Releasing lock... [2025-02-19 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:51:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:52:05 [end_date_ymd] => 2025-02-19 05:52:05 [RateCDR] => 1 ) [2025-02-19 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:52:05' and `end` < '2025-02-19 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:52:17] Production.INFO: count ==45 [2025-02-19 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:52:05 - End Time 2025-02-19 05:52:05 [2025-02-19 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508381', 'tblTempUsageDetail_20' ) start [2025-02-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508381', 'tblTempUsageDetail_20' ) end [2025-02-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508381', 'tblTempVendorCDR_20' ) start [2025-02-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508381', 'tblTempVendorCDR_20' ) end [2025-02-19 05:52:17] Production.INFO: ProcessCDR(1,14508381,1,1,2) [2025-02-19 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508381', 'tblTempUsageDetail_20' ) start [2025-02-19 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508381', 'tblTempUsageDetail_20' ) end [2025-02-19 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:52:20] Production.INFO: ==11709== Releasing lock... [2025-02-19 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:52:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:53:05 [end_date_ymd] => 2025-02-19 05:53:05 [RateCDR] => 1 ) [2025-02-19 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:53:05' and `end` < '2025-02-19 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:53:17] Production.INFO: count ==45 [2025-02-19 05:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:53:05 - End Time 2025-02-19 05:53:05 [2025-02-19 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508386', 'tblTempUsageDetail_20' ) start [2025-02-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508386', 'tblTempUsageDetail_20' ) end [2025-02-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508386', 'tblTempVendorCDR_20' ) start [2025-02-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508386', 'tblTempVendorCDR_20' ) end [2025-02-19 05:53:17] Production.INFO: ProcessCDR(1,14508386,1,1,2) [2025-02-19 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508386', 'tblTempUsageDetail_20' ) start [2025-02-19 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508386', 'tblTempUsageDetail_20' ) end [2025-02-19 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:53:20] Production.INFO: ==11780== Releasing lock... [2025-02-19 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:53:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:54:05 [end_date_ymd] => 2025-02-19 05:54:05 [RateCDR] => 1 ) [2025-02-19 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:54:05' and `end` < '2025-02-19 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:54:17] Production.INFO: count ==45 [2025-02-19 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:54:05 - End Time 2025-02-19 05:54:05 [2025-02-19 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508391', 'tblTempUsageDetail_20' ) start [2025-02-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508391', 'tblTempUsageDetail_20' ) end [2025-02-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508391', 'tblTempVendorCDR_20' ) start [2025-02-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508391', 'tblTempVendorCDR_20' ) end [2025-02-19 05:54:17] Production.INFO: ProcessCDR(1,14508391,1,1,2) [2025-02-19 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508391', 'tblTempUsageDetail_20' ) start [2025-02-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508391', 'tblTempUsageDetail_20' ) end [2025-02-19 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:54:20] Production.INFO: ==11854== Releasing lock... [2025-02-19 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:54:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:55:05 [end_date_ymd] => 2025-02-19 05:55:05 [RateCDR] => 1 ) [2025-02-19 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:55:05' and `end` < '2025-02-19 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:55:16] Production.INFO: count ==46 [2025-02-19 05:55:16] Production.ERROR: pbx CDR StartTime 2025-02-19 02:55:05 - End Time 2025-02-19 05:55:05 [2025-02-19 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508396', 'tblTempUsageDetail_20' ) start [2025-02-19 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508396', 'tblTempUsageDetail_20' ) end [2025-02-19 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508396', 'tblTempVendorCDR_20' ) start [2025-02-19 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508396', 'tblTempVendorCDR_20' ) end [2025-02-19 05:55:16] Production.INFO: ProcessCDR(1,14508396,1,1,2) [2025-02-19 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508396', 'tblTempUsageDetail_20' ) start [2025-02-19 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508396', 'tblTempUsageDetail_20' ) end [2025-02-19 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:55:21] Production.INFO: ==11925== Releasing lock... [2025-02-19 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:56:05 [end_date_ymd] => 2025-02-19 05:56:05 [RateCDR] => 1 ) [2025-02-19 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:56:05' and `end` < '2025-02-19 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:56:17] Production.INFO: count ==48 [2025-02-19 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:56:05 - End Time 2025-02-19 05:56:05 [2025-02-19 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508401', 'tblTempUsageDetail_20' ) start [2025-02-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508401', 'tblTempUsageDetail_20' ) end [2025-02-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508401', 'tblTempVendorCDR_20' ) start [2025-02-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508401', 'tblTempVendorCDR_20' ) end [2025-02-19 05:56:17] Production.INFO: ProcessCDR(1,14508401,1,1,2) [2025-02-19 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508401', 'tblTempUsageDetail_20' ) start [2025-02-19 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508401', 'tblTempUsageDetail_20' ) end [2025-02-19 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:56:21] Production.INFO: ==11996== Releasing lock... [2025-02-19 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:57:06 [end_date_ymd] => 2025-02-19 05:57:06 [RateCDR] => 1 ) [2025-02-19 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:57:06' and `end` < '2025-02-19 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:57:17] Production.INFO: count ==50 [2025-02-19 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:57:06 - End Time 2025-02-19 05:57:06 [2025-02-19 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508406', 'tblTempUsageDetail_20' ) start [2025-02-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508406', 'tblTempUsageDetail_20' ) end [2025-02-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508406', 'tblTempVendorCDR_20' ) start [2025-02-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508406', 'tblTempVendorCDR_20' ) end [2025-02-19 05:57:17] Production.INFO: ProcessCDR(1,14508406,1,1,2) [2025-02-19 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508406', 'tblTempUsageDetail_20' ) start [2025-02-19 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508406', 'tblTempUsageDetail_20' ) end [2025-02-19 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:57:22] Production.INFO: ==12073== Releasing lock... [2025-02-19 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:57:22] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:58:05 [end_date_ymd] => 2025-02-19 05:58:05 [RateCDR] => 1 ) [2025-02-19 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:58:05' and `end` < '2025-02-19 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:58:17] Production.INFO: count ==50 [2025-02-19 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:58:05 - End Time 2025-02-19 05:58:05 [2025-02-19 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508411', 'tblTempUsageDetail_20' ) start [2025-02-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508411', 'tblTempUsageDetail_20' ) end [2025-02-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508411', 'tblTempVendorCDR_20' ) start [2025-02-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508411', 'tblTempVendorCDR_20' ) end [2025-02-19 05:58:17] Production.INFO: ProcessCDR(1,14508411,1,1,2) [2025-02-19 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508411', 'tblTempUsageDetail_20' ) start [2025-02-19 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508411', 'tblTempUsageDetail_20' ) end [2025-02-19 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:58:20] Production.INFO: ==12148== Releasing lock... [2025-02-19 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:58:20] Production.INFO: 28 MB #Memory Used# [2025-02-19 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 02:59:06 [end_date_ymd] => 2025-02-19 05:59:06 [RateCDR] => 1 ) [2025-02-19 05:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 02:59:06' and `end` < '2025-02-19 05:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 05:59:17] Production.INFO: count ==51 [2025-02-19 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 02:59:06 - End Time 2025-02-19 05:59:06 [2025-02-19 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508416', 'tblTempUsageDetail_20' ) start [2025-02-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508416', 'tblTempUsageDetail_20' ) end [2025-02-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508416', 'tblTempVendorCDR_20' ) start [2025-02-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508416', 'tblTempVendorCDR_20' ) end [2025-02-19 05:59:17] Production.INFO: ProcessCDR(1,14508416,1,1,2) [2025-02-19 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508416', 'tblTempUsageDetail_20' ) start [2025-02-19 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508416', 'tblTempUsageDetail_20' ) end [2025-02-19 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 05:59:22] Production.INFO: ==12219== Releasing lock... [2025-02-19 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 05:59:22] Production.INFO: 28 MB #Memory Used# [2025-02-19 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:00:06 [end_date_ymd] => 2025-02-19 06:00:06 [RateCDR] => 1 ) [2025-02-19 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:00:06' and `end` < '2025-02-19 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:00:18] Production.INFO: count ==62 [2025-02-19 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 03:00:06 - End Time 2025-02-19 06:00:06 [2025-02-19 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508422', 'tblTempUsageDetail_20' ) start [2025-02-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508422', 'tblTempUsageDetail_20' ) end [2025-02-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508422', 'tblTempVendorCDR_20' ) start [2025-02-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508422', 'tblTempVendorCDR_20' ) end [2025-02-19 06:00:18] Production.INFO: ProcessCDR(1,14508422,1,1,2) [2025-02-19 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508422', 'tblTempUsageDetail_20' ) start [2025-02-19 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508422', 'tblTempUsageDetail_20' ) end [2025-02-19 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:00:23] Production.INFO: ==12295== Releasing lock... [2025-02-19 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:01:05 [end_date_ymd] => 2025-02-19 06:01:05 [RateCDR] => 1 ) [2025-02-19 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:01:05' and `end` < '2025-02-19 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:01:17] Production.INFO: count ==62 [2025-02-19 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:01:05 - End Time 2025-02-19 06:01:05 [2025-02-19 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508427', 'tblTempUsageDetail_20' ) start [2025-02-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508427', 'tblTempUsageDetail_20' ) end [2025-02-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508427', 'tblTempVendorCDR_20' ) start [2025-02-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508427', 'tblTempVendorCDR_20' ) end [2025-02-19 06:01:17] Production.INFO: ProcessCDR(1,14508427,1,1,2) [2025-02-19 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508427', 'tblTempUsageDetail_20' ) start [2025-02-19 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508427', 'tblTempUsageDetail_20' ) end [2025-02-19 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:01:20] Production.INFO: ==12386== Releasing lock... [2025-02-19 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:02:06 [end_date_ymd] => 2025-02-19 06:02:06 [RateCDR] => 1 ) [2025-02-19 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:02:06' and `end` < '2025-02-19 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:02:17] Production.INFO: count ==63 [2025-02-19 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:02:06 - End Time 2025-02-19 06:02:06 [2025-02-19 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508432', 'tblTempUsageDetail_20' ) start [2025-02-19 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508432', 'tblTempUsageDetail_20' ) end [2025-02-19 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508432', 'tblTempVendorCDR_20' ) start [2025-02-19 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508432', 'tblTempVendorCDR_20' ) end [2025-02-19 06:02:17] Production.INFO: ProcessCDR(1,14508432,1,1,2) [2025-02-19 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508432', 'tblTempUsageDetail_20' ) start [2025-02-19 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508432', 'tblTempUsageDetail_20' ) end [2025-02-19 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:02:22] Production.INFO: ==12456== Releasing lock... [2025-02-19 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:03:05 [end_date_ymd] => 2025-02-19 06:03:05 [RateCDR] => 1 ) [2025-02-19 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:03:05' and `end` < '2025-02-19 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:03:17] Production.INFO: count ==63 [2025-02-19 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:03:05 - End Time 2025-02-19 06:03:05 [2025-02-19 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508437', 'tblTempUsageDetail_20' ) start [2025-02-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508437', 'tblTempUsageDetail_20' ) end [2025-02-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508437', 'tblTempVendorCDR_20' ) start [2025-02-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508437', 'tblTempVendorCDR_20' ) end [2025-02-19 06:03:17] Production.INFO: ProcessCDR(1,14508437,1,1,2) [2025-02-19 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508437', 'tblTempUsageDetail_20' ) start [2025-02-19 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508437', 'tblTempUsageDetail_20' ) end [2025-02-19 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:03:20] Production.INFO: ==12528== Releasing lock... [2025-02-19 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:04:05 [end_date_ymd] => 2025-02-19 06:04:05 [RateCDR] => 1 ) [2025-02-19 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:04:05' and `end` < '2025-02-19 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:04:16] Production.INFO: count ==64 [2025-02-19 06:04:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:04:05 - End Time 2025-02-19 06:04:05 [2025-02-19 06:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508442', 'tblTempUsageDetail_20' ) start [2025-02-19 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508442', 'tblTempUsageDetail_20' ) end [2025-02-19 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508442', 'tblTempVendorCDR_20' ) start [2025-02-19 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508442', 'tblTempVendorCDR_20' ) end [2025-02-19 06:04:17] Production.INFO: ProcessCDR(1,14508442,1,1,2) [2025-02-19 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508442', 'tblTempUsageDetail_20' ) start [2025-02-19 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508442', 'tblTempUsageDetail_20' ) end [2025-02-19 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:04:21] Production.INFO: ==12599== Releasing lock... [2025-02-19 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:05:05 [end_date_ymd] => 2025-02-19 06:05:05 [RateCDR] => 1 ) [2025-02-19 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:05:05' and `end` < '2025-02-19 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:05:17] Production.INFO: count ==60 [2025-02-19 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:05:05 - End Time 2025-02-19 06:05:05 [2025-02-19 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508447', 'tblTempUsageDetail_20' ) start [2025-02-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508447', 'tblTempUsageDetail_20' ) end [2025-02-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508447', 'tblTempVendorCDR_20' ) start [2025-02-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508447', 'tblTempVendorCDR_20' ) end [2025-02-19 06:05:17] Production.INFO: ProcessCDR(1,14508447,1,1,2) [2025-02-19 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508447', 'tblTempUsageDetail_20' ) start [2025-02-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508447', 'tblTempUsageDetail_20' ) end [2025-02-19 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:05:20] Production.INFO: ==12710== Releasing lock... [2025-02-19 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:06:05 [end_date_ymd] => 2025-02-19 06:06:05 [RateCDR] => 1 ) [2025-02-19 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:06:05' and `end` < '2025-02-19 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:06:16] Production.INFO: count ==61 [2025-02-19 06:06:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:06:05 - End Time 2025-02-19 06:06:05 [2025-02-19 06:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508452', 'tblTempUsageDetail_20' ) start [2025-02-19 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508452', 'tblTempUsageDetail_20' ) end [2025-02-19 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508452', 'tblTempVendorCDR_20' ) start [2025-02-19 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508452', 'tblTempVendorCDR_20' ) end [2025-02-19 06:06:17] Production.INFO: ProcessCDR(1,14508452,1,1,2) [2025-02-19 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508452', 'tblTempUsageDetail_20' ) start [2025-02-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508452', 'tblTempUsageDetail_20' ) end [2025-02-19 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:06:21] Production.INFO: ==12779== Releasing lock... [2025-02-19 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:07:05 [end_date_ymd] => 2025-02-19 06:07:05 [RateCDR] => 1 ) [2025-02-19 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:07:05' and `end` < '2025-02-19 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:07:17] Production.INFO: count ==61 [2025-02-19 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:07:05 - End Time 2025-02-19 06:07:05 [2025-02-19 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508457', 'tblTempUsageDetail_20' ) start [2025-02-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508457', 'tblTempUsageDetail_20' ) end [2025-02-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508457', 'tblTempVendorCDR_20' ) start [2025-02-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508457', 'tblTempVendorCDR_20' ) end [2025-02-19 06:07:17] Production.INFO: ProcessCDR(1,14508457,1,1,2) [2025-02-19 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508457', 'tblTempUsageDetail_20' ) start [2025-02-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508457', 'tblTempUsageDetail_20' ) end [2025-02-19 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:07:20] Production.INFO: ==12849== Releasing lock... [2025-02-19 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:08:04 [end_date_ymd] => 2025-02-19 06:08:04 [RateCDR] => 1 ) [2025-02-19 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:08:04' and `end` < '2025-02-19 06:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:08:16] Production.INFO: count ==61 [2025-02-19 06:08:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:08:04 - End Time 2025-02-19 06:08:04 [2025-02-19 06:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508462', 'tblTempUsageDetail_20' ) start [2025-02-19 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508462', 'tblTempUsageDetail_20' ) end [2025-02-19 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508462', 'tblTempVendorCDR_20' ) start [2025-02-19 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508462', 'tblTempVendorCDR_20' ) end [2025-02-19 06:08:16] Production.INFO: ProcessCDR(1,14508462,1,1,2) [2025-02-19 06:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508462', 'tblTempUsageDetail_20' ) start [2025-02-19 06:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508462', 'tblTempUsageDetail_20' ) end [2025-02-19 06:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:08:19] Production.INFO: ==12920== Releasing lock... [2025-02-19 06:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:08:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:09:05 [end_date_ymd] => 2025-02-19 06:09:05 [RateCDR] => 1 ) [2025-02-19 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:09:05' and `end` < '2025-02-19 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:09:17] Production.INFO: count ==61 [2025-02-19 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:09:05 - End Time 2025-02-19 06:09:05 [2025-02-19 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508467', 'tblTempUsageDetail_20' ) start [2025-02-19 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508467', 'tblTempUsageDetail_20' ) end [2025-02-19 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508467', 'tblTempVendorCDR_20' ) start [2025-02-19 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508467', 'tblTempVendorCDR_20' ) end [2025-02-19 06:09:17] Production.INFO: ProcessCDR(1,14508467,1,1,2) [2025-02-19 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508467', 'tblTempUsageDetail_20' ) start [2025-02-19 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508467', 'tblTempUsageDetail_20' ) end [2025-02-19 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:09:20] Production.INFO: ==12990== Releasing lock... [2025-02-19 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:10:06 [end_date_ymd] => 2025-02-19 06:10:06 [RateCDR] => 1 ) [2025-02-19 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:10:06' and `end` < '2025-02-19 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:10:17] Production.INFO: count ==53 [2025-02-19 06:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:10:06 - End Time 2025-02-19 06:10:06 [2025-02-19 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508472', 'tblTempUsageDetail_20' ) start [2025-02-19 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508472', 'tblTempUsageDetail_20' ) end [2025-02-19 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508472', 'tblTempVendorCDR_20' ) start [2025-02-19 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508472', 'tblTempVendorCDR_20' ) end [2025-02-19 06:10:17] Production.INFO: ProcessCDR(1,14508472,1,1,2) [2025-02-19 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508472', 'tblTempUsageDetail_20' ) start [2025-02-19 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508472', 'tblTempUsageDetail_20' ) end [2025-02-19 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:10:21] Production.INFO: ==13061== Releasing lock... [2025-02-19 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:11:06 [end_date_ymd] => 2025-02-19 06:11:06 [RateCDR] => 1 ) [2025-02-19 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:11:06' and `end` < '2025-02-19 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:11:17] Production.INFO: count ==53 [2025-02-19 06:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:11:06 - End Time 2025-02-19 06:11:06 [2025-02-19 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508478', 'tblTempUsageDetail_20' ) start [2025-02-19 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508478', 'tblTempUsageDetail_20' ) end [2025-02-19 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508478', 'tblTempVendorCDR_20' ) start [2025-02-19 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508478', 'tblTempVendorCDR_20' ) end [2025-02-19 06:11:17] Production.INFO: ProcessCDR(1,14508478,1,1,2) [2025-02-19 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508478', 'tblTempUsageDetail_20' ) start [2025-02-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508478', 'tblTempUsageDetail_20' ) end [2025-02-19 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:11:21] Production.INFO: ==13135== Releasing lock... [2025-02-19 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:12:05 [end_date_ymd] => 2025-02-19 06:12:05 [RateCDR] => 1 ) [2025-02-19 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:12:05' and `end` < '2025-02-19 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:12:16] Production.INFO: count ==53 [2025-02-19 06:12:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:12:05 - End Time 2025-02-19 06:12:05 [2025-02-19 06:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508483', 'tblTempUsageDetail_20' ) start [2025-02-19 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508483', 'tblTempUsageDetail_20' ) end [2025-02-19 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508483', 'tblTempVendorCDR_20' ) start [2025-02-19 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508483', 'tblTempVendorCDR_20' ) end [2025-02-19 06:12:16] Production.INFO: ProcessCDR(1,14508483,1,1,2) [2025-02-19 06:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508483', 'tblTempUsageDetail_20' ) start [2025-02-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508483', 'tblTempUsageDetail_20' ) end [2025-02-19 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:12:20] Production.INFO: ==13205== Releasing lock... [2025-02-19 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:13:05 [end_date_ymd] => 2025-02-19 06:13:05 [RateCDR] => 1 ) [2025-02-19 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:13:05' and `end` < '2025-02-19 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:13:17] Production.INFO: count ==53 [2025-02-19 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:13:05 - End Time 2025-02-19 06:13:05 [2025-02-19 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508488', 'tblTempUsageDetail_20' ) start [2025-02-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508488', 'tblTempUsageDetail_20' ) end [2025-02-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508488', 'tblTempVendorCDR_20' ) start [2025-02-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508488', 'tblTempVendorCDR_20' ) end [2025-02-19 06:13:17] Production.INFO: ProcessCDR(1,14508488,1,1,2) [2025-02-19 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508488', 'tblTempUsageDetail_20' ) start [2025-02-19 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508488', 'tblTempUsageDetail_20' ) end [2025-02-19 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:13:20] Production.INFO: ==13276== Releasing lock... [2025-02-19 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:14:04 [end_date_ymd] => 2025-02-19 06:14:04 [RateCDR] => 1 ) [2025-02-19 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:14:04' and `end` < '2025-02-19 06:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:14:16] Production.INFO: count ==53 [2025-02-19 06:14:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:14:04 - End Time 2025-02-19 06:14:04 [2025-02-19 06:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508493', 'tblTempUsageDetail_20' ) start [2025-02-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508493', 'tblTempUsageDetail_20' ) end [2025-02-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508493', 'tblTempVendorCDR_20' ) start [2025-02-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508493', 'tblTempVendorCDR_20' ) end [2025-02-19 06:14:16] Production.INFO: ProcessCDR(1,14508493,1,1,2) [2025-02-19 06:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508493', 'tblTempUsageDetail_20' ) start [2025-02-19 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508493', 'tblTempUsageDetail_20' ) end [2025-02-19 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:14:20] Production.INFO: ==13347== Releasing lock... [2025-02-19 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:15:05 [end_date_ymd] => 2025-02-19 06:15:05 [RateCDR] => 1 ) [2025-02-19 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:15:05' and `end` < '2025-02-19 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:15:17] Production.INFO: count ==53 [2025-02-19 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:15:05 - End Time 2025-02-19 06:15:05 [2025-02-19 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508498', 'tblTempUsageDetail_20' ) start [2025-02-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508498', 'tblTempUsageDetail_20' ) end [2025-02-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508498', 'tblTempVendorCDR_20' ) start [2025-02-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508498', 'tblTempVendorCDR_20' ) end [2025-02-19 06:15:17] Production.INFO: ProcessCDR(1,14508498,1,1,2) [2025-02-19 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508498', 'tblTempUsageDetail_20' ) start [2025-02-19 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508498', 'tblTempUsageDetail_20' ) end [2025-02-19 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:15:20] Production.INFO: ==13421== Releasing lock... [2025-02-19 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:16:05 [end_date_ymd] => 2025-02-19 06:16:05 [RateCDR] => 1 ) [2025-02-19 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:16:05' and `end` < '2025-02-19 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:16:16] Production.INFO: count ==53 [2025-02-19 06:16:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:16:05 - End Time 2025-02-19 06:16:05 [2025-02-19 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508503', 'tblTempUsageDetail_20' ) start [2025-02-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508503', 'tblTempUsageDetail_20' ) end [2025-02-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508503', 'tblTempVendorCDR_20' ) start [2025-02-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508503', 'tblTempVendorCDR_20' ) end [2025-02-19 06:16:16] Production.INFO: ProcessCDR(1,14508503,1,1,2) [2025-02-19 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508503', 'tblTempUsageDetail_20' ) start [2025-02-19 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508503', 'tblTempUsageDetail_20' ) end [2025-02-19 06:16:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:16:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:16:19] Production.INFO: ==13490== Releasing lock... [2025-02-19 06:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:16:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:17:05 [end_date_ymd] => 2025-02-19 06:17:05 [RateCDR] => 1 ) [2025-02-19 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:17:05' and `end` < '2025-02-19 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:17:17] Production.INFO: count ==53 [2025-02-19 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:17:05 - End Time 2025-02-19 06:17:05 [2025-02-19 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508508', 'tblTempUsageDetail_20' ) start [2025-02-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508508', 'tblTempUsageDetail_20' ) end [2025-02-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508508', 'tblTempVendorCDR_20' ) start [2025-02-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508508', 'tblTempVendorCDR_20' ) end [2025-02-19 06:17:17] Production.INFO: ProcessCDR(1,14508508,1,1,2) [2025-02-19 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508508', 'tblTempUsageDetail_20' ) start [2025-02-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508508', 'tblTempUsageDetail_20' ) end [2025-02-19 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:17:20] Production.INFO: ==13562== Releasing lock... [2025-02-19 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:18:06 [end_date_ymd] => 2025-02-19 06:18:06 [RateCDR] => 1 ) [2025-02-19 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:18:06' and `end` < '2025-02-19 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:18:17] Production.INFO: count ==57 [2025-02-19 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:18:06 - End Time 2025-02-19 06:18:06 [2025-02-19 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508513', 'tblTempUsageDetail_20' ) start [2025-02-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508513', 'tblTempUsageDetail_20' ) end [2025-02-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508513', 'tblTempVendorCDR_20' ) start [2025-02-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508513', 'tblTempVendorCDR_20' ) end [2025-02-19 06:18:17] Production.INFO: ProcessCDR(1,14508513,1,1,2) [2025-02-19 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508513', 'tblTempUsageDetail_20' ) start [2025-02-19 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508513', 'tblTempUsageDetail_20' ) end [2025-02-19 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:18:21] Production.INFO: ==13639== Releasing lock... [2025-02-19 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:19:05 [end_date_ymd] => 2025-02-19 06:19:05 [RateCDR] => 1 ) [2025-02-19 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:19:05' and `end` < '2025-02-19 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:19:17] Production.INFO: count ==57 [2025-02-19 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:19:05 - End Time 2025-02-19 06:19:05 [2025-02-19 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508518', 'tblTempUsageDetail_20' ) start [2025-02-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508518', 'tblTempUsageDetail_20' ) end [2025-02-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508518', 'tblTempVendorCDR_20' ) start [2025-02-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508518', 'tblTempVendorCDR_20' ) end [2025-02-19 06:19:17] Production.INFO: ProcessCDR(1,14508518,1,1,2) [2025-02-19 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508518', 'tblTempUsageDetail_20' ) start [2025-02-19 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508518', 'tblTempUsageDetail_20' ) end [2025-02-19 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:19:20] Production.INFO: ==13710== Releasing lock... [2025-02-19 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:20:06 [end_date_ymd] => 2025-02-19 06:20:06 [RateCDR] => 1 ) [2025-02-19 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:20:06' and `end` < '2025-02-19 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:20:17] Production.INFO: count ==59 [2025-02-19 06:20:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:20:06 - End Time 2025-02-19 06:20:06 [2025-02-19 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508523', 'tblTempUsageDetail_20' ) start [2025-02-19 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508523', 'tblTempUsageDetail_20' ) end [2025-02-19 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508523', 'tblTempVendorCDR_20' ) start [2025-02-19 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508523', 'tblTempVendorCDR_20' ) end [2025-02-19 06:20:17] Production.INFO: ProcessCDR(1,14508523,1,1,2) [2025-02-19 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508523', 'tblTempUsageDetail_20' ) start [2025-02-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508523', 'tblTempUsageDetail_20' ) end [2025-02-19 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:20:21] Production.INFO: ==13782== Releasing lock... [2025-02-19 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:21:05 [end_date_ymd] => 2025-02-19 06:21:05 [RateCDR] => 1 ) [2025-02-19 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:21:05' and `end` < '2025-02-19 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:21:17] Production.INFO: count ==59 [2025-02-19 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:21:05 - End Time 2025-02-19 06:21:05 [2025-02-19 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508529', 'tblTempUsageDetail_20' ) start [2025-02-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508529', 'tblTempUsageDetail_20' ) end [2025-02-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508529', 'tblTempVendorCDR_20' ) start [2025-02-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508529', 'tblTempVendorCDR_20' ) end [2025-02-19 06:21:17] Production.INFO: ProcessCDR(1,14508529,1,1,2) [2025-02-19 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508529', 'tblTempUsageDetail_20' ) start [2025-02-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508529', 'tblTempUsageDetail_20' ) end [2025-02-19 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:21:20] Production.INFO: ==13894== Releasing lock... [2025-02-19 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:22:06 [end_date_ymd] => 2025-02-19 06:22:06 [RateCDR] => 1 ) [2025-02-19 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:22:06' and `end` < '2025-02-19 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:22:18] Production.INFO: count ==59 [2025-02-19 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-19 03:22:06 - End Time 2025-02-19 06:22:06 [2025-02-19 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508534', 'tblTempUsageDetail_20' ) start [2025-02-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508534', 'tblTempUsageDetail_20' ) end [2025-02-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508534', 'tblTempVendorCDR_20' ) start [2025-02-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508534', 'tblTempVendorCDR_20' ) end [2025-02-19 06:22:18] Production.INFO: ProcessCDR(1,14508534,1,1,2) [2025-02-19 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508534', 'tblTempUsageDetail_20' ) start [2025-02-19 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508534', 'tblTempUsageDetail_20' ) end [2025-02-19 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:22:21] Production.INFO: ==13964== Releasing lock... [2025-02-19 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:23:05 [end_date_ymd] => 2025-02-19 06:23:05 [RateCDR] => 1 ) [2025-02-19 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:23:05' and `end` < '2025-02-19 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:23:16] Production.INFO: count ==60 [2025-02-19 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:23:05 - End Time 2025-02-19 06:23:05 [2025-02-19 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508539', 'tblTempUsageDetail_20' ) start [2025-02-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508539', 'tblTempUsageDetail_20' ) end [2025-02-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508539', 'tblTempVendorCDR_20' ) start [2025-02-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508539', 'tblTempVendorCDR_20' ) end [2025-02-19 06:23:17] Production.INFO: ProcessCDR(1,14508539,1,1,2) [2025-02-19 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508539', 'tblTempUsageDetail_20' ) start [2025-02-19 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508539', 'tblTempUsageDetail_20' ) end [2025-02-19 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:23:21] Production.INFO: ==14034== Releasing lock... [2025-02-19 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:24:05 [end_date_ymd] => 2025-02-19 06:24:05 [RateCDR] => 1 ) [2025-02-19 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:24:05' and `end` < '2025-02-19 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:24:17] Production.INFO: count ==59 [2025-02-19 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:24:05 - End Time 2025-02-19 06:24:05 [2025-02-19 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508544', 'tblTempUsageDetail_20' ) start [2025-02-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508544', 'tblTempUsageDetail_20' ) end [2025-02-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508544', 'tblTempVendorCDR_20' ) start [2025-02-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508544', 'tblTempVendorCDR_20' ) end [2025-02-19 06:24:17] Production.INFO: ProcessCDR(1,14508544,1,1,2) [2025-02-19 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508544', 'tblTempUsageDetail_20' ) start [2025-02-19 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508544', 'tblTempUsageDetail_20' ) end [2025-02-19 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:24:20] Production.INFO: ==14104== Releasing lock... [2025-02-19 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:25:05 [end_date_ymd] => 2025-02-19 06:25:05 [RateCDR] => 1 ) [2025-02-19 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:25:05' and `end` < '2025-02-19 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:25:17] Production.INFO: count ==58 [2025-02-19 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:25:05 - End Time 2025-02-19 06:25:05 [2025-02-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508549', 'tblTempUsageDetail_20' ) start [2025-02-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508549', 'tblTempUsageDetail_20' ) end [2025-02-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508549', 'tblTempVendorCDR_20' ) start [2025-02-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508549', 'tblTempVendorCDR_20' ) end [2025-02-19 06:25:17] Production.INFO: ProcessCDR(1,14508549,1,1,2) [2025-02-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508549', 'tblTempUsageDetail_20' ) start [2025-02-19 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508549', 'tblTempUsageDetail_20' ) end [2025-02-19 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:25:20] Production.INFO: ==14173== Releasing lock... [2025-02-19 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:26:05 [end_date_ymd] => 2025-02-19 06:26:05 [RateCDR] => 1 ) [2025-02-19 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:26:05' and `end` < '2025-02-19 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:26:17] Production.INFO: count ==58 [2025-02-19 06:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:26:05 - End Time 2025-02-19 06:26:05 [2025-02-19 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508554', 'tblTempUsageDetail_20' ) start [2025-02-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508554', 'tblTempUsageDetail_20' ) end [2025-02-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508554', 'tblTempVendorCDR_20' ) start [2025-02-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508554', 'tblTempVendorCDR_20' ) end [2025-02-19 06:26:17] Production.INFO: ProcessCDR(1,14508554,1,1,2) [2025-02-19 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508554', 'tblTempUsageDetail_20' ) start [2025-02-19 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508554', 'tblTempUsageDetail_20' ) end [2025-02-19 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:26:21] Production.INFO: ==14245== Releasing lock... [2025-02-19 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:27:05 [end_date_ymd] => 2025-02-19 06:27:05 [RateCDR] => 1 ) [2025-02-19 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:27:05' and `end` < '2025-02-19 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:27:16] Production.INFO: count ==59 [2025-02-19 06:27:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:27:05 - End Time 2025-02-19 06:27:05 [2025-02-19 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508559', 'tblTempUsageDetail_20' ) start [2025-02-19 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508559', 'tblTempUsageDetail_20' ) end [2025-02-19 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508559', 'tblTempVendorCDR_20' ) start [2025-02-19 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508559', 'tblTempVendorCDR_20' ) end [2025-02-19 06:27:16] Production.INFO: ProcessCDR(1,14508559,1,1,2) [2025-02-19 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508559', 'tblTempUsageDetail_20' ) start [2025-02-19 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508559', 'tblTempUsageDetail_20' ) end [2025-02-19 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:27:21] Production.INFO: ==14316== Releasing lock... [2025-02-19 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:28:05 [end_date_ymd] => 2025-02-19 06:28:05 [RateCDR] => 1 ) [2025-02-19 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:28:05' and `end` < '2025-02-19 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:28:17] Production.INFO: count ==60 [2025-02-19 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:28:05 - End Time 2025-02-19 06:28:05 [2025-02-19 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508564', 'tblTempUsageDetail_20' ) start [2025-02-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508564', 'tblTempUsageDetail_20' ) end [2025-02-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508564', 'tblTempVendorCDR_20' ) start [2025-02-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508564', 'tblTempVendorCDR_20' ) end [2025-02-19 06:28:17] Production.INFO: ProcessCDR(1,14508564,1,1,2) [2025-02-19 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508564', 'tblTempUsageDetail_20' ) start [2025-02-19 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508564', 'tblTempUsageDetail_20' ) end [2025-02-19 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:28:22] Production.INFO: ==14388== Releasing lock... [2025-02-19 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:29:05 [end_date_ymd] => 2025-02-19 06:29:05 [RateCDR] => 1 ) [2025-02-19 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:29:05' and `end` < '2025-02-19 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:29:17] Production.INFO: count ==60 [2025-02-19 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:29:05 - End Time 2025-02-19 06:29:05 [2025-02-19 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508569', 'tblTempUsageDetail_20' ) start [2025-02-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508569', 'tblTempUsageDetail_20' ) end [2025-02-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508569', 'tblTempVendorCDR_20' ) start [2025-02-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508569', 'tblTempVendorCDR_20' ) end [2025-02-19 06:29:17] Production.INFO: ProcessCDR(1,14508569,1,1,2) [2025-02-19 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508569', 'tblTempUsageDetail_20' ) start [2025-02-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508569', 'tblTempUsageDetail_20' ) end [2025-02-19 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:29:20] Production.INFO: ==14458== Releasing lock... [2025-02-19 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:30:06 [end_date_ymd] => 2025-02-19 06:30:06 [RateCDR] => 1 ) [2025-02-19 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:30:06' and `end` < '2025-02-19 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:30:18] Production.INFO: count ==63 [2025-02-19 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 03:30:06 - End Time 2025-02-19 06:30:06 [2025-02-19 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508575', 'tblTempUsageDetail_20' ) start [2025-02-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508575', 'tblTempUsageDetail_20' ) end [2025-02-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508575', 'tblTempVendorCDR_20' ) start [2025-02-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508575', 'tblTempVendorCDR_20' ) end [2025-02-19 06:30:18] Production.INFO: ProcessCDR(1,14508575,1,1,2) [2025-02-19 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508575', 'tblTempUsageDetail_20' ) start [2025-02-19 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508575', 'tblTempUsageDetail_20' ) end [2025-02-19 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:30:22] Production.INFO: ==14532== Releasing lock... [2025-02-19 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:31:04 [end_date_ymd] => 2025-02-19 06:31:04 [RateCDR] => 1 ) [2025-02-19 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:31:04' and `end` < '2025-02-19 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:31:16] Production.INFO: count ==60 [2025-02-19 06:31:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:31:04 - End Time 2025-02-19 06:31:04 [2025-02-19 06:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508580', 'tblTempUsageDetail_20' ) start [2025-02-19 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508580', 'tblTempUsageDetail_20' ) end [2025-02-19 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508580', 'tblTempVendorCDR_20' ) start [2025-02-19 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508580', 'tblTempVendorCDR_20' ) end [2025-02-19 06:31:16] Production.INFO: ProcessCDR(1,14508580,1,1,2) [2025-02-19 06:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508580', 'tblTempUsageDetail_20' ) start [2025-02-19 06:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508580', 'tblTempUsageDetail_20' ) end [2025-02-19 06:31:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:31:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:31:19] Production.INFO: ==14603== Releasing lock... [2025-02-19 06:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:31:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:32:06 [end_date_ymd] => 2025-02-19 06:32:06 [RateCDR] => 1 ) [2025-02-19 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:32:06' and `end` < '2025-02-19 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:32:17] Production.INFO: count ==60 [2025-02-19 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:32:06 - End Time 2025-02-19 06:32:06 [2025-02-19 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508585', 'tblTempUsageDetail_20' ) start [2025-02-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508585', 'tblTempUsageDetail_20' ) end [2025-02-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508585', 'tblTempVendorCDR_20' ) start [2025-02-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508585', 'tblTempVendorCDR_20' ) end [2025-02-19 06:32:17] Production.INFO: ProcessCDR(1,14508585,1,1,2) [2025-02-19 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508585', 'tblTempUsageDetail_20' ) start [2025-02-19 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508585', 'tblTempUsageDetail_20' ) end [2025-02-19 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:32:21] Production.INFO: ==14679== Releasing lock... [2025-02-19 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:33:05 [end_date_ymd] => 2025-02-19 06:33:05 [RateCDR] => 1 ) [2025-02-19 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:33:05' and `end` < '2025-02-19 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:33:16] Production.INFO: count ==61 [2025-02-19 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:33:05 - End Time 2025-02-19 06:33:05 [2025-02-19 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508590', 'tblTempUsageDetail_20' ) start [2025-02-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508590', 'tblTempUsageDetail_20' ) end [2025-02-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508590', 'tblTempVendorCDR_20' ) start [2025-02-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508590', 'tblTempVendorCDR_20' ) end [2025-02-19 06:33:17] Production.INFO: ProcessCDR(1,14508590,1,1,2) [2025-02-19 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508590', 'tblTempUsageDetail_20' ) start [2025-02-19 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508590', 'tblTempUsageDetail_20' ) end [2025-02-19 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:33:21] Production.INFO: ==14752== Releasing lock... [2025-02-19 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-19 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:34:05 [end_date_ymd] => 2025-02-19 06:34:05 [RateCDR] => 1 ) [2025-02-19 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:34:05' and `end` < '2025-02-19 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:34:17] Production.INFO: count ==69 [2025-02-19 06:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:34:05 - End Time 2025-02-19 06:34:05 [2025-02-19 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508595', 'tblTempUsageDetail_20' ) start [2025-02-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508595', 'tblTempUsageDetail_20' ) end [2025-02-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508595', 'tblTempVendorCDR_20' ) start [2025-02-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508595', 'tblTempVendorCDR_20' ) end [2025-02-19 06:34:17] Production.INFO: ProcessCDR(1,14508595,1,1,2) [2025-02-19 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508595', 'tblTempUsageDetail_20' ) start [2025-02-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508595', 'tblTempUsageDetail_20' ) end [2025-02-19 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:34:20] Production.INFO: ==14824== Releasing lock... [2025-02-19 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:35:06 [end_date_ymd] => 2025-02-19 06:35:06 [RateCDR] => 1 ) [2025-02-19 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:35:06' and `end` < '2025-02-19 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:35:17] Production.INFO: count ==69 [2025-02-19 06:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:35:06 - End Time 2025-02-19 06:35:06 [2025-02-19 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508600', 'tblTempUsageDetail_20' ) start [2025-02-19 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508600', 'tblTempUsageDetail_20' ) end [2025-02-19 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508600', 'tblTempVendorCDR_20' ) start [2025-02-19 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508600', 'tblTempVendorCDR_20' ) end [2025-02-19 06:35:17] Production.INFO: ProcessCDR(1,14508600,1,1,2) [2025-02-19 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508600', 'tblTempUsageDetail_20' ) start [2025-02-19 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508600', 'tblTempUsageDetail_20' ) end [2025-02-19 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:35:20] Production.INFO: ==14894== Releasing lock... [2025-02-19 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:36:05 [end_date_ymd] => 2025-02-19 06:36:05 [RateCDR] => 1 ) [2025-02-19 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:36:05' and `end` < '2025-02-19 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:36:17] Production.INFO: count ==69 [2025-02-19 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:36:05 - End Time 2025-02-19 06:36:05 [2025-02-19 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508605', 'tblTempUsageDetail_20' ) start [2025-02-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508605', 'tblTempUsageDetail_20' ) end [2025-02-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508605', 'tblTempVendorCDR_20' ) start [2025-02-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508605', 'tblTempVendorCDR_20' ) end [2025-02-19 06:36:17] Production.INFO: ProcessCDR(1,14508605,1,1,2) [2025-02-19 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508605', 'tblTempUsageDetail_20' ) start [2025-02-19 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508605', 'tblTempUsageDetail_20' ) end [2025-02-19 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:36:20] Production.INFO: ==15003== Releasing lock... [2025-02-19 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:37:05 [end_date_ymd] => 2025-02-19 06:37:05 [RateCDR] => 1 ) [2025-02-19 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:37:05' and `end` < '2025-02-19 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:37:16] Production.INFO: count ==69 [2025-02-19 06:37:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:37:05 - End Time 2025-02-19 06:37:05 [2025-02-19 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508610', 'tblTempUsageDetail_20' ) start [2025-02-19 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508610', 'tblTempUsageDetail_20' ) end [2025-02-19 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508610', 'tblTempVendorCDR_20' ) start [2025-02-19 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508610', 'tblTempVendorCDR_20' ) end [2025-02-19 06:37:16] Production.INFO: ProcessCDR(1,14508610,1,1,2) [2025-02-19 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508610', 'tblTempUsageDetail_20' ) start [2025-02-19 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508610', 'tblTempUsageDetail_20' ) end [2025-02-19 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:37:20] Production.INFO: ==15078== Releasing lock... [2025-02-19 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:38:05 [end_date_ymd] => 2025-02-19 06:38:05 [RateCDR] => 1 ) [2025-02-19 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:38:05' and `end` < '2025-02-19 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:38:17] Production.INFO: count ==70 [2025-02-19 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:38:05 - End Time 2025-02-19 06:38:05 [2025-02-19 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508615', 'tblTempUsageDetail_20' ) start [2025-02-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508615', 'tblTempUsageDetail_20' ) end [2025-02-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508615', 'tblTempVendorCDR_20' ) start [2025-02-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508615', 'tblTempVendorCDR_20' ) end [2025-02-19 06:38:17] Production.INFO: ProcessCDR(1,14508615,1,1,2) [2025-02-19 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508615', 'tblTempUsageDetail_20' ) start [2025-02-19 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508615', 'tblTempUsageDetail_20' ) end [2025-02-19 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:38:22] Production.INFO: ==15149== Releasing lock... [2025-02-19 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:39:05 [end_date_ymd] => 2025-02-19 06:39:05 [RateCDR] => 1 ) [2025-02-19 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:39:05' and `end` < '2025-02-19 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:39:17] Production.INFO: count ==75 [2025-02-19 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:39:05 - End Time 2025-02-19 06:39:05 [2025-02-19 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508620', 'tblTempUsageDetail_20' ) start [2025-02-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508620', 'tblTempUsageDetail_20' ) end [2025-02-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508620', 'tblTempVendorCDR_20' ) start [2025-02-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508620', 'tblTempVendorCDR_20' ) end [2025-02-19 06:39:17] Production.INFO: ProcessCDR(1,14508620,1,1,2) [2025-02-19 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508620', 'tblTempUsageDetail_20' ) start [2025-02-19 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508620', 'tblTempUsageDetail_20' ) end [2025-02-19 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:39:22] Production.INFO: ==15221== Releasing lock... [2025-02-19 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:40:06 [end_date_ymd] => 2025-02-19 06:40:06 [RateCDR] => 1 ) [2025-02-19 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:40:06' and `end` < '2025-02-19 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:40:18] Production.INFO: count ==74 [2025-02-19 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 03:40:06 - End Time 2025-02-19 06:40:06 [2025-02-19 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508626', 'tblTempUsageDetail_20' ) start [2025-02-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508626', 'tblTempUsageDetail_20' ) end [2025-02-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508626', 'tblTempVendorCDR_20' ) start [2025-02-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508626', 'tblTempVendorCDR_20' ) end [2025-02-19 06:40:18] Production.INFO: ProcessCDR(1,14508626,1,1,2) [2025-02-19 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508626', 'tblTempUsageDetail_20' ) start [2025-02-19 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508626', 'tblTempUsageDetail_20' ) end [2025-02-19 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:40:23] Production.INFO: ==15294== Releasing lock... [2025-02-19 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:41:06 [end_date_ymd] => 2025-02-19 06:41:06 [RateCDR] => 1 ) [2025-02-19 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:41:06' and `end` < '2025-02-19 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:41:17] Production.INFO: count ==74 [2025-02-19 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:41:06 - End Time 2025-02-19 06:41:06 [2025-02-19 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508631', 'tblTempUsageDetail_20' ) start [2025-02-19 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508631', 'tblTempUsageDetail_20' ) end [2025-02-19 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508631', 'tblTempVendorCDR_20' ) start [2025-02-19 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508631', 'tblTempVendorCDR_20' ) end [2025-02-19 06:41:17] Production.INFO: ProcessCDR(1,14508631,1,1,2) [2025-02-19 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508631', 'tblTempUsageDetail_20' ) start [2025-02-19 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508631', 'tblTempUsageDetail_20' ) end [2025-02-19 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:41:21] Production.INFO: ==15368== Releasing lock... [2025-02-19 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:42:05 [end_date_ymd] => 2025-02-19 06:42:05 [RateCDR] => 1 ) [2025-02-19 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:42:05' and `end` < '2025-02-19 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:42:17] Production.INFO: count ==70 [2025-02-19 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:42:05 - End Time 2025-02-19 06:42:05 [2025-02-19 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508636', 'tblTempUsageDetail_20' ) start [2025-02-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508636', 'tblTempUsageDetail_20' ) end [2025-02-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508636', 'tblTempVendorCDR_20' ) start [2025-02-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508636', 'tblTempVendorCDR_20' ) end [2025-02-19 06:42:17] Production.INFO: ProcessCDR(1,14508636,1,1,2) [2025-02-19 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508636', 'tblTempUsageDetail_20' ) start [2025-02-19 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508636', 'tblTempUsageDetail_20' ) end [2025-02-19 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:42:21] Production.INFO: ==15441== Releasing lock... [2025-02-19 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:43:05 [end_date_ymd] => 2025-02-19 06:43:05 [RateCDR] => 1 ) [2025-02-19 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:43:05' and `end` < '2025-02-19 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:43:17] Production.INFO: count ==70 [2025-02-19 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:43:05 - End Time 2025-02-19 06:43:05 [2025-02-19 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508641', 'tblTempUsageDetail_20' ) start [2025-02-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508641', 'tblTempUsageDetail_20' ) end [2025-02-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508641', 'tblTempVendorCDR_20' ) start [2025-02-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508641', 'tblTempVendorCDR_20' ) end [2025-02-19 06:43:17] Production.INFO: ProcessCDR(1,14508641,1,1,2) [2025-02-19 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508641', 'tblTempUsageDetail_20' ) start [2025-02-19 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508641', 'tblTempUsageDetail_20' ) end [2025-02-19 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:43:20] Production.INFO: ==15516== Releasing lock... [2025-02-19 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:44:05 [end_date_ymd] => 2025-02-19 06:44:05 [RateCDR] => 1 ) [2025-02-19 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:44:05' and `end` < '2025-02-19 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:44:16] Production.INFO: count ==70 [2025-02-19 06:44:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:44:05 - End Time 2025-02-19 06:44:05 [2025-02-19 06:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508646', 'tblTempUsageDetail_20' ) start [2025-02-19 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508646', 'tblTempUsageDetail_20' ) end [2025-02-19 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508646', 'tblTempVendorCDR_20' ) start [2025-02-19 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508646', 'tblTempVendorCDR_20' ) end [2025-02-19 06:44:16] Production.INFO: ProcessCDR(1,14508646,1,1,2) [2025-02-19 06:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508646', 'tblTempUsageDetail_20' ) start [2025-02-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508646', 'tblTempUsageDetail_20' ) end [2025-02-19 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:44:20] Production.INFO: ==15585== Releasing lock... [2025-02-19 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:45:05 [end_date_ymd] => 2025-02-19 06:45:05 [RateCDR] => 1 ) [2025-02-19 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:45:05' and `end` < '2025-02-19 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:45:17] Production.INFO: count ==70 [2025-02-19 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:45:05 - End Time 2025-02-19 06:45:05 [2025-02-19 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508651', 'tblTempUsageDetail_20' ) start [2025-02-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508651', 'tblTempUsageDetail_20' ) end [2025-02-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508651', 'tblTempVendorCDR_20' ) start [2025-02-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508651', 'tblTempVendorCDR_20' ) end [2025-02-19 06:45:17] Production.INFO: ProcessCDR(1,14508651,1,1,2) [2025-02-19 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508651', 'tblTempUsageDetail_20' ) start [2025-02-19 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508651', 'tblTempUsageDetail_20' ) end [2025-02-19 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:45:20] Production.INFO: ==15660== Releasing lock... [2025-02-19 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-19 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:46:05 [end_date_ymd] => 2025-02-19 06:46:05 [RateCDR] => 1 ) [2025-02-19 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:46:05' and `end` < '2025-02-19 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:46:17] Production.INFO: count ==106 [2025-02-19 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:46:05 - End Time 2025-02-19 06:46:05 [2025-02-19 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508656', 'tblTempUsageDetail_20' ) start [2025-02-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508656', 'tblTempUsageDetail_20' ) end [2025-02-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508656', 'tblTempVendorCDR_20' ) start [2025-02-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508656', 'tblTempVendorCDR_20' ) end [2025-02-19 06:46:17] Production.INFO: ProcessCDR(1,14508656,1,1,2) [2025-02-19 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508656', 'tblTempUsageDetail_20' ) start [2025-02-19 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508656', 'tblTempUsageDetail_20' ) end [2025-02-19 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:46:20] Production.INFO: ==15732== Releasing lock... [2025-02-19 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:47:05 [end_date_ymd] => 2025-02-19 06:47:05 [RateCDR] => 1 ) [2025-02-19 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:47:05' and `end` < '2025-02-19 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:47:17] Production.INFO: count ==106 [2025-02-19 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:47:05 - End Time 2025-02-19 06:47:05 [2025-02-19 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508661', 'tblTempUsageDetail_20' ) start [2025-02-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508661', 'tblTempUsageDetail_20' ) end [2025-02-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508661', 'tblTempVendorCDR_20' ) start [2025-02-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508661', 'tblTempVendorCDR_20' ) end [2025-02-19 06:47:17] Production.INFO: ProcessCDR(1,14508661,1,1,2) [2025-02-19 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508661', 'tblTempUsageDetail_20' ) start [2025-02-19 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508661', 'tblTempUsageDetail_20' ) end [2025-02-19 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:47:20] Production.INFO: ==15801== Releasing lock... [2025-02-19 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:48:05 [end_date_ymd] => 2025-02-19 06:48:05 [RateCDR] => 1 ) [2025-02-19 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:48:05' and `end` < '2025-02-19 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:48:17] Production.INFO: count ==106 [2025-02-19 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:48:05 - End Time 2025-02-19 06:48:05 [2025-02-19 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508666', 'tblTempUsageDetail_20' ) start [2025-02-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508666', 'tblTempUsageDetail_20' ) end [2025-02-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508666', 'tblTempVendorCDR_20' ) start [2025-02-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508666', 'tblTempVendorCDR_20' ) end [2025-02-19 06:48:17] Production.INFO: ProcessCDR(1,14508666,1,1,2) [2025-02-19 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508666', 'tblTempUsageDetail_20' ) start [2025-02-19 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508666', 'tblTempUsageDetail_20' ) end [2025-02-19 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:48:21] Production.INFO: ==15871== Releasing lock... [2025-02-19 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:49:05 [end_date_ymd] => 2025-02-19 06:49:05 [RateCDR] => 1 ) [2025-02-19 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:49:05' and `end` < '2025-02-19 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:49:17] Production.INFO: count ==106 [2025-02-19 06:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:49:05 - End Time 2025-02-19 06:49:05 [2025-02-19 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508671', 'tblTempUsageDetail_20' ) start [2025-02-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508671', 'tblTempUsageDetail_20' ) end [2025-02-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508671', 'tblTempVendorCDR_20' ) start [2025-02-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508671', 'tblTempVendorCDR_20' ) end [2025-02-19 06:49:17] Production.INFO: ProcessCDR(1,14508671,1,1,2) [2025-02-19 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508671', 'tblTempUsageDetail_20' ) start [2025-02-19 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508671', 'tblTempUsageDetail_20' ) end [2025-02-19 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:49:20] Production.INFO: ==15942== Releasing lock... [2025-02-19 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:50:06 [end_date_ymd] => 2025-02-19 06:50:06 [RateCDR] => 1 ) [2025-02-19 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:50:06' and `end` < '2025-02-19 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:50:17] Production.INFO: count ==142 [2025-02-19 06:50:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:50:06 - End Time 2025-02-19 06:50:06 [2025-02-19 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508677', 'tblTempUsageDetail_20' ) start [2025-02-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508677', 'tblTempUsageDetail_20' ) end [2025-02-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508677', 'tblTempVendorCDR_20' ) start [2025-02-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508677', 'tblTempVendorCDR_20' ) end [2025-02-19 06:50:17] Production.INFO: ProcessCDR(1,14508677,1,1,2) [2025-02-19 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508677', 'tblTempUsageDetail_20' ) start [2025-02-19 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508677', 'tblTempUsageDetail_20' ) end [2025-02-19 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:50:21] Production.INFO: ==16014== Releasing lock... [2025-02-19 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:51:05 [end_date_ymd] => 2025-02-19 06:51:05 [RateCDR] => 1 ) [2025-02-19 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:51:05' and `end` < '2025-02-19 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:51:17] Production.INFO: count ==142 [2025-02-19 06:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:51:05 - End Time 2025-02-19 06:51:05 [2025-02-19 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508682', 'tblTempUsageDetail_20' ) start [2025-02-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508682', 'tblTempUsageDetail_20' ) end [2025-02-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508682', 'tblTempVendorCDR_20' ) start [2025-02-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508682', 'tblTempVendorCDR_20' ) end [2025-02-19 06:51:17] Production.INFO: ProcessCDR(1,14508682,1,1,2) [2025-02-19 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508682', 'tblTempUsageDetail_20' ) start [2025-02-19 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508682', 'tblTempUsageDetail_20' ) end [2025-02-19 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:51:20] Production.INFO: ==16088== Releasing lock... [2025-02-19 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:52:05 [end_date_ymd] => 2025-02-19 06:52:05 [RateCDR] => 1 ) [2025-02-19 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:52:05' and `end` < '2025-02-19 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:52:17] Production.INFO: count ==143 [2025-02-19 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:52:05 - End Time 2025-02-19 06:52:05 [2025-02-19 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508687', 'tblTempUsageDetail_20' ) start [2025-02-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508687', 'tblTempUsageDetail_20' ) end [2025-02-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508687', 'tblTempVendorCDR_20' ) start [2025-02-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508687', 'tblTempVendorCDR_20' ) end [2025-02-19 06:52:17] Production.INFO: ProcessCDR(1,14508687,1,1,2) [2025-02-19 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508687', 'tblTempUsageDetail_20' ) start [2025-02-19 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508687', 'tblTempUsageDetail_20' ) end [2025-02-19 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:52:22] Production.INFO: ==16198== Releasing lock... [2025-02-19 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:53:05 [end_date_ymd] => 2025-02-19 06:53:05 [RateCDR] => 1 ) [2025-02-19 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:53:05' and `end` < '2025-02-19 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:53:17] Production.INFO: count ==143 [2025-02-19 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:53:05 - End Time 2025-02-19 06:53:05 [2025-02-19 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508692', 'tblTempUsageDetail_20' ) start [2025-02-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508692', 'tblTempUsageDetail_20' ) end [2025-02-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508692', 'tblTempVendorCDR_20' ) start [2025-02-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508692', 'tblTempVendorCDR_20' ) end [2025-02-19 06:53:17] Production.INFO: ProcessCDR(1,14508692,1,1,2) [2025-02-19 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508692', 'tblTempUsageDetail_20' ) start [2025-02-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508692', 'tblTempUsageDetail_20' ) end [2025-02-19 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:53:20] Production.INFO: ==16271== Releasing lock... [2025-02-19 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:54:05 [end_date_ymd] => 2025-02-19 06:54:05 [RateCDR] => 1 ) [2025-02-19 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:54:05' and `end` < '2025-02-19 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:54:17] Production.INFO: count ==143 [2025-02-19 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:54:05 - End Time 2025-02-19 06:54:05 [2025-02-19 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508697', 'tblTempUsageDetail_20' ) start [2025-02-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508697', 'tblTempUsageDetail_20' ) end [2025-02-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508697', 'tblTempVendorCDR_20' ) start [2025-02-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508697', 'tblTempVendorCDR_20' ) end [2025-02-19 06:54:17] Production.INFO: ProcessCDR(1,14508697,1,1,2) [2025-02-19 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508697', 'tblTempUsageDetail_20' ) start [2025-02-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508697', 'tblTempUsageDetail_20' ) end [2025-02-19 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:54:20] Production.INFO: ==16343== Releasing lock... [2025-02-19 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:55:05 [end_date_ymd] => 2025-02-19 06:55:05 [RateCDR] => 1 ) [2025-02-19 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:55:05' and `end` < '2025-02-19 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:55:17] Production.INFO: count ==143 [2025-02-19 06:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:55:05 - End Time 2025-02-19 06:55:05 [2025-02-19 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508702', 'tblTempUsageDetail_20' ) start [2025-02-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508702', 'tblTempUsageDetail_20' ) end [2025-02-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508702', 'tblTempVendorCDR_20' ) start [2025-02-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508702', 'tblTempVendorCDR_20' ) end [2025-02-19 06:55:17] Production.INFO: ProcessCDR(1,14508702,1,1,2) [2025-02-19 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508702', 'tblTempUsageDetail_20' ) start [2025-02-19 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508702', 'tblTempUsageDetail_20' ) end [2025-02-19 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:55:20] Production.INFO: ==16421== Releasing lock... [2025-02-19 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:55:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:56:05 [end_date_ymd] => 2025-02-19 06:56:05 [RateCDR] => 1 ) [2025-02-19 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:56:05' and `end` < '2025-02-19 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:56:17] Production.INFO: count ==143 [2025-02-19 06:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:56:05 - End Time 2025-02-19 06:56:05 [2025-02-19 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508707', 'tblTempUsageDetail_20' ) start [2025-02-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508707', 'tblTempUsageDetail_20' ) end [2025-02-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508707', 'tblTempVendorCDR_20' ) start [2025-02-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508707', 'tblTempVendorCDR_20' ) end [2025-02-19 06:56:17] Production.INFO: ProcessCDR(1,14508707,1,1,2) [2025-02-19 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508707', 'tblTempUsageDetail_20' ) start [2025-02-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508707', 'tblTempUsageDetail_20' ) end [2025-02-19 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:56:20] Production.INFO: ==16511== Releasing lock... [2025-02-19 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:57:05 [end_date_ymd] => 2025-02-19 06:57:05 [RateCDR] => 1 ) [2025-02-19 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:57:05' and `end` < '2025-02-19 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:57:17] Production.INFO: count ==144 [2025-02-19 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:57:05 - End Time 2025-02-19 06:57:05 [2025-02-19 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508712', 'tblTempUsageDetail_20' ) start [2025-02-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508712', 'tblTempUsageDetail_20' ) end [2025-02-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508712', 'tblTempVendorCDR_20' ) start [2025-02-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508712', 'tblTempVendorCDR_20' ) end [2025-02-19 06:57:17] Production.INFO: ProcessCDR(1,14508712,1,1,2) [2025-02-19 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508712', 'tblTempUsageDetail_20' ) start [2025-02-19 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508712', 'tblTempUsageDetail_20' ) end [2025-02-19 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:57:21] Production.INFO: ==16591== Releasing lock... [2025-02-19 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:58:04 [end_date_ymd] => 2025-02-19 06:58:04 [RateCDR] => 1 ) [2025-02-19 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:58:04' and `end` < '2025-02-19 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:58:16] Production.INFO: count ==144 [2025-02-19 06:58:16] Production.ERROR: pbx CDR StartTime 2025-02-19 03:58:04 - End Time 2025-02-19 06:58:04 [2025-02-19 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508715', 'tblTempUsageDetail_20' ) start [2025-02-19 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508715', 'tblTempUsageDetail_20' ) end [2025-02-19 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508715', 'tblTempVendorCDR_20' ) start [2025-02-19 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508715', 'tblTempVendorCDR_20' ) end [2025-02-19 06:58:16] Production.INFO: ProcessCDR(1,14508715,1,1,2) [2025-02-19 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508715', 'tblTempUsageDetail_20' ) start [2025-02-19 06:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508715', 'tblTempUsageDetail_20' ) end [2025-02-19 06:58:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:58:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:58:19] Production.INFO: ==16669== Releasing lock... [2025-02-19 06:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:58:19] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 03:59:05 [end_date_ymd] => 2025-02-19 06:59:05 [RateCDR] => 1 ) [2025-02-19 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 03:59:05' and `end` < '2025-02-19 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 06:59:17] Production.INFO: count ==144 [2025-02-19 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 03:59:05 - End Time 2025-02-19 06:59:05 [2025-02-19 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508722', 'tblTempUsageDetail_20' ) start [2025-02-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508722', 'tblTempUsageDetail_20' ) end [2025-02-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508722', 'tblTempVendorCDR_20' ) start [2025-02-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508722', 'tblTempVendorCDR_20' ) end [2025-02-19 06:59:17] Production.INFO: ProcessCDR(1,14508722,1,1,2) [2025-02-19 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508722', 'tblTempUsageDetail_20' ) start [2025-02-19 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508722', 'tblTempUsageDetail_20' ) end [2025-02-19 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 06:59:20] Production.INFO: ==16748== Releasing lock... [2025-02-19 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 06:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:00:06 [end_date_ymd] => 2025-02-19 07:00:06 [RateCDR] => 1 ) [2025-02-19 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:00:06' and `end` < '2025-02-19 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:00:17] Production.INFO: count ==138 [2025-02-19 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:00:06 - End Time 2025-02-19 07:00:06 [2025-02-19 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508727', 'tblTempUsageDetail_20' ) start [2025-02-19 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508727', 'tblTempUsageDetail_20' ) end [2025-02-19 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508727', 'tblTempVendorCDR_20' ) start [2025-02-19 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508727', 'tblTempVendorCDR_20' ) end [2025-02-19 07:00:18] Production.INFO: ProcessCDR(1,14508727,1,1,2) [2025-02-19 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508727', 'tblTempUsageDetail_20' ) start [2025-02-19 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508727', 'tblTempUsageDetail_20' ) end [2025-02-19 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:00:21] Production.INFO: ==16831== Releasing lock... [2025-02-19 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:00:21] Production.INFO: 29 MB #Memory Used# [2025-02-19 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:01:05 [end_date_ymd] => 2025-02-19 07:01:05 [RateCDR] => 1 ) [2025-02-19 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:01:05' and `end` < '2025-02-19 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:01:17] Production.INFO: count ==142 [2025-02-19 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:01:05 - End Time 2025-02-19 07:01:05 [2025-02-19 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508733', 'tblTempUsageDetail_20' ) start [2025-02-19 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508733', 'tblTempUsageDetail_20' ) end [2025-02-19 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508733', 'tblTempVendorCDR_20' ) start [2025-02-19 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508733', 'tblTempVendorCDR_20' ) end [2025-02-19 07:01:17] Production.INFO: ProcessCDR(1,14508733,1,1,2) [2025-02-19 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508733', 'tblTempUsageDetail_20' ) start [2025-02-19 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508733', 'tblTempUsageDetail_20' ) end [2025-02-19 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:01:20] Production.INFO: ==16926== Releasing lock... [2025-02-19 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:01:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:02:06 [end_date_ymd] => 2025-02-19 07:02:06 [RateCDR] => 1 ) [2025-02-19 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:02:06' and `end` < '2025-02-19 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:02:18] Production.INFO: count ==143 [2025-02-19 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:02:06 - End Time 2025-02-19 07:02:06 [2025-02-19 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508738', 'tblTempUsageDetail_20' ) start [2025-02-19 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508738', 'tblTempUsageDetail_20' ) end [2025-02-19 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508738', 'tblTempVendorCDR_20' ) start [2025-02-19 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508738', 'tblTempVendorCDR_20' ) end [2025-02-19 07:02:18] Production.INFO: ProcessCDR(1,14508738,1,1,2) [2025-02-19 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508738', 'tblTempUsageDetail_20' ) start [2025-02-19 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508738', 'tblTempUsageDetail_20' ) end [2025-02-19 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:02:21] Production.INFO: ==17085== Releasing lock... [2025-02-19 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:03:06 [end_date_ymd] => 2025-02-19 07:03:06 [RateCDR] => 1 ) [2025-02-19 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:03:06' and `end` < '2025-02-19 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:03:20] Production.INFO: count ==145 [2025-02-19 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-19 04:03:06 - End Time 2025-02-19 07:03:06 [2025-02-19 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508743', 'tblTempUsageDetail_20' ) start [2025-02-19 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508743', 'tblTempUsageDetail_20' ) end [2025-02-19 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508743', 'tblTempVendorCDR_20' ) start [2025-02-19 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508743', 'tblTempVendorCDR_20' ) end [2025-02-19 07:03:20] Production.INFO: ProcessCDR(1,14508743,1,1,2) [2025-02-19 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508743', 'tblTempUsageDetail_20' ) start [2025-02-19 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508743', 'tblTempUsageDetail_20' ) end [2025-02-19 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:03:23] Production.INFO: ==17159== Releasing lock... [2025-02-19 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:04:05 [end_date_ymd] => 2025-02-19 07:04:05 [RateCDR] => 1 ) [2025-02-19 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:04:05' and `end` < '2025-02-19 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:04:17] Production.INFO: count ==145 [2025-02-19 07:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:04:05 - End Time 2025-02-19 07:04:05 [2025-02-19 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508748', 'tblTempUsageDetail_20' ) start [2025-02-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508748', 'tblTempUsageDetail_20' ) end [2025-02-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508748', 'tblTempVendorCDR_20' ) start [2025-02-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508748', 'tblTempVendorCDR_20' ) end [2025-02-19 07:04:17] Production.INFO: ProcessCDR(1,14508748,1,1,2) [2025-02-19 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508748', 'tblTempUsageDetail_20' ) start [2025-02-19 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508748', 'tblTempUsageDetail_20' ) end [2025-02-19 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:04:21] Production.INFO: ==17230== Releasing lock... [2025-02-19 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:05:05 [end_date_ymd] => 2025-02-19 07:05:05 [RateCDR] => 1 ) [2025-02-19 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:05:05' and `end` < '2025-02-19 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:05:18] Production.INFO: count ==147 [2025-02-19 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:05:05 - End Time 2025-02-19 07:05:05 [2025-02-19 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508753', 'tblTempUsageDetail_20' ) start [2025-02-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508753', 'tblTempUsageDetail_20' ) end [2025-02-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508753', 'tblTempVendorCDR_20' ) start [2025-02-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508753', 'tblTempVendorCDR_20' ) end [2025-02-19 07:05:18] Production.INFO: ProcessCDR(1,14508753,1,1,2) [2025-02-19 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508753', 'tblTempUsageDetail_20' ) start [2025-02-19 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508753', 'tblTempUsageDetail_20' ) end [2025-02-19 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:05:22] Production.INFO: ==17379== Releasing lock... [2025-02-19 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:06:05 [end_date_ymd] => 2025-02-19 07:06:05 [RateCDR] => 1 ) [2025-02-19 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:06:05' and `end` < '2025-02-19 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:06:17] Production.INFO: count ==147 [2025-02-19 07:06:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:06:05 - End Time 2025-02-19 07:06:05 [2025-02-19 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508758', 'tblTempUsageDetail_20' ) start [2025-02-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508758', 'tblTempUsageDetail_20' ) end [2025-02-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508758', 'tblTempVendorCDR_20' ) start [2025-02-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508758', 'tblTempVendorCDR_20' ) end [2025-02-19 07:06:17] Production.INFO: ProcessCDR(1,14508758,1,1,2) [2025-02-19 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508758', 'tblTempUsageDetail_20' ) start [2025-02-19 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508758', 'tblTempUsageDetail_20' ) end [2025-02-19 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:06:20] Production.INFO: ==17449== Releasing lock... [2025-02-19 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:07:05 [end_date_ymd] => 2025-02-19 07:07:05 [RateCDR] => 1 ) [2025-02-19 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:07:05' and `end` < '2025-02-19 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:07:17] Production.INFO: count ==148 [2025-02-19 07:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:07:05 - End Time 2025-02-19 07:07:05 [2025-02-19 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508763', 'tblTempUsageDetail_20' ) start [2025-02-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508763', 'tblTempUsageDetail_20' ) end [2025-02-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508763', 'tblTempVendorCDR_20' ) start [2025-02-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508763', 'tblTempVendorCDR_20' ) end [2025-02-19 07:07:17] Production.INFO: ProcessCDR(1,14508763,1,1,2) [2025-02-19 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508763', 'tblTempUsageDetail_20' ) start [2025-02-19 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508763', 'tblTempUsageDetail_20' ) end [2025-02-19 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:07:20] Production.INFO: ==17559== Releasing lock... [2025-02-19 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:08:06 [end_date_ymd] => 2025-02-19 07:08:06 [RateCDR] => 1 ) [2025-02-19 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:08:06' and `end` < '2025-02-19 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:08:19] Production.INFO: count ==151 [2025-02-19 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-19 04:08:06 - End Time 2025-02-19 07:08:06 [2025-02-19 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508768', 'tblTempUsageDetail_20' ) start [2025-02-19 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508768', 'tblTempUsageDetail_20' ) end [2025-02-19 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508768', 'tblTempVendorCDR_20' ) start [2025-02-19 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508768', 'tblTempVendorCDR_20' ) end [2025-02-19 07:08:20] Production.INFO: ProcessCDR(1,14508768,1,1,2) [2025-02-19 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508768', 'tblTempUsageDetail_20' ) start [2025-02-19 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508768', 'tblTempUsageDetail_20' ) end [2025-02-19 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:08:23] Production.INFO: ==17709== Releasing lock... [2025-02-19 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:09:05 [end_date_ymd] => 2025-02-19 07:09:05 [RateCDR] => 1 ) [2025-02-19 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:09:05' and `end` < '2025-02-19 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:09:17] Production.INFO: count ==151 [2025-02-19 07:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:09:05 - End Time 2025-02-19 07:09:05 [2025-02-19 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508773', 'tblTempUsageDetail_20' ) start [2025-02-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508773', 'tblTempUsageDetail_20' ) end [2025-02-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508773', 'tblTempVendorCDR_20' ) start [2025-02-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508773', 'tblTempVendorCDR_20' ) end [2025-02-19 07:09:17] Production.INFO: ProcessCDR(1,14508773,1,1,2) [2025-02-19 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508773', 'tblTempUsageDetail_20' ) start [2025-02-19 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508773', 'tblTempUsageDetail_20' ) end [2025-02-19 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:09:21] Production.INFO: ==17783== Releasing lock... [2025-02-19 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:10:06 [end_date_ymd] => 2025-02-19 07:10:06 [RateCDR] => 1 ) [2025-02-19 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:10:06' and `end` < '2025-02-19 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:10:17] Production.INFO: count ==151 [2025-02-19 07:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:10:06 - End Time 2025-02-19 07:10:06 [2025-02-19 07:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508779', 'tblTempUsageDetail_20' ) start [2025-02-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508779', 'tblTempUsageDetail_20' ) end [2025-02-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508779', 'tblTempVendorCDR_20' ) start [2025-02-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508779', 'tblTempVendorCDR_20' ) end [2025-02-19 07:10:18] Production.INFO: ProcessCDR(1,14508779,1,1,2) [2025-02-19 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508779', 'tblTempUsageDetail_20' ) start [2025-02-19 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508779', 'tblTempUsageDetail_20' ) end [2025-02-19 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:10:21] Production.INFO: ==17866== Releasing lock... [2025-02-19 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:11:05 [end_date_ymd] => 2025-02-19 07:11:05 [RateCDR] => 1 ) [2025-02-19 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:11:05' and `end` < '2025-02-19 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:11:18] Production.INFO: count ==151 [2025-02-19 07:11:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:11:05 - End Time 2025-02-19 07:11:05 [2025-02-19 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508784', 'tblTempUsageDetail_20' ) start [2025-02-19 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508784', 'tblTempUsageDetail_20' ) end [2025-02-19 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508784', 'tblTempVendorCDR_20' ) start [2025-02-19 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508784', 'tblTempVendorCDR_20' ) end [2025-02-19 07:11:18] Production.INFO: ProcessCDR(1,14508784,1,1,2) [2025-02-19 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508784', 'tblTempUsageDetail_20' ) start [2025-02-19 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508784', 'tblTempUsageDetail_20' ) end [2025-02-19 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:11:21] Production.INFO: ==17942== Releasing lock... [2025-02-19 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:12:05 [end_date_ymd] => 2025-02-19 07:12:05 [RateCDR] => 1 ) [2025-02-19 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:12:05' and `end` < '2025-02-19 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:12:17] Production.INFO: count ==151 [2025-02-19 07:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:12:05 - End Time 2025-02-19 07:12:05 [2025-02-19 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508789', 'tblTempUsageDetail_20' ) start [2025-02-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508789', 'tblTempUsageDetail_20' ) end [2025-02-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508789', 'tblTempVendorCDR_20' ) start [2025-02-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508789', 'tblTempVendorCDR_20' ) end [2025-02-19 07:12:17] Production.INFO: ProcessCDR(1,14508789,1,1,2) [2025-02-19 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508789', 'tblTempUsageDetail_20' ) start [2025-02-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508789', 'tblTempUsageDetail_20' ) end [2025-02-19 07:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:12:20] Production.INFO: ==18092== Releasing lock... [2025-02-19 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:13:05 [end_date_ymd] => 2025-02-19 07:13:05 [RateCDR] => 1 ) [2025-02-19 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:13:05' and `end` < '2025-02-19 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:13:18] Production.INFO: count ==151 [2025-02-19 07:13:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:13:05 - End Time 2025-02-19 07:13:05 [2025-02-19 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508794', 'tblTempUsageDetail_20' ) start [2025-02-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508794', 'tblTempUsageDetail_20' ) end [2025-02-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508794', 'tblTempVendorCDR_20' ) start [2025-02-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508794', 'tblTempVendorCDR_20' ) end [2025-02-19 07:13:18] Production.INFO: ProcessCDR(1,14508794,1,1,2) [2025-02-19 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508794', 'tblTempUsageDetail_20' ) start [2025-02-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508794', 'tblTempUsageDetail_20' ) end [2025-02-19 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:13:21] Production.INFO: ==18162== Releasing lock... [2025-02-19 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:14:05 [end_date_ymd] => 2025-02-19 07:14:05 [RateCDR] => 1 ) [2025-02-19 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:14:05' and `end` < '2025-02-19 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:14:18] Production.INFO: count ==151 [2025-02-19 07:14:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:14:05 - End Time 2025-02-19 07:14:05 [2025-02-19 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508799', 'tblTempUsageDetail_20' ) start [2025-02-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508799', 'tblTempUsageDetail_20' ) end [2025-02-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508799', 'tblTempVendorCDR_20' ) start [2025-02-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508799', 'tblTempVendorCDR_20' ) end [2025-02-19 07:14:18] Production.INFO: ProcessCDR(1,14508799,1,1,2) [2025-02-19 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508799', 'tblTempUsageDetail_20' ) start [2025-02-19 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508799', 'tblTempUsageDetail_20' ) end [2025-02-19 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:14:21] Production.INFO: ==18233== Releasing lock... [2025-02-19 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:15:05 [end_date_ymd] => 2025-02-19 07:15:05 [RateCDR] => 1 ) [2025-02-19 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:15:05' and `end` < '2025-02-19 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:15:16] Production.INFO: count ==152 [2025-02-19 07:15:16] Production.ERROR: pbx CDR StartTime 2025-02-19 04:15:05 - End Time 2025-02-19 07:15:05 [2025-02-19 07:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508804', 'tblTempUsageDetail_20' ) start [2025-02-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508804', 'tblTempUsageDetail_20' ) end [2025-02-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508804', 'tblTempVendorCDR_20' ) start [2025-02-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508804', 'tblTempVendorCDR_20' ) end [2025-02-19 07:15:17] Production.INFO: ProcessCDR(1,14508804,1,1,2) [2025-02-19 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508804', 'tblTempUsageDetail_20' ) start [2025-02-19 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508804', 'tblTempUsageDetail_20' ) end [2025-02-19 07:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:15:20] Production.INFO: ==18382== Releasing lock... [2025-02-19 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:16:05 [end_date_ymd] => 2025-02-19 07:16:05 [RateCDR] => 1 ) [2025-02-19 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:16:05' and `end` < '2025-02-19 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:16:17] Production.INFO: count ==152 [2025-02-19 07:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:16:05 - End Time 2025-02-19 07:16:05 [2025-02-19 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508809', 'tblTempUsageDetail_20' ) start [2025-02-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508809', 'tblTempUsageDetail_20' ) end [2025-02-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508809', 'tblTempVendorCDR_20' ) start [2025-02-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508809', 'tblTempVendorCDR_20' ) end [2025-02-19 07:16:17] Production.INFO: ProcessCDR(1,14508809,1,1,2) [2025-02-19 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508809', 'tblTempUsageDetail_20' ) start [2025-02-19 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508809', 'tblTempUsageDetail_20' ) end [2025-02-19 07:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:16:20] Production.INFO: ==18457== Releasing lock... [2025-02-19 07:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:17:05 [end_date_ymd] => 2025-02-19 07:17:05 [RateCDR] => 1 ) [2025-02-19 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:17:05' and `end` < '2025-02-19 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:17:18] Production.INFO: count ==152 [2025-02-19 07:17:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:17:05 - End Time 2025-02-19 07:17:05 [2025-02-19 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508814', 'tblTempUsageDetail_20' ) start [2025-02-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508814', 'tblTempUsageDetail_20' ) end [2025-02-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508814', 'tblTempVendorCDR_20' ) start [2025-02-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508814', 'tblTempVendorCDR_20' ) end [2025-02-19 07:17:18] Production.INFO: ProcessCDR(1,14508814,1,1,2) [2025-02-19 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508814', 'tblTempUsageDetail_20' ) start [2025-02-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508814', 'tblTempUsageDetail_20' ) end [2025-02-19 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:17:21] Production.INFO: ==18527== Releasing lock... [2025-02-19 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:18:06 [end_date_ymd] => 2025-02-19 07:18:06 [RateCDR] => 1 ) [2025-02-19 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:18:06' and `end` < '2025-02-19 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:18:18] Production.INFO: count ==152 [2025-02-19 07:18:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:18:06 - End Time 2025-02-19 07:18:06 [2025-02-19 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508819', 'tblTempUsageDetail_20' ) start [2025-02-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508819', 'tblTempUsageDetail_20' ) end [2025-02-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508819', 'tblTempVendorCDR_20' ) start [2025-02-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508819', 'tblTempVendorCDR_20' ) end [2025-02-19 07:18:18] Production.INFO: ProcessCDR(1,14508819,1,1,2) [2025-02-19 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508819', 'tblTempUsageDetail_20' ) start [2025-02-19 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508819', 'tblTempUsageDetail_20' ) end [2025-02-19 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:18:22] Production.INFO: ==18599== Releasing lock... [2025-02-19 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:19:05 [end_date_ymd] => 2025-02-19 07:19:05 [RateCDR] => 1 ) [2025-02-19 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:19:05' and `end` < '2025-02-19 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:19:17] Production.INFO: count ==152 [2025-02-19 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:19:05 - End Time 2025-02-19 07:19:05 [2025-02-19 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508824', 'tblTempUsageDetail_20' ) start [2025-02-19 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508824', 'tblTempUsageDetail_20' ) end [2025-02-19 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508824', 'tblTempVendorCDR_20' ) start [2025-02-19 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508824', 'tblTempVendorCDR_20' ) end [2025-02-19 07:19:17] Production.INFO: ProcessCDR(1,14508824,1,1,2) [2025-02-19 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508824', 'tblTempUsageDetail_20' ) start [2025-02-19 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508824', 'tblTempUsageDetail_20' ) end [2025-02-19 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:19:20] Production.INFO: ==18670== Releasing lock... [2025-02-19 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:20:06 [end_date_ymd] => 2025-02-19 07:20:06 [RateCDR] => 1 ) [2025-02-19 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:20:06' and `end` < '2025-02-19 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:20:18] Production.INFO: count ==152 [2025-02-19 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:20:06 - End Time 2025-02-19 07:20:06 [2025-02-19 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508830', 'tblTempUsageDetail_20' ) start [2025-02-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508830', 'tblTempUsageDetail_20' ) end [2025-02-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508830', 'tblTempVendorCDR_20' ) start [2025-02-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508830', 'tblTempVendorCDR_20' ) end [2025-02-19 07:20:18] Production.INFO: ProcessCDR(1,14508830,1,1,2) [2025-02-19 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508830', 'tblTempUsageDetail_20' ) start [2025-02-19 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508830', 'tblTempUsageDetail_20' ) end [2025-02-19 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:20:22] Production.INFO: ==18741== Releasing lock... [2025-02-19 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:21:05 [end_date_ymd] => 2025-02-19 07:21:05 [RateCDR] => 1 ) [2025-02-19 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:21:05' and `end` < '2025-02-19 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:21:17] Production.INFO: count ==156 [2025-02-19 07:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:21:05 - End Time 2025-02-19 07:21:05 [2025-02-19 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508835', 'tblTempUsageDetail_20' ) start [2025-02-19 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508835', 'tblTempUsageDetail_20' ) end [2025-02-19 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508835', 'tblTempVendorCDR_20' ) start [2025-02-19 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508835', 'tblTempVendorCDR_20' ) end [2025-02-19 07:21:17] Production.INFO: ProcessCDR(1,14508835,1,1,2) [2025-02-19 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508835', 'tblTempUsageDetail_20' ) start [2025-02-19 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508835', 'tblTempUsageDetail_20' ) end [2025-02-19 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:21:20] Production.INFO: ==18815== Releasing lock... [2025-02-19 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:21:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:22:06 [end_date_ymd] => 2025-02-19 07:22:06 [RateCDR] => 1 ) [2025-02-19 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:22:06' and `end` < '2025-02-19 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:22:17] Production.INFO: count ==156 [2025-02-19 07:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:22:06 - End Time 2025-02-19 07:22:06 [2025-02-19 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508840', 'tblTempUsageDetail_20' ) start [2025-02-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508840', 'tblTempUsageDetail_20' ) end [2025-02-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508840', 'tblTempVendorCDR_20' ) start [2025-02-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508840', 'tblTempVendorCDR_20' ) end [2025-02-19 07:22:17] Production.INFO: ProcessCDR(1,14508840,1,1,2) [2025-02-19 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508840', 'tblTempUsageDetail_20' ) start [2025-02-19 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508840', 'tblTempUsageDetail_20' ) end [2025-02-19 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:22:21] Production.INFO: ==18885== Releasing lock... [2025-02-19 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:23:06 [end_date_ymd] => 2025-02-19 07:23:06 [RateCDR] => 1 ) [2025-02-19 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:23:06' and `end` < '2025-02-19 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:23:17] Production.INFO: count ==156 [2025-02-19 07:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:23:06 - End Time 2025-02-19 07:23:06 [2025-02-19 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508845', 'tblTempUsageDetail_20' ) start [2025-02-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508845', 'tblTempUsageDetail_20' ) end [2025-02-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508845', 'tblTempVendorCDR_20' ) start [2025-02-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508845', 'tblTempVendorCDR_20' ) end [2025-02-19 07:23:17] Production.INFO: ProcessCDR(1,14508845,1,1,2) [2025-02-19 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508845', 'tblTempUsageDetail_20' ) start [2025-02-19 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508845', 'tblTempUsageDetail_20' ) end [2025-02-19 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:23:21] Production.INFO: ==18999== Releasing lock... [2025-02-19 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:24:06 [end_date_ymd] => 2025-02-19 07:24:06 [RateCDR] => 1 ) [2025-02-19 07:24:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:24:06' and `end` < '2025-02-19 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:24:18] Production.INFO: count ==158 [2025-02-19 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:24:06 - End Time 2025-02-19 07:24:06 [2025-02-19 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508850', 'tblTempUsageDetail_20' ) start [2025-02-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508850', 'tblTempUsageDetail_20' ) end [2025-02-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508850', 'tblTempVendorCDR_20' ) start [2025-02-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508850', 'tblTempVendorCDR_20' ) end [2025-02-19 07:24:18] Production.INFO: ProcessCDR(1,14508850,1,1,2) [2025-02-19 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508850', 'tblTempUsageDetail_20' ) start [2025-02-19 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508850', 'tblTempUsageDetail_20' ) end [2025-02-19 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:24:22] Production.INFO: ==19070== Releasing lock... [2025-02-19 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:25:05 [end_date_ymd] => 2025-02-19 07:25:05 [RateCDR] => 1 ) [2025-02-19 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:25:05' and `end` < '2025-02-19 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:25:17] Production.INFO: count ==160 [2025-02-19 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:25:05 - End Time 2025-02-19 07:25:05 [2025-02-19 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508855', 'tblTempUsageDetail_20' ) start [2025-02-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508855', 'tblTempUsageDetail_20' ) end [2025-02-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508855', 'tblTempVendorCDR_20' ) start [2025-02-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508855', 'tblTempVendorCDR_20' ) end [2025-02-19 07:25:17] Production.INFO: ProcessCDR(1,14508855,1,1,2) [2025-02-19 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508855', 'tblTempUsageDetail_20' ) start [2025-02-19 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508855', 'tblTempUsageDetail_20' ) end [2025-02-19 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:25:20] Production.INFO: ==19144== Releasing lock... [2025-02-19 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:26:06 [end_date_ymd] => 2025-02-19 07:26:06 [RateCDR] => 1 ) [2025-02-19 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:26:06' and `end` < '2025-02-19 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:26:18] Production.INFO: count ==160 [2025-02-19 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:26:06 - End Time 2025-02-19 07:26:06 [2025-02-19 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508860', 'tblTempUsageDetail_20' ) start [2025-02-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508860', 'tblTempUsageDetail_20' ) end [2025-02-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508860', 'tblTempVendorCDR_20' ) start [2025-02-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508860', 'tblTempVendorCDR_20' ) end [2025-02-19 07:26:18] Production.INFO: ProcessCDR(1,14508860,1,1,2) [2025-02-19 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508860', 'tblTempUsageDetail_20' ) start [2025-02-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508860', 'tblTempUsageDetail_20' ) end [2025-02-19 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:26:22] Production.INFO: ==19217== Releasing lock... [2025-02-19 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:27:05 [end_date_ymd] => 2025-02-19 07:27:05 [RateCDR] => 1 ) [2025-02-19 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:27:05' and `end` < '2025-02-19 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:27:17] Production.INFO: count ==160 [2025-02-19 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:27:05 - End Time 2025-02-19 07:27:05 [2025-02-19 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508865', 'tblTempUsageDetail_20' ) start [2025-02-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508865', 'tblTempUsageDetail_20' ) end [2025-02-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508865', 'tblTempVendorCDR_20' ) start [2025-02-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508865', 'tblTempVendorCDR_20' ) end [2025-02-19 07:27:17] Production.INFO: ProcessCDR(1,14508865,1,1,2) [2025-02-19 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508865', 'tblTempUsageDetail_20' ) start [2025-02-19 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508865', 'tblTempUsageDetail_20' ) end [2025-02-19 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:27:21] Production.INFO: ==19287== Releasing lock... [2025-02-19 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:28:06 [end_date_ymd] => 2025-02-19 07:28:06 [RateCDR] => 1 ) [2025-02-19 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:28:06' and `end` < '2025-02-19 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:28:18] Production.INFO: count ==160 [2025-02-19 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:28:06 - End Time 2025-02-19 07:28:06 [2025-02-19 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508870', 'tblTempUsageDetail_20' ) start [2025-02-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508870', 'tblTempUsageDetail_20' ) end [2025-02-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508870', 'tblTempVendorCDR_20' ) start [2025-02-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508870', 'tblTempVendorCDR_20' ) end [2025-02-19 07:28:18] Production.INFO: ProcessCDR(1,14508870,1,1,2) [2025-02-19 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508870', 'tblTempUsageDetail_20' ) start [2025-02-19 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508870', 'tblTempUsageDetail_20' ) end [2025-02-19 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:28:22] Production.INFO: ==19357== Releasing lock... [2025-02-19 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:29:05 [end_date_ymd] => 2025-02-19 07:29:05 [RateCDR] => 1 ) [2025-02-19 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:29:05' and `end` < '2025-02-19 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:29:17] Production.INFO: count ==160 [2025-02-19 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:29:05 - End Time 2025-02-19 07:29:05 [2025-02-19 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508875', 'tblTempUsageDetail_20' ) start [2025-02-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508875', 'tblTempUsageDetail_20' ) end [2025-02-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508875', 'tblTempVendorCDR_20' ) start [2025-02-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508875', 'tblTempVendorCDR_20' ) end [2025-02-19 07:29:17] Production.INFO: ProcessCDR(1,14508875,1,1,2) [2025-02-19 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508875', 'tblTempUsageDetail_20' ) start [2025-02-19 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508875', 'tblTempUsageDetail_20' ) end [2025-02-19 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:29:21] Production.INFO: ==19427== Releasing lock... [2025-02-19 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:30:07 [end_date_ymd] => 2025-02-19 07:30:07 [RateCDR] => 1 ) [2025-02-19 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:30:07' and `end` < '2025-02-19 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:30:18] Production.INFO: count ==158 [2025-02-19 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:30:07 - End Time 2025-02-19 07:30:07 [2025-02-19 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508881', 'tblTempUsageDetail_20' ) start [2025-02-19 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508881', 'tblTempUsageDetail_20' ) end [2025-02-19 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508881', 'tblTempVendorCDR_20' ) start [2025-02-19 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508881', 'tblTempVendorCDR_20' ) end [2025-02-19 07:30:18] Production.INFO: ProcessCDR(1,14508881,1,1,2) [2025-02-19 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508881', 'tblTempUsageDetail_20' ) start [2025-02-19 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508881', 'tblTempUsageDetail_20' ) end [2025-02-19 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:30:24] Production.INFO: ==19499== Releasing lock... [2025-02-19 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:30:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:31:06 [end_date_ymd] => 2025-02-19 07:31:06 [RateCDR] => 1 ) [2025-02-19 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:31:06' and `end` < '2025-02-19 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:31:18] Production.INFO: count ==158 [2025-02-19 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:31:06 - End Time 2025-02-19 07:31:06 [2025-02-19 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508886', 'tblTempUsageDetail_20' ) start [2025-02-19 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508886', 'tblTempUsageDetail_20' ) end [2025-02-19 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508886', 'tblTempVendorCDR_20' ) start [2025-02-19 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508886', 'tblTempVendorCDR_20' ) end [2025-02-19 07:31:18] Production.INFO: ProcessCDR(1,14508886,1,1,2) [2025-02-19 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508886', 'tblTempUsageDetail_20' ) start [2025-02-19 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508886', 'tblTempUsageDetail_20' ) end [2025-02-19 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:31:22] Production.INFO: ==19573== Releasing lock... [2025-02-19 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:32:05 [end_date_ymd] => 2025-02-19 07:32:05 [RateCDR] => 1 ) [2025-02-19 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:32:05' and `end` < '2025-02-19 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:32:17] Production.INFO: count ==158 [2025-02-19 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:32:05 - End Time 2025-02-19 07:32:05 [2025-02-19 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508891', 'tblTempUsageDetail_20' ) start [2025-02-19 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508891', 'tblTempUsageDetail_20' ) end [2025-02-19 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508891', 'tblTempVendorCDR_20' ) start [2025-02-19 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508891', 'tblTempVendorCDR_20' ) end [2025-02-19 07:32:17] Production.INFO: ProcessCDR(1,14508891,1,1,2) [2025-02-19 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508891', 'tblTempUsageDetail_20' ) start [2025-02-19 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508891', 'tblTempUsageDetail_20' ) end [2025-02-19 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:32:20] Production.INFO: ==19643== Releasing lock... [2025-02-19 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:33:06 [end_date_ymd] => 2025-02-19 07:33:06 [RateCDR] => 1 ) [2025-02-19 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:33:06' and `end` < '2025-02-19 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:33:17] Production.INFO: count ==157 [2025-02-19 07:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:33:06 - End Time 2025-02-19 07:33:06 [2025-02-19 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508896', 'tblTempUsageDetail_20' ) start [2025-02-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508896', 'tblTempUsageDetail_20' ) end [2025-02-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508896', 'tblTempVendorCDR_20' ) start [2025-02-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508896', 'tblTempVendorCDR_20' ) end [2025-02-19 07:33:17] Production.INFO: ProcessCDR(1,14508896,1,1,2) [2025-02-19 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508896', 'tblTempUsageDetail_20' ) start [2025-02-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508896', 'tblTempUsageDetail_20' ) end [2025-02-19 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:33:21] Production.INFO: ==19716== Releasing lock... [2025-02-19 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-19 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:34:06 [end_date_ymd] => 2025-02-19 07:34:06 [RateCDR] => 1 ) [2025-02-19 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:34:06' and `end` < '2025-02-19 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:34:17] Production.INFO: count ==158 [2025-02-19 07:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:34:06 - End Time 2025-02-19 07:34:06 [2025-02-19 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508901', 'tblTempUsageDetail_20' ) start [2025-02-19 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508901', 'tblTempUsageDetail_20' ) end [2025-02-19 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508901', 'tblTempVendorCDR_20' ) start [2025-02-19 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508901', 'tblTempVendorCDR_20' ) end [2025-02-19 07:34:17] Production.INFO: ProcessCDR(1,14508901,1,1,2) [2025-02-19 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508901', 'tblTempUsageDetail_20' ) start [2025-02-19 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508901', 'tblTempUsageDetail_20' ) end [2025-02-19 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:34:23] Production.INFO: ==19791== Releasing lock... [2025-02-19 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:34:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:35:05 [end_date_ymd] => 2025-02-19 07:35:05 [RateCDR] => 1 ) [2025-02-19 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:35:05' and `end` < '2025-02-19 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:35:17] Production.INFO: count ==158 [2025-02-19 07:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:35:05 - End Time 2025-02-19 07:35:05 [2025-02-19 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508906', 'tblTempUsageDetail_20' ) start [2025-02-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508906', 'tblTempUsageDetail_20' ) end [2025-02-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508906', 'tblTempVendorCDR_20' ) start [2025-02-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508906', 'tblTempVendorCDR_20' ) end [2025-02-19 07:35:17] Production.INFO: ProcessCDR(1,14508906,1,1,2) [2025-02-19 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508906', 'tblTempUsageDetail_20' ) start [2025-02-19 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508906', 'tblTempUsageDetail_20' ) end [2025-02-19 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:35:20] Production.INFO: ==19865== Releasing lock... [2025-02-19 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:36:05 [end_date_ymd] => 2025-02-19 07:36:05 [RateCDR] => 1 ) [2025-02-19 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:36:05' and `end` < '2025-02-19 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:36:17] Production.INFO: count ==158 [2025-02-19 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:36:05 - End Time 2025-02-19 07:36:05 [2025-02-19 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508911', 'tblTempUsageDetail_20' ) start [2025-02-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508911', 'tblTempUsageDetail_20' ) end [2025-02-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508911', 'tblTempVendorCDR_20' ) start [2025-02-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508911', 'tblTempVendorCDR_20' ) end [2025-02-19 07:36:17] Production.INFO: ProcessCDR(1,14508911,1,1,2) [2025-02-19 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508911', 'tblTempUsageDetail_20' ) start [2025-02-19 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508911', 'tblTempUsageDetail_20' ) end [2025-02-19 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:36:20] Production.INFO: ==19938== Releasing lock... [2025-02-19 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-19 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:37:05 [end_date_ymd] => 2025-02-19 07:37:05 [RateCDR] => 1 ) [2025-02-19 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:37:05' and `end` < '2025-02-19 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:37:17] Production.INFO: count ==162 [2025-02-19 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:37:05 - End Time 2025-02-19 07:37:05 [2025-02-19 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508916', 'tblTempUsageDetail_20' ) start [2025-02-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508916', 'tblTempUsageDetail_20' ) end [2025-02-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508916', 'tblTempVendorCDR_20' ) start [2025-02-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508916', 'tblTempVendorCDR_20' ) end [2025-02-19 07:37:17] Production.INFO: ProcessCDR(1,14508916,1,1,2) [2025-02-19 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508916', 'tblTempUsageDetail_20' ) start [2025-02-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508916', 'tblTempUsageDetail_20' ) end [2025-02-19 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:37:20] Production.INFO: ==20012== Releasing lock... [2025-02-19 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:38:05 [end_date_ymd] => 2025-02-19 07:38:05 [RateCDR] => 1 ) [2025-02-19 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:38:05' and `end` < '2025-02-19 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:38:17] Production.INFO: count ==162 [2025-02-19 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:38:05 - End Time 2025-02-19 07:38:05 [2025-02-19 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508921', 'tblTempUsageDetail_20' ) start [2025-02-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508921', 'tblTempUsageDetail_20' ) end [2025-02-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508921', 'tblTempVendorCDR_20' ) start [2025-02-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508921', 'tblTempVendorCDR_20' ) end [2025-02-19 07:38:17] Production.INFO: ProcessCDR(1,14508921,1,1,2) [2025-02-19 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508921', 'tblTempUsageDetail_20' ) start [2025-02-19 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508921', 'tblTempUsageDetail_20' ) end [2025-02-19 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:38:20] Production.INFO: ==20125== Releasing lock... [2025-02-19 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:39:04 [end_date_ymd] => 2025-02-19 07:39:04 [RateCDR] => 1 ) [2025-02-19 07:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:39:04' and `end` < '2025-02-19 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:39:16] Production.INFO: count ==162 [2025-02-19 07:39:16] Production.ERROR: pbx CDR StartTime 2025-02-19 04:39:04 - End Time 2025-02-19 07:39:04 [2025-02-19 07:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508926', 'tblTempUsageDetail_20' ) start [2025-02-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508926', 'tblTempUsageDetail_20' ) end [2025-02-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508926', 'tblTempVendorCDR_20' ) start [2025-02-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508926', 'tblTempVendorCDR_20' ) end [2025-02-19 07:39:16] Production.INFO: ProcessCDR(1,14508926,1,1,2) [2025-02-19 07:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508926', 'tblTempUsageDetail_20' ) start [2025-02-19 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508926', 'tblTempUsageDetail_20' ) end [2025-02-19 07:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:39:19] Production.INFO: ==20197== Releasing lock... [2025-02-19 07:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:39:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:40:06 [end_date_ymd] => 2025-02-19 07:40:06 [RateCDR] => 1 ) [2025-02-19 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:40:06' and `end` < '2025-02-19 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:40:18] Production.INFO: count ==164 [2025-02-19 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:40:06 - End Time 2025-02-19 07:40:06 [2025-02-19 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508931', 'tblTempUsageDetail_20' ) start [2025-02-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508931', 'tblTempUsageDetail_20' ) end [2025-02-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508931', 'tblTempVendorCDR_20' ) start [2025-02-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508931', 'tblTempVendorCDR_20' ) end [2025-02-19 07:40:18] Production.INFO: ProcessCDR(1,14508931,1,1,2) [2025-02-19 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508931', 'tblTempUsageDetail_20' ) start [2025-02-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508931', 'tblTempUsageDetail_20' ) end [2025-02-19 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:40:22] Production.INFO: ==20270== Releasing lock... [2025-02-19 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:41:05 [end_date_ymd] => 2025-02-19 07:41:05 [RateCDR] => 1 ) [2025-02-19 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:41:05' and `end` < '2025-02-19 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:41:17] Production.INFO: count ==164 [2025-02-19 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:41:05 - End Time 2025-02-19 07:41:05 [2025-02-19 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508937', 'tblTempUsageDetail_20' ) start [2025-02-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508937', 'tblTempUsageDetail_20' ) end [2025-02-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508937', 'tblTempVendorCDR_20' ) start [2025-02-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508937', 'tblTempVendorCDR_20' ) end [2025-02-19 07:41:17] Production.INFO: ProcessCDR(1,14508937,1,1,2) [2025-02-19 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508937', 'tblTempUsageDetail_20' ) start [2025-02-19 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508937', 'tblTempUsageDetail_20' ) end [2025-02-19 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:41:20] Production.INFO: ==20342== Releasing lock... [2025-02-19 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:41:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:42:06 [end_date_ymd] => 2025-02-19 07:42:06 [RateCDR] => 1 ) [2025-02-19 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:42:06' and `end` < '2025-02-19 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:42:18] Production.INFO: count ==164 [2025-02-19 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:42:06 - End Time 2025-02-19 07:42:06 [2025-02-19 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508942', 'tblTempUsageDetail_20' ) start [2025-02-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508942', 'tblTempUsageDetail_20' ) end [2025-02-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508942', 'tblTempVendorCDR_20' ) start [2025-02-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508942', 'tblTempVendorCDR_20' ) end [2025-02-19 07:42:18] Production.INFO: ProcessCDR(1,14508942,1,1,2) [2025-02-19 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508942', 'tblTempUsageDetail_20' ) start [2025-02-19 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508942', 'tblTempUsageDetail_20' ) end [2025-02-19 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:42:21] Production.INFO: ==20412== Releasing lock... [2025-02-19 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:43:05 [end_date_ymd] => 2025-02-19 07:43:05 [RateCDR] => 1 ) [2025-02-19 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:43:05' and `end` < '2025-02-19 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:43:17] Production.INFO: count ==164 [2025-02-19 07:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:43:05 - End Time 2025-02-19 07:43:05 [2025-02-19 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508947', 'tblTempUsageDetail_20' ) start [2025-02-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508947', 'tblTempUsageDetail_20' ) end [2025-02-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508947', 'tblTempVendorCDR_20' ) start [2025-02-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508947', 'tblTempVendorCDR_20' ) end [2025-02-19 07:43:17] Production.INFO: ProcessCDR(1,14508947,1,1,2) [2025-02-19 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508947', 'tblTempUsageDetail_20' ) start [2025-02-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508947', 'tblTempUsageDetail_20' ) end [2025-02-19 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:43:20] Production.INFO: ==20483== Releasing lock... [2025-02-19 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:43:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:44:05 [end_date_ymd] => 2025-02-19 07:44:05 [RateCDR] => 1 ) [2025-02-19 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:44:05' and `end` < '2025-02-19 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:44:17] Production.INFO: count ==164 [2025-02-19 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:44:05 - End Time 2025-02-19 07:44:05 [2025-02-19 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508952', 'tblTempUsageDetail_20' ) start [2025-02-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508952', 'tblTempUsageDetail_20' ) end [2025-02-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508952', 'tblTempVendorCDR_20' ) start [2025-02-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508952', 'tblTempVendorCDR_20' ) end [2025-02-19 07:44:17] Production.INFO: ProcessCDR(1,14508952,1,1,2) [2025-02-19 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508952', 'tblTempUsageDetail_20' ) start [2025-02-19 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508952', 'tblTempUsageDetail_20' ) end [2025-02-19 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:44:20] Production.INFO: ==20553== Releasing lock... [2025-02-19 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:44:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:45:05 [end_date_ymd] => 2025-02-19 07:45:05 [RateCDR] => 1 ) [2025-02-19 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:45:05' and `end` < '2025-02-19 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:45:16] Production.INFO: count ==164 [2025-02-19 07:45:16] Production.ERROR: pbx CDR StartTime 2025-02-19 04:45:05 - End Time 2025-02-19 07:45:05 [2025-02-19 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508956', 'tblTempUsageDetail_20' ) start [2025-02-19 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508956', 'tblTempUsageDetail_20' ) end [2025-02-19 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508956', 'tblTempVendorCDR_20' ) start [2025-02-19 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508956', 'tblTempVendorCDR_20' ) end [2025-02-19 07:45:16] Production.INFO: ProcessCDR(1,14508956,1,1,2) [2025-02-19 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508956', 'tblTempUsageDetail_20' ) start [2025-02-19 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508956', 'tblTempUsageDetail_20' ) end [2025-02-19 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:45:20] Production.INFO: ==20627== Releasing lock... [2025-02-19 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:46:05 [end_date_ymd] => 2025-02-19 07:46:05 [RateCDR] => 1 ) [2025-02-19 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:46:05' and `end` < '2025-02-19 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:46:17] Production.INFO: count ==164 [2025-02-19 07:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:46:05 - End Time 2025-02-19 07:46:05 [2025-02-19 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508962', 'tblTempUsageDetail_20' ) start [2025-02-19 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508962', 'tblTempUsageDetail_20' ) end [2025-02-19 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508962', 'tblTempVendorCDR_20' ) start [2025-02-19 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508962', 'tblTempVendorCDR_20' ) end [2025-02-19 07:46:17] Production.INFO: ProcessCDR(1,14508962,1,1,2) [2025-02-19 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508962', 'tblTempUsageDetail_20' ) start [2025-02-19 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508962', 'tblTempUsageDetail_20' ) end [2025-02-19 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:46:20] Production.INFO: ==20698== Releasing lock... [2025-02-19 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:46:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:47:05 [end_date_ymd] => 2025-02-19 07:47:05 [RateCDR] => 1 ) [2025-02-19 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:47:05' and `end` < '2025-02-19 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:47:16] Production.INFO: count ==165 [2025-02-19 07:47:16] Production.ERROR: pbx CDR StartTime 2025-02-19 04:47:05 - End Time 2025-02-19 07:47:05 [2025-02-19 07:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508967', 'tblTempUsageDetail_20' ) start [2025-02-19 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508967', 'tblTempUsageDetail_20' ) end [2025-02-19 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508967', 'tblTempVendorCDR_20' ) start [2025-02-19 07:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508967', 'tblTempVendorCDR_20' ) end [2025-02-19 07:47:16] Production.INFO: ProcessCDR(1,14508967,1,1,2) [2025-02-19 07:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508967', 'tblTempUsageDetail_20' ) start [2025-02-19 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508967', 'tblTempUsageDetail_20' ) end [2025-02-19 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:47:21] Production.INFO: ==20767== Releasing lock... [2025-02-19 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:48:05 [end_date_ymd] => 2025-02-19 07:48:05 [RateCDR] => 1 ) [2025-02-19 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:48:05' and `end` < '2025-02-19 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:48:17] Production.INFO: count ==167 [2025-02-19 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:48:05 - End Time 2025-02-19 07:48:05 [2025-02-19 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508972', 'tblTempUsageDetail_20' ) start [2025-02-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508972', 'tblTempUsageDetail_20' ) end [2025-02-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508972', 'tblTempVendorCDR_20' ) start [2025-02-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508972', 'tblTempVendorCDR_20' ) end [2025-02-19 07:48:17] Production.INFO: ProcessCDR(1,14508972,1,1,2) [2025-02-19 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508972', 'tblTempUsageDetail_20' ) start [2025-02-19 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508972', 'tblTempUsageDetail_20' ) end [2025-02-19 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:48:20] Production.INFO: ==20838== Releasing lock... [2025-02-19 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:48:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:49:05 [end_date_ymd] => 2025-02-19 07:49:05 [RateCDR] => 1 ) [2025-02-19 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:49:05' and `end` < '2025-02-19 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:49:17] Production.INFO: count ==171 [2025-02-19 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:49:05 - End Time 2025-02-19 07:49:05 [2025-02-19 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508977', 'tblTempUsageDetail_20' ) start [2025-02-19 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508977', 'tblTempUsageDetail_20' ) end [2025-02-19 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508977', 'tblTempVendorCDR_20' ) start [2025-02-19 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508977', 'tblTempVendorCDR_20' ) end [2025-02-19 07:49:17] Production.INFO: ProcessCDR(1,14508977,1,1,2) [2025-02-19 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508977', 'tblTempUsageDetail_20' ) start [2025-02-19 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508977', 'tblTempUsageDetail_20' ) end [2025-02-19 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:49:20] Production.INFO: ==20911== Releasing lock... [2025-02-19 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:49:20] Production.INFO: 30 MB #Memory Used# [2025-02-19 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:50:06 [end_date_ymd] => 2025-02-19 07:50:06 [RateCDR] => 1 ) [2025-02-19 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:50:06' and `end` < '2025-02-19 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:50:17] Production.INFO: count ==186 [2025-02-19 07:50:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:50:06 - End Time 2025-02-19 07:50:06 [2025-02-19 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508983', 'tblTempUsageDetail_20' ) start [2025-02-19 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508983', 'tblTempUsageDetail_20' ) end [2025-02-19 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508983', 'tblTempVendorCDR_20' ) start [2025-02-19 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508983', 'tblTempVendorCDR_20' ) end [2025-02-19 07:50:17] Production.INFO: ProcessCDR(1,14508983,1,1,2) [2025-02-19 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508983', 'tblTempUsageDetail_20' ) start [2025-02-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508983', 'tblTempUsageDetail_20' ) end [2025-02-19 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:50:21] Production.INFO: ==20984== Releasing lock... [2025-02-19 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:50:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:51:04 [end_date_ymd] => 2025-02-19 07:51:04 [RateCDR] => 1 ) [2025-02-19 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:51:04' and `end` < '2025-02-19 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:51:16] Production.INFO: count ==202 [2025-02-19 07:51:16] Production.ERROR: pbx CDR StartTime 2025-02-19 04:51:04 - End Time 2025-02-19 07:51:04 [2025-02-19 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508988', 'tblTempUsageDetail_20' ) start [2025-02-19 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508988', 'tblTempUsageDetail_20' ) end [2025-02-19 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508988', 'tblTempVendorCDR_20' ) start [2025-02-19 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508988', 'tblTempVendorCDR_20' ) end [2025-02-19 07:51:16] Production.INFO: ProcessCDR(1,14508988,1,1,2) [2025-02-19 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508988', 'tblTempUsageDetail_20' ) start [2025-02-19 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508988', 'tblTempUsageDetail_20' ) end [2025-02-19 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:51:21] Production.INFO: ==21057== Releasing lock... [2025-02-19 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:52:05 [end_date_ymd] => 2025-02-19 07:52:05 [RateCDR] => 1 ) [2025-02-19 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:52:05' and `end` < '2025-02-19 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:52:17] Production.INFO: count ==202 [2025-02-19 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:52:05 - End Time 2025-02-19 07:52:05 [2025-02-19 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508993', 'tblTempUsageDetail_20' ) start [2025-02-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508993', 'tblTempUsageDetail_20' ) end [2025-02-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508993', 'tblTempVendorCDR_20' ) start [2025-02-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508993', 'tblTempVendorCDR_20' ) end [2025-02-19 07:52:17] Production.INFO: ProcessCDR(1,14508993,1,1,2) [2025-02-19 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508993', 'tblTempUsageDetail_20' ) start [2025-02-19 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508993', 'tblTempUsageDetail_20' ) end [2025-02-19 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:52:20] Production.INFO: ==21128== Releasing lock... [2025-02-19 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:53:06 [end_date_ymd] => 2025-02-19 07:53:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 04:53:06' and `end` < '2025-02-19 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-02-19 07:53:17] Production.INFO: count ==202 [2025-02-19 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:53:06 - End Time 2025-02-19 07:53:06 [2025-02-19 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508998', 'tblTempUsageDetail_20' ) start [2025-02-19 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14508998', 'tblTempUsageDetail_20' ) end [2025-02-19 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508998', 'tblTempVendorCDR_20' ) start [2025-02-19 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14508998', 'tblTempVendorCDR_20' ) end [2025-02-19 07:53:18] Production.INFO: ProcessCDR(1,14508998,1,1,2) [2025-02-19 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14508998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14508998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14508998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14508998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508998', 'tblTempUsageDetail_20' ) start [2025-02-19 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14508998', 'tblTempUsageDetail_20' ) end [2025-02-19 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:53:21] Production.INFO: ==21198== Releasing lock... [2025-02-19 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:54:05 [end_date_ymd] => 2025-02-19 07:54:05 [RateCDR] => 1 ) [2025-02-19 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:54:05' and `end` < '2025-02-19 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:54:17] Production.INFO: count ==202 [2025-02-19 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:54:05 - End Time 2025-02-19 07:54:05 [2025-02-19 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509003', 'tblTempUsageDetail_20' ) start [2025-02-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509003', 'tblTempUsageDetail_20' ) end [2025-02-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509003', 'tblTempVendorCDR_20' ) start [2025-02-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509003', 'tblTempVendorCDR_20' ) end [2025-02-19 07:54:17] Production.INFO: ProcessCDR(1,14509003,1,1,2) [2025-02-19 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509003', 'tblTempUsageDetail_20' ) start [2025-02-19 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509003', 'tblTempUsageDetail_20' ) end [2025-02-19 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:54:20] Production.INFO: ==21313== Releasing lock... [2025-02-19 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:55:05 [end_date_ymd] => 2025-02-19 07:55:05 [RateCDR] => 1 ) [2025-02-19 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:55:05' and `end` < '2025-02-19 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:55:17] Production.INFO: count ==202 [2025-02-19 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:55:05 - End Time 2025-02-19 07:55:05 [2025-02-19 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509008', 'tblTempUsageDetail_20' ) start [2025-02-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509008', 'tblTempUsageDetail_20' ) end [2025-02-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509008', 'tblTempVendorCDR_20' ) start [2025-02-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509008', 'tblTempVendorCDR_20' ) end [2025-02-19 07:55:17] Production.INFO: ProcessCDR(1,14509008,1,1,2) [2025-02-19 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509008', 'tblTempUsageDetail_20' ) start [2025-02-19 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509008', 'tblTempUsageDetail_20' ) end [2025-02-19 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:55:20] Production.INFO: ==21385== Releasing lock... [2025-02-19 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:55:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:56:05 [end_date_ymd] => 2025-02-19 07:56:05 [RateCDR] => 1 ) [2025-02-19 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:56:05' and `end` < '2025-02-19 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:56:17] Production.INFO: count ==209 [2025-02-19 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:56:05 - End Time 2025-02-19 07:56:05 [2025-02-19 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509013', 'tblTempUsageDetail_20' ) start [2025-02-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509013', 'tblTempUsageDetail_20' ) end [2025-02-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509013', 'tblTempVendorCDR_20' ) start [2025-02-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509013', 'tblTempVendorCDR_20' ) end [2025-02-19 07:56:17] Production.INFO: ProcessCDR(1,14509013,1,1,2) [2025-02-19 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509013', 'tblTempUsageDetail_20' ) start [2025-02-19 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509013', 'tblTempUsageDetail_20' ) end [2025-02-19 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:56:22] Production.INFO: ==21457== Releasing lock... [2025-02-19 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:57:05 [end_date_ymd] => 2025-02-19 07:57:05 [RateCDR] => 1 ) [2025-02-19 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:57:05' and `end` < '2025-02-19 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:57:17] Production.INFO: count ==209 [2025-02-19 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:57:05 - End Time 2025-02-19 07:57:05 [2025-02-19 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509018', 'tblTempUsageDetail_20' ) start [2025-02-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509018', 'tblTempUsageDetail_20' ) end [2025-02-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509018', 'tblTempVendorCDR_20' ) start [2025-02-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509018', 'tblTempVendorCDR_20' ) end [2025-02-19 07:57:17] Production.INFO: ProcessCDR(1,14509018,1,1,2) [2025-02-19 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509018', 'tblTempUsageDetail_20' ) start [2025-02-19 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509018', 'tblTempUsageDetail_20' ) end [2025-02-19 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:57:20] Production.INFO: ==21526== Releasing lock... [2025-02-19 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:57:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:58:05 [end_date_ymd] => 2025-02-19 07:58:05 [RateCDR] => 1 ) [2025-02-19 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:58:05' and `end` < '2025-02-19 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:58:17] Production.INFO: count ==209 [2025-02-19 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 04:58:05 - End Time 2025-02-19 07:58:05 [2025-02-19 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509023', 'tblTempUsageDetail_20' ) start [2025-02-19 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509023', 'tblTempUsageDetail_20' ) end [2025-02-19 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509023', 'tblTempVendorCDR_20' ) start [2025-02-19 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509023', 'tblTempVendorCDR_20' ) end [2025-02-19 07:58:17] Production.INFO: ProcessCDR(1,14509023,1,1,2) [2025-02-19 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509023', 'tblTempUsageDetail_20' ) start [2025-02-19 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509023', 'tblTempUsageDetail_20' ) end [2025-02-19 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:58:20] Production.INFO: ==21598== Releasing lock... [2025-02-19 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:58:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-19 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 04:59:06 [end_date_ymd] => 2025-02-19 07:59:06 [RateCDR] => 1 ) [2025-02-19 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 04:59:06' and `end` < '2025-02-19 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 07:59:17] Production.INFO: count ==216 [2025-02-19 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-19 04:59:06 - End Time 2025-02-19 07:59:06 [2025-02-19 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509028', 'tblTempUsageDetail_20' ) start [2025-02-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509028', 'tblTempUsageDetail_20' ) end [2025-02-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509028', 'tblTempVendorCDR_20' ) start [2025-02-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509028', 'tblTempVendorCDR_20' ) end [2025-02-19 07:59:18] Production.INFO: ProcessCDR(1,14509028,1,1,2) [2025-02-19 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509028', 'tblTempUsageDetail_20' ) start [2025-02-19 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509028', 'tblTempUsageDetail_20' ) end [2025-02-19 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 07:59:22] Production.INFO: ==21669== Releasing lock... [2025-02-19 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 07:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:00:05 [end_date_ymd] => 2025-02-19 08:00:05 [RateCDR] => 1 ) [2025-02-19 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:00:05' and `end` < '2025-02-19 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:00:17] Production.INFO: count ==217 [2025-02-19 08:00:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:00:05 - End Time 2025-02-19 08:00:05 [2025-02-19 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509033', 'tblTempUsageDetail_20' ) start [2025-02-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509033', 'tblTempUsageDetail_20' ) end [2025-02-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509033', 'tblTempVendorCDR_20' ) start [2025-02-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509033', 'tblTempVendorCDR_20' ) end [2025-02-19 08:00:17] Production.INFO: ProcessCDR(1,14509033,1,1,2) [2025-02-19 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509033', 'tblTempUsageDetail_20' ) start [2025-02-19 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509033', 'tblTempUsageDetail_20' ) end [2025-02-19 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:00:21] Production.INFO: ==21743== Releasing lock... [2025-02-19 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:00:21] Production.INFO: 30 MB #Memory Used# [2025-02-19 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:01:06 [end_date_ymd] => 2025-02-19 08:01:06 [RateCDR] => 1 ) [2025-02-19 08:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:01:06' and `end` < '2025-02-19 08:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:01:17] Production.INFO: count ==238 [2025-02-19 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:01:06 - End Time 2025-02-19 08:01:06 [2025-02-19 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509039', 'tblTempUsageDetail_20' ) start [2025-02-19 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509039', 'tblTempUsageDetail_20' ) end [2025-02-19 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509039', 'tblTempVendorCDR_20' ) start [2025-02-19 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509039', 'tblTempVendorCDR_20' ) end [2025-02-19 08:01:17] Production.INFO: ProcessCDR(1,14509039,1,1,2) [2025-02-19 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509039', 'tblTempUsageDetail_20' ) start [2025-02-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509039', 'tblTempUsageDetail_20' ) end [2025-02-19 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:01:21] Production.INFO: ==21828== Releasing lock... [2025-02-19 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:02:05 [end_date_ymd] => 2025-02-19 08:02:05 [RateCDR] => 1 ) [2025-02-19 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:02:05' and `end` < '2025-02-19 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:02:17] Production.INFO: count ==238 [2025-02-19 08:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:02:05 - End Time 2025-02-19 08:02:05 [2025-02-19 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509044', 'tblTempUsageDetail_20' ) start [2025-02-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509044', 'tblTempUsageDetail_20' ) end [2025-02-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509044', 'tblTempVendorCDR_20' ) start [2025-02-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509044', 'tblTempVendorCDR_20' ) end [2025-02-19 08:02:17] Production.INFO: ProcessCDR(1,14509044,1,1,2) [2025-02-19 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509044', 'tblTempUsageDetail_20' ) start [2025-02-19 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509044', 'tblTempUsageDetail_20' ) end [2025-02-19 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:02:20] Production.INFO: ==21898== Releasing lock... [2025-02-19 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:02:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:03:06 [end_date_ymd] => 2025-02-19 08:03:06 [RateCDR] => 1 ) [2025-02-19 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:03:06' and `end` < '2025-02-19 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:03:18] Production.INFO: count ==239 [2025-02-19 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:03:06 - End Time 2025-02-19 08:03:06 [2025-02-19 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509049', 'tblTempUsageDetail_20' ) start [2025-02-19 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509049', 'tblTempUsageDetail_20' ) end [2025-02-19 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509049', 'tblTempVendorCDR_20' ) start [2025-02-19 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509049', 'tblTempVendorCDR_20' ) end [2025-02-19 08:03:18] Production.INFO: ProcessCDR(1,14509049,1,1,2) [2025-02-19 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509049', 'tblTempUsageDetail_20' ) start [2025-02-19 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509049', 'tblTempUsageDetail_20' ) end [2025-02-19 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:03:23] Production.INFO: ==21973== Releasing lock... [2025-02-19 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:03:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:04:05 [end_date_ymd] => 2025-02-19 08:04:05 [RateCDR] => 1 ) [2025-02-19 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:04:05' and `end` < '2025-02-19 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:04:16] Production.INFO: count ==242 [2025-02-19 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:04:05 - End Time 2025-02-19 08:04:05 [2025-02-19 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509054', 'tblTempUsageDetail_20' ) start [2025-02-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509054', 'tblTempUsageDetail_20' ) end [2025-02-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509054', 'tblTempVendorCDR_20' ) start [2025-02-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509054', 'tblTempVendorCDR_20' ) end [2025-02-19 08:04:17] Production.INFO: ProcessCDR(1,14509054,1,1,2) [2025-02-19 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509054', 'tblTempUsageDetail_20' ) start [2025-02-19 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509054', 'tblTempUsageDetail_20' ) end [2025-02-19 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:04:20] Production.INFO: ==22042== Releasing lock... [2025-02-19 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:04:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:05:05 [end_date_ymd] => 2025-02-19 08:05:05 [RateCDR] => 1 ) [2025-02-19 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:05:05' and `end` < '2025-02-19 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:05:17] Production.INFO: count ==253 [2025-02-19 08:05:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:05:05 - End Time 2025-02-19 08:05:05 [2025-02-19 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509059', 'tblTempUsageDetail_20' ) start [2025-02-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509059', 'tblTempUsageDetail_20' ) end [2025-02-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509059', 'tblTempVendorCDR_20' ) start [2025-02-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509059', 'tblTempVendorCDR_20' ) end [2025-02-19 08:05:17] Production.INFO: ProcessCDR(1,14509059,1,1,2) [2025-02-19 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509059', 'tblTempUsageDetail_20' ) start [2025-02-19 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509059', 'tblTempUsageDetail_20' ) end [2025-02-19 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:05:20] Production.INFO: ==22118== Releasing lock... [2025-02-19 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:05:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:06:05 [end_date_ymd] => 2025-02-19 08:06:05 [RateCDR] => 1 ) [2025-02-19 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:06:05' and `end` < '2025-02-19 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:06:17] Production.INFO: count ==256 [2025-02-19 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:06:05 - End Time 2025-02-19 08:06:05 [2025-02-19 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509064', 'tblTempUsageDetail_20' ) start [2025-02-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509064', 'tblTempUsageDetail_20' ) end [2025-02-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509064', 'tblTempVendorCDR_20' ) start [2025-02-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509064', 'tblTempVendorCDR_20' ) end [2025-02-19 08:06:17] Production.INFO: ProcessCDR(1,14509064,1,1,2) [2025-02-19 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509064', 'tblTempUsageDetail_20' ) start [2025-02-19 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509064', 'tblTempUsageDetail_20' ) end [2025-02-19 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:06:20] Production.INFO: ==22192== Releasing lock... [2025-02-19 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:06:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-19 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:07:05 [end_date_ymd] => 2025-02-19 08:07:05 [RateCDR] => 1 ) [2025-02-19 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:07:05' and `end` < '2025-02-19 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:07:17] Production.INFO: count ==269 [2025-02-19 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:07:05 - End Time 2025-02-19 08:07:05 [2025-02-19 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509069', 'tblTempUsageDetail_20' ) start [2025-02-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509069', 'tblTempUsageDetail_20' ) end [2025-02-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509069', 'tblTempVendorCDR_20' ) start [2025-02-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509069', 'tblTempVendorCDR_20' ) end [2025-02-19 08:07:17] Production.INFO: ProcessCDR(1,14509069,1,1,2) [2025-02-19 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509069', 'tblTempUsageDetail_20' ) start [2025-02-19 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509069', 'tblTempUsageDetail_20' ) end [2025-02-19 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:07:22] Production.INFO: ==22263== Releasing lock... [2025-02-19 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:07:22] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:08:05 [end_date_ymd] => 2025-02-19 08:08:05 [RateCDR] => 1 ) [2025-02-19 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:08:05' and `end` < '2025-02-19 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:08:17] Production.INFO: count ==275 [2025-02-19 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:08:05 - End Time 2025-02-19 08:08:05 [2025-02-19 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509074', 'tblTempUsageDetail_20' ) start [2025-02-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509074', 'tblTempUsageDetail_20' ) end [2025-02-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509074', 'tblTempVendorCDR_20' ) start [2025-02-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509074', 'tblTempVendorCDR_20' ) end [2025-02-19 08:08:17] Production.INFO: ProcessCDR(1,14509074,1,1,2) [2025-02-19 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509074', 'tblTempUsageDetail_20' ) start [2025-02-19 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509074', 'tblTempUsageDetail_20' ) end [2025-02-19 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:08:20] Production.INFO: ==22335== Releasing lock... [2025-02-19 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:09:06 [end_date_ymd] => 2025-02-19 08:09:06 [RateCDR] => 1 ) [2025-02-19 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:09:06' and `end` < '2025-02-19 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:09:17] Production.INFO: count ==276 [2025-02-19 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:09:06 - End Time 2025-02-19 08:09:06 [2025-02-19 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509079', 'tblTempUsageDetail_20' ) start [2025-02-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509079', 'tblTempUsageDetail_20' ) end [2025-02-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509079', 'tblTempVendorCDR_20' ) start [2025-02-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509079', 'tblTempVendorCDR_20' ) end [2025-02-19 08:09:17] Production.INFO: ProcessCDR(1,14509079,1,1,2) [2025-02-19 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509079', 'tblTempUsageDetail_20' ) start [2025-02-19 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509079', 'tblTempUsageDetail_20' ) end [2025-02-19 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:09:22] Production.INFO: ==22444== Releasing lock... [2025-02-19 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-19 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:10:05 [end_date_ymd] => 2025-02-19 08:10:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 05:10:05' and `end` < '2025-02-19 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-02-19 08:10:17] Production.INFO: count ==289 [2025-02-19 08:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:10:05 - End Time 2025-02-19 08:10:05 [2025-02-19 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509085', 'tblTempUsageDetail_20' ) start [2025-02-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509085', 'tblTempUsageDetail_20' ) end [2025-02-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509085', 'tblTempVendorCDR_20' ) start [2025-02-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509085', 'tblTempVendorCDR_20' ) end [2025-02-19 08:10:17] Production.INFO: ProcessCDR(1,14509085,1,1,2) [2025-02-19 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509085', 'tblTempUsageDetail_20' ) start [2025-02-19 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509085', 'tblTempUsageDetail_20' ) end [2025-02-19 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:10:21] Production.INFO: ==22516== Releasing lock... [2025-02-19 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:10:21] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:11:05 [end_date_ymd] => 2025-02-19 08:11:05 [RateCDR] => 1 ) [2025-02-19 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:11:05' and `end` < '2025-02-19 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:11:16] Production.INFO: count ==311 [2025-02-19 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:11:05 - End Time 2025-02-19 08:11:05 [2025-02-19 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509090', 'tblTempUsageDetail_20' ) start [2025-02-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509090', 'tblTempUsageDetail_20' ) end [2025-02-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509090', 'tblTempVendorCDR_20' ) start [2025-02-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509090', 'tblTempVendorCDR_20' ) end [2025-02-19 08:11:17] Production.INFO: ProcessCDR(1,14509090,1,1,2) [2025-02-19 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509090', 'tblTempUsageDetail_20' ) start [2025-02-19 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509090', 'tblTempUsageDetail_20' ) end [2025-02-19 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:11:20] Production.INFO: ==22590== Releasing lock... [2025-02-19 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:11:20] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:12:05 [end_date_ymd] => 2025-02-19 08:12:05 [RateCDR] => 1 ) [2025-02-19 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:12:05' and `end` < '2025-02-19 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:12:17] Production.INFO: count ==321 [2025-02-19 08:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:12:05 - End Time 2025-02-19 08:12:05 [2025-02-19 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509095', 'tblTempUsageDetail_20' ) start [2025-02-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509095', 'tblTempUsageDetail_20' ) end [2025-02-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509095', 'tblTempVendorCDR_20' ) start [2025-02-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509095', 'tblTempVendorCDR_20' ) end [2025-02-19 08:12:17] Production.INFO: ProcessCDR(1,14509095,1,1,2) [2025-02-19 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509095', 'tblTempUsageDetail_20' ) start [2025-02-19 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509095', 'tblTempUsageDetail_20' ) end [2025-02-19 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:12:21] Production.INFO: ==22660== Releasing lock... [2025-02-19 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-19 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:13:05 [end_date_ymd] => 2025-02-19 08:13:05 [RateCDR] => 1 ) [2025-02-19 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:13:05' and `end` < '2025-02-19 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:13:17] Production.INFO: count ==323 [2025-02-19 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:13:05 - End Time 2025-02-19 08:13:05 [2025-02-19 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509100', 'tblTempUsageDetail_20' ) start [2025-02-19 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509100', 'tblTempUsageDetail_20' ) end [2025-02-19 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509100', 'tblTempVendorCDR_20' ) start [2025-02-19 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509100', 'tblTempVendorCDR_20' ) end [2025-02-19 08:13:17] Production.INFO: ProcessCDR(1,14509100,1,1,2) [2025-02-19 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509100', 'tblTempUsageDetail_20' ) start [2025-02-19 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509100', 'tblTempUsageDetail_20' ) end [2025-02-19 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:13:20] Production.INFO: ==22732== Releasing lock... [2025-02-19 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:13:20] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:14:05 [end_date_ymd] => 2025-02-19 08:14:05 [RateCDR] => 1 ) [2025-02-19 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:14:05' and `end` < '2025-02-19 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:14:16] Production.INFO: count ==325 [2025-02-19 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:14:05 - End Time 2025-02-19 08:14:05 [2025-02-19 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509105', 'tblTempUsageDetail_20' ) start [2025-02-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509105', 'tblTempUsageDetail_20' ) end [2025-02-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509105', 'tblTempVendorCDR_20' ) start [2025-02-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509105', 'tblTempVendorCDR_20' ) end [2025-02-19 08:14:17] Production.INFO: ProcessCDR(1,14509105,1,1,2) [2025-02-19 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509105', 'tblTempUsageDetail_20' ) start [2025-02-19 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509105', 'tblTempUsageDetail_20' ) end [2025-02-19 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:14:21] Production.INFO: ==22807== Releasing lock... [2025-02-19 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:15:05 [end_date_ymd] => 2025-02-19 08:15:05 [RateCDR] => 1 ) [2025-02-19 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:15:05' and `end` < '2025-02-19 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:15:17] Production.INFO: count ==325 [2025-02-19 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:15:05 - End Time 2025-02-19 08:15:05 [2025-02-19 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509110', 'tblTempUsageDetail_20' ) start [2025-02-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509110', 'tblTempUsageDetail_20' ) end [2025-02-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509110', 'tblTempVendorCDR_20' ) start [2025-02-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509110', 'tblTempVendorCDR_20' ) end [2025-02-19 08:15:17] Production.INFO: ProcessCDR(1,14509110,1,1,2) [2025-02-19 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509110', 'tblTempUsageDetail_20' ) start [2025-02-19 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509110', 'tblTempUsageDetail_20' ) end [2025-02-19 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:15:20] Production.INFO: ==22879== Releasing lock... [2025-02-19 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:15:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:16:04 [end_date_ymd] => 2025-02-19 08:16:04 [RateCDR] => 1 ) [2025-02-19 08:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:16:04' and `end` < '2025-02-19 08:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:16:16] Production.INFO: count ==327 [2025-02-19 08:16:16] Production.ERROR: pbx CDR StartTime 2025-02-19 05:16:04 - End Time 2025-02-19 08:16:04 [2025-02-19 08:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509115', 'tblTempUsageDetail_20' ) start [2025-02-19 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509115', 'tblTempUsageDetail_20' ) end [2025-02-19 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509115', 'tblTempVendorCDR_20' ) start [2025-02-19 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509115', 'tblTempVendorCDR_20' ) end [2025-02-19 08:16:16] Production.INFO: ProcessCDR(1,14509115,1,1,2) [2025-02-19 08:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509115', 'tblTempUsageDetail_20' ) start [2025-02-19 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509115', 'tblTempUsageDetail_20' ) end [2025-02-19 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:16:20] Production.INFO: ==22949== Releasing lock... [2025-02-19 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:17:05 [end_date_ymd] => 2025-02-19 08:17:05 [RateCDR] => 1 ) [2025-02-19 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:17:05' and `end` < '2025-02-19 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:17:17] Production.INFO: count ==327 [2025-02-19 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:17:05 - End Time 2025-02-19 08:17:05 [2025-02-19 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509120', 'tblTempUsageDetail_20' ) start [2025-02-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509120', 'tblTempUsageDetail_20' ) end [2025-02-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509120', 'tblTempVendorCDR_20' ) start [2025-02-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509120', 'tblTempVendorCDR_20' ) end [2025-02-19 08:17:17] Production.INFO: ProcessCDR(1,14509120,1,1,2) [2025-02-19 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509120', 'tblTempUsageDetail_20' ) start [2025-02-19 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509120', 'tblTempUsageDetail_20' ) end [2025-02-19 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:17:20] Production.INFO: ==23022== Releasing lock... [2025-02-19 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:17:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:18:04 [end_date_ymd] => 2025-02-19 08:18:04 [RateCDR] => 1 ) [2025-02-19 08:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:18:04' and `end` < '2025-02-19 08:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:18:16] Production.INFO: count ==329 [2025-02-19 08:18:16] Production.ERROR: pbx CDR StartTime 2025-02-19 05:18:04 - End Time 2025-02-19 08:18:04 [2025-02-19 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509125', 'tblTempUsageDetail_20' ) start [2025-02-19 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509125', 'tblTempUsageDetail_20' ) end [2025-02-19 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509125', 'tblTempVendorCDR_20' ) start [2025-02-19 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509125', 'tblTempVendorCDR_20' ) end [2025-02-19 08:18:16] Production.INFO: ProcessCDR(1,14509125,1,1,2) [2025-02-19 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509125', 'tblTempUsageDetail_20' ) start [2025-02-19 08:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509125', 'tblTempUsageDetail_20' ) end [2025-02-19 08:18:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:18:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:18:19] Production.INFO: ==23106== Releasing lock... [2025-02-19 08:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:18:19] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:19:05 [end_date_ymd] => 2025-02-19 08:19:05 [RateCDR] => 1 ) [2025-02-19 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:19:05' and `end` < '2025-02-19 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:19:17] Production.INFO: count ==338 [2025-02-19 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:19:05 - End Time 2025-02-19 08:19:05 [2025-02-19 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509130', 'tblTempUsageDetail_20' ) start [2025-02-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509130', 'tblTempUsageDetail_20' ) end [2025-02-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509130', 'tblTempVendorCDR_20' ) start [2025-02-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509130', 'tblTempVendorCDR_20' ) end [2025-02-19 08:19:17] Production.INFO: ProcessCDR(1,14509130,1,1,2) [2025-02-19 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509130', 'tblTempUsageDetail_20' ) start [2025-02-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509130', 'tblTempUsageDetail_20' ) end [2025-02-19 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:19:22] Production.INFO: ==23178== Releasing lock... [2025-02-19 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:19:22] Production.INFO: 31 MB #Memory Used# [2025-02-19 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:20:06 [end_date_ymd] => 2025-02-19 08:20:06 [RateCDR] => 1 ) [2025-02-19 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:20:06' and `end` < '2025-02-19 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:20:18] Production.INFO: count ==370 [2025-02-19 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:20:06 - End Time 2025-02-19 08:20:06 [2025-02-19 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509135', 'tblTempUsageDetail_20' ) start [2025-02-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509135', 'tblTempUsageDetail_20' ) end [2025-02-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509135', 'tblTempVendorCDR_20' ) start [2025-02-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509135', 'tblTempVendorCDR_20' ) end [2025-02-19 08:20:18] Production.INFO: ProcessCDR(1,14509135,1,1,2) [2025-02-19 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509135', 'tblTempUsageDetail_20' ) start [2025-02-19 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509135', 'tblTempUsageDetail_20' ) end [2025-02-19 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:20:24] Production.INFO: ==23250== Releasing lock... [2025-02-19 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:20:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:21:05 [end_date_ymd] => 2025-02-19 08:21:05 [RateCDR] => 1 ) [2025-02-19 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:21:05' and `end` < '2025-02-19 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:21:17] Production.INFO: count ==392 [2025-02-19 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:21:05 - End Time 2025-02-19 08:21:05 [2025-02-19 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509141', 'tblTempUsageDetail_20' ) start [2025-02-19 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509141', 'tblTempUsageDetail_20' ) end [2025-02-19 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509141', 'tblTempVendorCDR_20' ) start [2025-02-19 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509141', 'tblTempVendorCDR_20' ) end [2025-02-19 08:21:17] Production.INFO: ProcessCDR(1,14509141,1,1,2) [2025-02-19 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509141', 'tblTempUsageDetail_20' ) start [2025-02-19 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509141', 'tblTempUsageDetail_20' ) end [2025-02-19 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:21:22] Production.INFO: ==23320== Releasing lock... [2025-02-19 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-19 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:22:06 [end_date_ymd] => 2025-02-19 08:22:06 [RateCDR] => 1 ) [2025-02-19 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:22:06' and `end` < '2025-02-19 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:22:17] Production.INFO: count ==409 [2025-02-19 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:22:06 - End Time 2025-02-19 08:22:06 [2025-02-19 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509146', 'tblTempUsageDetail_20' ) start [2025-02-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509146', 'tblTempUsageDetail_20' ) end [2025-02-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509146', 'tblTempVendorCDR_20' ) start [2025-02-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509146', 'tblTempVendorCDR_20' ) end [2025-02-19 08:22:18] Production.INFO: ProcessCDR(1,14509146,1,1,2) [2025-02-19 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509146', 'tblTempUsageDetail_20' ) start [2025-02-19 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509146', 'tblTempUsageDetail_20' ) end [2025-02-19 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:22:21] Production.INFO: ==23391== Releasing lock... [2025-02-19 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-19 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:23:05 [end_date_ymd] => 2025-02-19 08:23:05 [RateCDR] => 1 ) [2025-02-19 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:23:05' and `end` < '2025-02-19 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:23:17] Production.INFO: count ==420 [2025-02-19 08:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:23:05 - End Time 2025-02-19 08:23:05 [2025-02-19 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509151', 'tblTempUsageDetail_20' ) start [2025-02-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509151', 'tblTempUsageDetail_20' ) end [2025-02-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509151', 'tblTempVendorCDR_20' ) start [2025-02-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509151', 'tblTempVendorCDR_20' ) end [2025-02-19 08:23:17] Production.INFO: ProcessCDR(1,14509151,1,1,2) [2025-02-19 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509151', 'tblTempUsageDetail_20' ) start [2025-02-19 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509151', 'tblTempUsageDetail_20' ) end [2025-02-19 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:23:22] Production.INFO: ==23461== Releasing lock... [2025-02-19 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-19 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:24:06 [end_date_ymd] => 2025-02-19 08:24:06 [RateCDR] => 1 ) [2025-02-19 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:24:06' and `end` < '2025-02-19 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:24:18] Production.INFO: count ==428 [2025-02-19 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:24:06 - End Time 2025-02-19 08:24:06 [2025-02-19 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509156', 'tblTempUsageDetail_20' ) start [2025-02-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509156', 'tblTempUsageDetail_20' ) end [2025-02-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509156', 'tblTempVendorCDR_20' ) start [2025-02-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509156', 'tblTempVendorCDR_20' ) end [2025-02-19 08:24:18] Production.INFO: ProcessCDR(1,14509156,1,1,2) [2025-02-19 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509156', 'tblTempUsageDetail_20' ) start [2025-02-19 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509156', 'tblTempUsageDetail_20' ) end [2025-02-19 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:24:22] Production.INFO: ==23533== Releasing lock... [2025-02-19 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-19 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:25:06 [end_date_ymd] => 2025-02-19 08:25:06 [RateCDR] => 1 ) [2025-02-19 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:25:06' and `end` < '2025-02-19 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:25:18] Production.INFO: count ==445 [2025-02-19 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:25:06 - End Time 2025-02-19 08:25:06 [2025-02-19 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509161', 'tblTempUsageDetail_20' ) start [2025-02-19 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509161', 'tblTempUsageDetail_20' ) end [2025-02-19 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509161', 'tblTempVendorCDR_20' ) start [2025-02-19 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509161', 'tblTempVendorCDR_20' ) end [2025-02-19 08:25:18] Production.INFO: ProcessCDR(1,14509161,1,1,2) [2025-02-19 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509161', 'tblTempUsageDetail_20' ) start [2025-02-19 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509161', 'tblTempUsageDetail_20' ) end [2025-02-19 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:25:23] Production.INFO: ==23642== Releasing lock... [2025-02-19 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-02-19 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:26:06 [end_date_ymd] => 2025-02-19 08:26:06 [RateCDR] => 1 ) [2025-02-19 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:26:06' and `end` < '2025-02-19 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:26:17] Production.INFO: count ==450 [2025-02-19 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:26:06 - End Time 2025-02-19 08:26:06 [2025-02-19 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509166', 'tblTempUsageDetail_20' ) start [2025-02-19 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509166', 'tblTempUsageDetail_20' ) end [2025-02-19 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509166', 'tblTempVendorCDR_20' ) start [2025-02-19 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509166', 'tblTempVendorCDR_20' ) end [2025-02-19 08:26:18] Production.INFO: ProcessCDR(1,14509166,1,1,2) [2025-02-19 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509166', 'tblTempUsageDetail_20' ) start [2025-02-19 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509166', 'tblTempUsageDetail_20' ) end [2025-02-19 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:26:21] Production.INFO: ==23714== Releasing lock... [2025-02-19 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:26:21] Production.INFO: 32 MB #Memory Used# [2025-02-19 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:27:05 [end_date_ymd] => 2025-02-19 08:27:05 [RateCDR] => 1 ) [2025-02-19 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:27:05' and `end` < '2025-02-19 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:27:17] Production.INFO: count ==450 [2025-02-19 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:27:05 - End Time 2025-02-19 08:27:05 [2025-02-19 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509171', 'tblTempUsageDetail_20' ) start [2025-02-19 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509171', 'tblTempUsageDetail_20' ) end [2025-02-19 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509171', 'tblTempVendorCDR_20' ) start [2025-02-19 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509171', 'tblTempVendorCDR_20' ) end [2025-02-19 08:27:17] Production.INFO: ProcessCDR(1,14509171,1,1,2) [2025-02-19 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509171', 'tblTempUsageDetail_20' ) start [2025-02-19 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509171', 'tblTempUsageDetail_20' ) end [2025-02-19 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:27:20] Production.INFO: ==23788== Releasing lock... [2025-02-19 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:27:20] Production.INFO: 32 MB #Memory Used# [2025-02-19 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:28:05 [end_date_ymd] => 2025-02-19 08:28:05 [RateCDR] => 1 ) [2025-02-19 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:28:05' and `end` < '2025-02-19 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:28:17] Production.INFO: count ==457 [2025-02-19 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:28:05 - End Time 2025-02-19 08:28:05 [2025-02-19 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509176', 'tblTempUsageDetail_20' ) start [2025-02-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509176', 'tblTempUsageDetail_20' ) end [2025-02-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509176', 'tblTempVendorCDR_20' ) start [2025-02-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509176', 'tblTempVendorCDR_20' ) end [2025-02-19 08:28:17] Production.INFO: ProcessCDR(1,14509176,1,1,2) [2025-02-19 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509176', 'tblTempUsageDetail_20' ) start [2025-02-19 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509176', 'tblTempUsageDetail_20' ) end [2025-02-19 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:28:20] Production.INFO: ==23867== Releasing lock... [2025-02-19 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:28:20] Production.INFO: 32 MB #Memory Used# [2025-02-19 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:29:05 [end_date_ymd] => 2025-02-19 08:29:05 [RateCDR] => 1 ) [2025-02-19 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:29:05' and `end` < '2025-02-19 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:29:17] Production.INFO: count ==458 [2025-02-19 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:29:05 - End Time 2025-02-19 08:29:05 [2025-02-19 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509181', 'tblTempUsageDetail_20' ) start [2025-02-19 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509181', 'tblTempUsageDetail_20' ) end [2025-02-19 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509181', 'tblTempVendorCDR_20' ) start [2025-02-19 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509181', 'tblTempVendorCDR_20' ) end [2025-02-19 08:29:17] Production.INFO: ProcessCDR(1,14509181,1,1,2) [2025-02-19 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509181', 'tblTempUsageDetail_20' ) start [2025-02-19 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509181', 'tblTempUsageDetail_20' ) end [2025-02-19 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:29:22] Production.INFO: ==23943== Releasing lock... [2025-02-19 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-19 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:30:06 [end_date_ymd] => 2025-02-19 08:30:06 [RateCDR] => 1 ) [2025-02-19 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:30:06' and `end` < '2025-02-19 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:30:18] Production.INFO: count ==468 [2025-02-19 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:30:06 - End Time 2025-02-19 08:30:06 [2025-02-19 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509186', 'tblTempUsageDetail_20' ) start [2025-02-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509186', 'tblTempUsageDetail_20' ) end [2025-02-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509186', 'tblTempVendorCDR_20' ) start [2025-02-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509186', 'tblTempVendorCDR_20' ) end [2025-02-19 08:30:18] Production.INFO: ProcessCDR(1,14509186,1,1,2) [2025-02-19 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509186', 'tblTempUsageDetail_20' ) start [2025-02-19 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509186', 'tblTempUsageDetail_20' ) end [2025-02-19 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:30:23] Production.INFO: ==24020== Releasing lock... [2025-02-19 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-19 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:31:05 [end_date_ymd] => 2025-02-19 08:31:05 [RateCDR] => 1 ) [2025-02-19 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:31:05' and `end` < '2025-02-19 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:31:17] Production.INFO: count ==478 [2025-02-19 08:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:31:05 - End Time 2025-02-19 08:31:05 [2025-02-19 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509192', 'tblTempUsageDetail_20' ) start [2025-02-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509192', 'tblTempUsageDetail_20' ) end [2025-02-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509192', 'tblTempVendorCDR_20' ) start [2025-02-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509192', 'tblTempVendorCDR_20' ) end [2025-02-19 08:31:17] Production.INFO: ProcessCDR(1,14509192,1,1,2) [2025-02-19 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509192', 'tblTempUsageDetail_20' ) start [2025-02-19 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509192', 'tblTempUsageDetail_20' ) end [2025-02-19 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:31:22] Production.INFO: ==24094== Releasing lock... [2025-02-19 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-19 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:32:05 [end_date_ymd] => 2025-02-19 08:32:05 [RateCDR] => 1 ) [2025-02-19 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:32:05' and `end` < '2025-02-19 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:32:17] Production.INFO: count ==490 [2025-02-19 08:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:32:05 - End Time 2025-02-19 08:32:05 [2025-02-19 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509197', 'tblTempUsageDetail_20' ) start [2025-02-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509197', 'tblTempUsageDetail_20' ) end [2025-02-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509197', 'tblTempVendorCDR_20' ) start [2025-02-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509197', 'tblTempVendorCDR_20' ) end [2025-02-19 08:32:17] Production.INFO: ProcessCDR(1,14509197,1,1,2) [2025-02-19 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509197', 'tblTempUsageDetail_20' ) start [2025-02-19 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509197', 'tblTempUsageDetail_20' ) end [2025-02-19 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:32:22] Production.INFO: ==24175== Releasing lock... [2025-02-19 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-19 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:33:04 [end_date_ymd] => 2025-02-19 08:33:04 [RateCDR] => 1 ) [2025-02-19 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-02-19 05:33:04' and `end` < '2025-02-19 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-02-19 08:33:16] Production.INFO: count ==509 [2025-02-19 08:33:16] Production.ERROR: pbx CDR StartTime 2025-02-19 05:33:04 - End Time 2025-02-19 08:33:04 [2025-02-19 08:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509202', 'tblTempUsageDetail_20' ) start [2025-02-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509202', 'tblTempUsageDetail_20' ) end [2025-02-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509202', 'tblTempVendorCDR_20' ) start [2025-02-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509202', 'tblTempVendorCDR_20' ) end [2025-02-19 08:33:16] Production.INFO: ProcessCDR(1,14509202,1,1,2) [2025-02-19 08:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509202', 'tblTempUsageDetail_20' ) start [2025-02-19 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509202', 'tblTempUsageDetail_20' ) end [2025-02-19 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:33:20] Production.INFO: ==24260== Releasing lock... [2025-02-19 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:33:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-19 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:34:06 [end_date_ymd] => 2025-02-19 08:34:06 [RateCDR] => 1 ) [2025-02-19 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:34:06' and `end` < '2025-02-19 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:34:17] Production.INFO: count ==519 [2025-02-19 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:34:06 - End Time 2025-02-19 08:34:06 [2025-02-19 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509207', 'tblTempUsageDetail_20' ) start [2025-02-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509207', 'tblTempUsageDetail_20' ) end [2025-02-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509207', 'tblTempVendorCDR_20' ) start [2025-02-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509207', 'tblTempVendorCDR_20' ) end [2025-02-19 08:34:18] Production.INFO: ProcessCDR(1,14509207,1,1,2) [2025-02-19 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509207', 'tblTempUsageDetail_20' ) start [2025-02-19 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509207', 'tblTempUsageDetail_20' ) end [2025-02-19 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:34:21] Production.INFO: ==24338== Releasing lock... [2025-02-19 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-19 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:35:05 [end_date_ymd] => 2025-02-19 08:35:05 [RateCDR] => 1 ) [2025-02-19 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:35:05' and `end` < '2025-02-19 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:35:17] Production.INFO: count ==520 [2025-02-19 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:35:05 - End Time 2025-02-19 08:35:05 [2025-02-19 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509212', 'tblTempUsageDetail_20' ) start [2025-02-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509212', 'tblTempUsageDetail_20' ) end [2025-02-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509212', 'tblTempVendorCDR_20' ) start [2025-02-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509212', 'tblTempVendorCDR_20' ) end [2025-02-19 08:35:17] Production.INFO: ProcessCDR(1,14509212,1,1,2) [2025-02-19 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509212', 'tblTempUsageDetail_20' ) start [2025-02-19 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509212', 'tblTempUsageDetail_20' ) end [2025-02-19 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:35:22] Production.INFO: ==24413== Releasing lock... [2025-02-19 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-19 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:36:05 [end_date_ymd] => 2025-02-19 08:36:05 [RateCDR] => 1 ) [2025-02-19 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:36:05' and `end` < '2025-02-19 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:36:17] Production.INFO: count ==527 [2025-02-19 08:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:36:05 - End Time 2025-02-19 08:36:05 [2025-02-19 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509217', 'tblTempUsageDetail_20' ) start [2025-02-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509217', 'tblTempUsageDetail_20' ) end [2025-02-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509217', 'tblTempVendorCDR_20' ) start [2025-02-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509217', 'tblTempVendorCDR_20' ) end [2025-02-19 08:36:17] Production.INFO: ProcessCDR(1,14509217,1,1,2) [2025-02-19 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509217', 'tblTempUsageDetail_20' ) start [2025-02-19 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509217', 'tblTempUsageDetail_20' ) end [2025-02-19 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:36:22] Production.INFO: ==24490== Releasing lock... [2025-02-19 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-19 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:37:06 [end_date_ymd] => 2025-02-19 08:37:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 05:37:06' and `end` < '2025-02-19 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-02-19 08:37:17] Production.INFO: count ==532 [2025-02-19 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:37:06 - End Time 2025-02-19 08:37:06 [2025-02-19 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509222', 'tblTempUsageDetail_20' ) start [2025-02-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509222', 'tblTempUsageDetail_20' ) end [2025-02-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509222', 'tblTempVendorCDR_20' ) start [2025-02-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509222', 'tblTempVendorCDR_20' ) end [2025-02-19 08:37:18] Production.INFO: ProcessCDR(1,14509222,1,1,2) [2025-02-19 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509222', 'tblTempUsageDetail_20' ) start [2025-02-19 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509222', 'tblTempUsageDetail_20' ) end [2025-02-19 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:37:22] Production.INFO: ==24569== Releasing lock... [2025-02-19 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-19 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:38:06 [end_date_ymd] => 2025-02-19 08:38:06 [RateCDR] => 1 ) [2025-02-19 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:38:06' and `end` < '2025-02-19 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:38:17] Production.INFO: count ==533 [2025-02-19 08:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:38:06 - End Time 2025-02-19 08:38:06 [2025-02-19 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509227', 'tblTempUsageDetail_20' ) start [2025-02-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509227', 'tblTempUsageDetail_20' ) end [2025-02-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509227', 'tblTempVendorCDR_20' ) start [2025-02-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509227', 'tblTempVendorCDR_20' ) end [2025-02-19 08:38:17] Production.INFO: ProcessCDR(1,14509227,1,1,2) [2025-02-19 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509227', 'tblTempUsageDetail_20' ) start [2025-02-19 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509227', 'tblTempUsageDetail_20' ) end [2025-02-19 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:38:22] Production.INFO: ==24646== Releasing lock... [2025-02-19 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-19 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:39:05 [end_date_ymd] => 2025-02-19 08:39:05 [RateCDR] => 1 ) [2025-02-19 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:39:05' and `end` < '2025-02-19 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:39:17] Production.INFO: count ==538 [2025-02-19 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:39:05 - End Time 2025-02-19 08:39:05 [2025-02-19 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509232', 'tblTempUsageDetail_20' ) start [2025-02-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509232', 'tblTempUsageDetail_20' ) end [2025-02-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509232', 'tblTempVendorCDR_20' ) start [2025-02-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509232', 'tblTempVendorCDR_20' ) end [2025-02-19 08:39:17] Production.INFO: ProcessCDR(1,14509232,1,1,2) [2025-02-19 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509232', 'tblTempUsageDetail_20' ) start [2025-02-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509232', 'tblTempUsageDetail_20' ) end [2025-02-19 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:39:21] Production.INFO: ==24724== Releasing lock... [2025-02-19 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-19 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:40:05 [end_date_ymd] => 2025-02-19 08:40:05 [RateCDR] => 1 ) [2025-02-19 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:40:05' and `end` < '2025-02-19 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:40:17] Production.INFO: count ==551 [2025-02-19 08:40:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:40:05 - End Time 2025-02-19 08:40:05 [2025-02-19 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509238', 'tblTempUsageDetail_20' ) start [2025-02-19 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509238', 'tblTempUsageDetail_20' ) end [2025-02-19 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509238', 'tblTempVendorCDR_20' ) start [2025-02-19 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509238', 'tblTempVendorCDR_20' ) end [2025-02-19 08:40:17] Production.INFO: ProcessCDR(1,14509238,1,1,2) [2025-02-19 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509238', 'tblTempUsageDetail_20' ) start [2025-02-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509238', 'tblTempUsageDetail_20' ) end [2025-02-19 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:40:23] Production.INFO: ==24842== Releasing lock... [2025-02-19 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-19 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:41:05 [end_date_ymd] => 2025-02-19 08:41:05 [RateCDR] => 1 ) [2025-02-19 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:41:05' and `end` < '2025-02-19 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:41:17] Production.INFO: count ==616 [2025-02-19 08:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:41:05 - End Time 2025-02-19 08:41:05 [2025-02-19 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509243', 'tblTempUsageDetail_20' ) start [2025-02-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509243', 'tblTempUsageDetail_20' ) end [2025-02-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509243', 'tblTempVendorCDR_20' ) start [2025-02-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509243', 'tblTempVendorCDR_20' ) end [2025-02-19 08:41:17] Production.INFO: ProcessCDR(1,14509243,1,1,2) [2025-02-19 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509243', 'tblTempUsageDetail_20' ) start [2025-02-19 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509243', 'tblTempUsageDetail_20' ) end [2025-02-19 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:41:20] Production.INFO: ==24925== Releasing lock... [2025-02-19 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:41:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:42:05 [end_date_ymd] => 2025-02-19 08:42:05 [RateCDR] => 1 ) [2025-02-19 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:42:05' and `end` < '2025-02-19 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:42:17] Production.INFO: count ==623 [2025-02-19 08:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:42:05 - End Time 2025-02-19 08:42:05 [2025-02-19 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509248', 'tblTempUsageDetail_20' ) start [2025-02-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509248', 'tblTempUsageDetail_20' ) end [2025-02-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509248', 'tblTempVendorCDR_20' ) start [2025-02-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509248', 'tblTempVendorCDR_20' ) end [2025-02-19 08:42:17] Production.INFO: ProcessCDR(1,14509248,1,1,2) [2025-02-19 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509248', 'tblTempUsageDetail_20' ) start [2025-02-19 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509248', 'tblTempUsageDetail_20' ) end [2025-02-19 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:42:23] Production.INFO: ==25001== Releasing lock... [2025-02-19 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:42:23] Production.INFO: 33 MB #Memory Used# [2025-02-19 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:43:05 [end_date_ymd] => 2025-02-19 08:43:05 [RateCDR] => 1 ) [2025-02-19 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:43:05' and `end` < '2025-02-19 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:43:17] Production.INFO: count ==630 [2025-02-19 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:43:05 - End Time 2025-02-19 08:43:05 [2025-02-19 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509253', 'tblTempUsageDetail_20' ) start [2025-02-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509253', 'tblTempUsageDetail_20' ) end [2025-02-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509253', 'tblTempVendorCDR_20' ) start [2025-02-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509253', 'tblTempVendorCDR_20' ) end [2025-02-19 08:43:17] Production.INFO: ProcessCDR(1,14509253,1,1,2) [2025-02-19 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509253', 'tblTempUsageDetail_20' ) start [2025-02-19 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509253', 'tblTempUsageDetail_20' ) end [2025-02-19 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:43:22] Production.INFO: ==25083== Releasing lock... [2025-02-19 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:44:05 [end_date_ymd] => 2025-02-19 08:44:05 [RateCDR] => 1 ) [2025-02-19 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:44:05' and `end` < '2025-02-19 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:44:17] Production.INFO: count ==631 [2025-02-19 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:44:05 - End Time 2025-02-19 08:44:05 [2025-02-19 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509258', 'tblTempUsageDetail_20' ) start [2025-02-19 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509258', 'tblTempUsageDetail_20' ) end [2025-02-19 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509258', 'tblTempVendorCDR_20' ) start [2025-02-19 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509258', 'tblTempVendorCDR_20' ) end [2025-02-19 08:44:17] Production.INFO: ProcessCDR(1,14509258,1,1,2) [2025-02-19 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509258', 'tblTempUsageDetail_20' ) start [2025-02-19 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509258', 'tblTempUsageDetail_20' ) end [2025-02-19 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:44:23] Production.INFO: ==25157== Releasing lock... [2025-02-19 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:45:06 [end_date_ymd] => 2025-02-19 08:45:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 05:45:06' and `end` < '2025-02-19 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-02-19 08:45:17] Production.INFO: count ==633 [2025-02-19 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:45:06 - End Time 2025-02-19 08:45:06 [2025-02-19 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509263', 'tblTempUsageDetail_20' ) start [2025-02-19 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509263', 'tblTempUsageDetail_20' ) end [2025-02-19 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509263', 'tblTempVendorCDR_20' ) start [2025-02-19 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509263', 'tblTempVendorCDR_20' ) end [2025-02-19 08:45:18] Production.INFO: ProcessCDR(1,14509263,1,1,2) [2025-02-19 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509263', 'tblTempUsageDetail_20' ) start [2025-02-19 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509263', 'tblTempUsageDetail_20' ) end [2025-02-19 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:45:23] Production.INFO: ==25231== Releasing lock... [2025-02-19 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:46:05 [end_date_ymd] => 2025-02-19 08:46:05 [RateCDR] => 1 ) [2025-02-19 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:46:05' and `end` < '2025-02-19 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:46:17] Production.INFO: count ==636 [2025-02-19 08:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:46:05 - End Time 2025-02-19 08:46:05 [2025-02-19 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509268', 'tblTempUsageDetail_20' ) start [2025-02-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509268', 'tblTempUsageDetail_20' ) end [2025-02-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509268', 'tblTempVendorCDR_20' ) start [2025-02-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509268', 'tblTempVendorCDR_20' ) end [2025-02-19 08:46:17] Production.INFO: ProcessCDR(1,14509268,1,1,2) [2025-02-19 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509268', 'tblTempUsageDetail_20' ) start [2025-02-19 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509268', 'tblTempUsageDetail_20' ) end [2025-02-19 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:46:21] Production.INFO: ==25305== Releasing lock... [2025-02-19 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:47:05 [end_date_ymd] => 2025-02-19 08:47:05 [RateCDR] => 1 ) [2025-02-19 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:47:05' and `end` < '2025-02-19 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:47:17] Production.INFO: count ==645 [2025-02-19 08:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:47:05 - End Time 2025-02-19 08:47:05 [2025-02-19 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509273', 'tblTempUsageDetail_20' ) start [2025-02-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509273', 'tblTempUsageDetail_20' ) end [2025-02-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509273', 'tblTempVendorCDR_20' ) start [2025-02-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509273', 'tblTempVendorCDR_20' ) end [2025-02-19 08:47:17] Production.INFO: ProcessCDR(1,14509273,1,1,2) [2025-02-19 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509273', 'tblTempUsageDetail_20' ) start [2025-02-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509273', 'tblTempUsageDetail_20' ) end [2025-02-19 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:47:21] Production.INFO: ==25390== Releasing lock... [2025-02-19 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:48:04 [end_date_ymd] => 2025-02-19 08:48:04 [RateCDR] => 1 ) [2025-02-19 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:48:04' and `end` < '2025-02-19 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:48:16] Production.INFO: count ==647 [2025-02-19 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:48:04 - End Time 2025-02-19 08:48:04 [2025-02-19 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509278', 'tblTempUsageDetail_20' ) start [2025-02-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509278', 'tblTempUsageDetail_20' ) end [2025-02-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509278', 'tblTempVendorCDR_20' ) start [2025-02-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509278', 'tblTempVendorCDR_20' ) end [2025-02-19 08:48:17] Production.INFO: ProcessCDR(1,14509278,1,1,2) [2025-02-19 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509278', 'tblTempUsageDetail_20' ) start [2025-02-19 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509278', 'tblTempUsageDetail_20' ) end [2025-02-19 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:48:21] Production.INFO: ==25466== Releasing lock... [2025-02-19 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:49:06 [end_date_ymd] => 2025-02-19 08:49:06 [RateCDR] => 1 ) [2025-02-19 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:49:06' and `end` < '2025-02-19 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:49:17] Production.INFO: count ==674 [2025-02-19 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:49:06 - End Time 2025-02-19 08:49:06 [2025-02-19 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509283', 'tblTempUsageDetail_20' ) start [2025-02-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509283', 'tblTempUsageDetail_20' ) end [2025-02-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509283', 'tblTempVendorCDR_20' ) start [2025-02-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509283', 'tblTempVendorCDR_20' ) end [2025-02-19 08:49:18] Production.INFO: ProcessCDR(1,14509283,1,1,2) [2025-02-19 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509283', 'tblTempUsageDetail_20' ) start [2025-02-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509283', 'tblTempUsageDetail_20' ) end [2025-02-19 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:49:21] Production.INFO: ==25543== Releasing lock... [2025-02-19 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:50:05 [end_date_ymd] => 2025-02-19 08:50:05 [RateCDR] => 1 ) [2025-02-19 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:50:05' and `end` < '2025-02-19 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:50:17] Production.INFO: count ==699 [2025-02-19 08:50:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:50:05 - End Time 2025-02-19 08:50:05 [2025-02-19 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509289', 'tblTempUsageDetail_20' ) start [2025-02-19 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509289', 'tblTempUsageDetail_20' ) end [2025-02-19 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509289', 'tblTempVendorCDR_20' ) start [2025-02-19 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509289', 'tblTempVendorCDR_20' ) end [2025-02-19 08:50:17] Production.INFO: ProcessCDR(1,14509289,1,1,2) [2025-02-19 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509289', 'tblTempUsageDetail_20' ) start [2025-02-19 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509289', 'tblTempUsageDetail_20' ) end [2025-02-19 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:50:22] Production.INFO: ==25622== Releasing lock... [2025-02-19 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:51:05 [end_date_ymd] => 2025-02-19 08:51:05 [RateCDR] => 1 ) [2025-02-19 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:51:05' and `end` < '2025-02-19 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:51:17] Production.INFO: count ==749 [2025-02-19 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:51:05 - End Time 2025-02-19 08:51:05 [2025-02-19 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509294', 'tblTempUsageDetail_20' ) start [2025-02-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509294', 'tblTempUsageDetail_20' ) end [2025-02-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509294', 'tblTempVendorCDR_20' ) start [2025-02-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509294', 'tblTempVendorCDR_20' ) end [2025-02-19 08:51:17] Production.INFO: ProcessCDR(1,14509294,1,1,2) [2025-02-19 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509294', 'tblTempUsageDetail_20' ) start [2025-02-19 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509294', 'tblTempUsageDetail_20' ) end [2025-02-19 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:51:23] Production.INFO: ==25704== Releasing lock... [2025-02-19 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:51:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:52:05 [end_date_ymd] => 2025-02-19 08:52:05 [RateCDR] => 1 ) [2025-02-19 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:52:05' and `end` < '2025-02-19 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:52:17] Production.INFO: count ==766 [2025-02-19 08:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:52:05 - End Time 2025-02-19 08:52:05 [2025-02-19 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509299', 'tblTempUsageDetail_20' ) start [2025-02-19 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509299', 'tblTempUsageDetail_20' ) end [2025-02-19 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509299', 'tblTempVendorCDR_20' ) start [2025-02-19 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509299', 'tblTempVendorCDR_20' ) end [2025-02-19 08:52:17] Production.INFO: ProcessCDR(1,14509299,1,1,2) [2025-02-19 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509299', 'tblTempUsageDetail_20' ) start [2025-02-19 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509299', 'tblTempUsageDetail_20' ) end [2025-02-19 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:52:22] Production.INFO: ==25789== Releasing lock... [2025-02-19 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-19 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:53:05 [end_date_ymd] => 2025-02-19 08:53:05 [RateCDR] => 1 ) [2025-02-19 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:53:05' and `end` < '2025-02-19 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:53:17] Production.INFO: count ==767 [2025-02-19 08:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:53:05 - End Time 2025-02-19 08:53:05 [2025-02-19 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509304', 'tblTempUsageDetail_20' ) start [2025-02-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509304', 'tblTempUsageDetail_20' ) end [2025-02-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509304', 'tblTempVendorCDR_20' ) start [2025-02-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509304', 'tblTempVendorCDR_20' ) end [2025-02-19 08:53:17] Production.INFO: ProcessCDR(1,14509304,1,1,2) [2025-02-19 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509304', 'tblTempUsageDetail_20' ) start [2025-02-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509304', 'tblTempUsageDetail_20' ) end [2025-02-19 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:53:22] Production.INFO: ==25869== Releasing lock... [2025-02-19 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:53:22] Production.INFO: 34 MB #Memory Used# [2025-02-19 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:54:05 [end_date_ymd] => 2025-02-19 08:54:05 [RateCDR] => 1 ) [2025-02-19 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:54:05' and `end` < '2025-02-19 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:54:17] Production.INFO: count ==771 [2025-02-19 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:54:05 - End Time 2025-02-19 08:54:05 [2025-02-19 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509309', 'tblTempUsageDetail_20' ) start [2025-02-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509309', 'tblTempUsageDetail_20' ) end [2025-02-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509309', 'tblTempVendorCDR_20' ) start [2025-02-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509309', 'tblTempVendorCDR_20' ) end [2025-02-19 08:54:17] Production.INFO: ProcessCDR(1,14509309,1,1,2) [2025-02-19 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509309', 'tblTempUsageDetail_20' ) start [2025-02-19 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509309', 'tblTempUsageDetail_20' ) end [2025-02-19 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:54:22] Production.INFO: ==25950== Releasing lock... [2025-02-19 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:54:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-19 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:55:05 [end_date_ymd] => 2025-02-19 08:55:05 [RateCDR] => 1 ) [2025-02-19 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:55:05' and `end` < '2025-02-19 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:55:17] Production.INFO: count ==782 [2025-02-19 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:55:05 - End Time 2025-02-19 08:55:05 [2025-02-19 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509314', 'tblTempUsageDetail_20' ) start [2025-02-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509314', 'tblTempUsageDetail_20' ) end [2025-02-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509314', 'tblTempVendorCDR_20' ) start [2025-02-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509314', 'tblTempVendorCDR_20' ) end [2025-02-19 08:55:18] Production.INFO: ProcessCDR(1,14509314,1,1,2) [2025-02-19 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509314', 'tblTempUsageDetail_20' ) start [2025-02-19 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509314', 'tblTempUsageDetail_20' ) end [2025-02-19 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:55:21] Production.INFO: ==26022== Releasing lock... [2025-02-19 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:55:21] Production.INFO: 34 MB #Memory Used# [2025-02-19 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:56:06 [end_date_ymd] => 2025-02-19 08:56:06 [RateCDR] => 1 ) [2025-02-19 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:56:06' and `end` < '2025-02-19 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:56:17] Production.INFO: count ==798 [2025-02-19 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:56:06 - End Time 2025-02-19 08:56:06 [2025-02-19 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509319', 'tblTempUsageDetail_20' ) start [2025-02-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509319', 'tblTempUsageDetail_20' ) end [2025-02-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509319', 'tblTempVendorCDR_20' ) start [2025-02-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509319', 'tblTempVendorCDR_20' ) end [2025-02-19 08:56:18] Production.INFO: ProcessCDR(1,14509319,1,1,2) [2025-02-19 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509319', 'tblTempUsageDetail_20' ) start [2025-02-19 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509319', 'tblTempUsageDetail_20' ) end [2025-02-19 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:56:23] Production.INFO: ==26137== Releasing lock... [2025-02-19 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:56:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-19 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:57:05 [end_date_ymd] => 2025-02-19 08:57:05 [RateCDR] => 1 ) [2025-02-19 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:57:05' and `end` < '2025-02-19 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:57:17] Production.INFO: count ==797 [2025-02-19 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:57:05 - End Time 2025-02-19 08:57:05 [2025-02-19 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509324', 'tblTempUsageDetail_20' ) start [2025-02-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509324', 'tblTempUsageDetail_20' ) end [2025-02-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509324', 'tblTempVendorCDR_20' ) start [2025-02-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509324', 'tblTempVendorCDR_20' ) end [2025-02-19 08:57:17] Production.INFO: ProcessCDR(1,14509324,1,1,2) [2025-02-19 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509324', 'tblTempUsageDetail_20' ) start [2025-02-19 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509324', 'tblTempUsageDetail_20' ) end [2025-02-19 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:57:21] Production.INFO: ==26211== Releasing lock... [2025-02-19 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-19 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:58:06 [end_date_ymd] => 2025-02-19 08:58:06 [RateCDR] => 1 ) [2025-02-19 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:58:06' and `end` < '2025-02-19 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:58:17] Production.INFO: count ==806 [2025-02-19 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-19 05:58:06 - End Time 2025-02-19 08:58:06 [2025-02-19 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509329', 'tblTempUsageDetail_20' ) start [2025-02-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509329', 'tblTempUsageDetail_20' ) end [2025-02-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509329', 'tblTempVendorCDR_20' ) start [2025-02-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509329', 'tblTempVendorCDR_20' ) end [2025-02-19 08:58:18] Production.INFO: ProcessCDR(1,14509329,1,1,2) [2025-02-19 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509329', 'tblTempUsageDetail_20' ) start [2025-02-19 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509329', 'tblTempUsageDetail_20' ) end [2025-02-19 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:58:23] Production.INFO: ==26285== Releasing lock... [2025-02-19 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:58:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-19 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 05:59:05 [end_date_ymd] => 2025-02-19 08:59:05 [RateCDR] => 1 ) [2025-02-19 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 05:59:05' and `end` < '2025-02-19 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 08:59:17] Production.INFO: count ==813 [2025-02-19 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 05:59:05 - End Time 2025-02-19 08:59:05 [2025-02-19 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509334', 'tblTempUsageDetail_20' ) start [2025-02-19 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509334', 'tblTempUsageDetail_20' ) end [2025-02-19 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509334', 'tblTempVendorCDR_20' ) start [2025-02-19 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509334', 'tblTempVendorCDR_20' ) end [2025-02-19 08:59:17] Production.INFO: ProcessCDR(1,14509334,1,1,2) [2025-02-19 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509334', 'tblTempUsageDetail_20' ) start [2025-02-19 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509334', 'tblTempUsageDetail_20' ) end [2025-02-19 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 08:59:23] Production.INFO: ==26367== Releasing lock... [2025-02-19 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 08:59:23] Production.INFO: 34 MB #Memory Used# [2025-02-19 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:00:06 [end_date_ymd] => 2025-02-19 09:00:06 [RateCDR] => 1 ) [2025-02-19 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:00:06' and `end` < '2025-02-19 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:00:18] Production.INFO: count ==847 [2025-02-19 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:00:06 - End Time 2025-02-19 09:00:06 [2025-02-19 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509340', 'tblTempUsageDetail_20' ) start [2025-02-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509340', 'tblTempUsageDetail_20' ) end [2025-02-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509340', 'tblTempVendorCDR_20' ) start [2025-02-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509340', 'tblTempVendorCDR_20' ) end [2025-02-19 09:00:18] Production.INFO: ProcessCDR(1,14509340,1,1,2) [2025-02-19 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509340', 'tblTempUsageDetail_20' ) start [2025-02-19 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509340', 'tblTempUsageDetail_20' ) end [2025-02-19 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:00:24] Production.INFO: ==26448== Releasing lock... [2025-02-19 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:00:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-19 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:01:05 [end_date_ymd] => 2025-02-19 09:01:05 [RateCDR] => 1 ) [2025-02-19 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:01:05' and `end` < '2025-02-19 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:01:17] Production.INFO: count ==953 [2025-02-19 09:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 06:01:05 - End Time 2025-02-19 09:01:05 [2025-02-19 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509345', 'tblTempUsageDetail_20' ) start [2025-02-19 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509345', 'tblTempUsageDetail_20' ) end [2025-02-19 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509345', 'tblTempVendorCDR_20' ) start [2025-02-19 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509345', 'tblTempVendorCDR_20' ) end [2025-02-19 09:01:17] Production.INFO: ProcessCDR(1,14509345,1,1,2) [2025-02-19 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509345', 'tblTempUsageDetail_20' ) start [2025-02-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509345', 'tblTempUsageDetail_20' ) end [2025-02-19 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:01:21] Production.INFO: ==26541== Releasing lock... [2025-02-19 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:01:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-19 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:02:06 [end_date_ymd] => 2025-02-19 09:02:06 [RateCDR] => 1 ) [2025-02-19 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:02:06' and `end` < '2025-02-19 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:02:17] Production.INFO: count ==973 [2025-02-19 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:02:06 - End Time 2025-02-19 09:02:06 [2025-02-19 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509350', 'tblTempUsageDetail_20' ) start [2025-02-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509350', 'tblTempUsageDetail_20' ) end [2025-02-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509350', 'tblTempVendorCDR_20' ) start [2025-02-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509350', 'tblTempVendorCDR_20' ) end [2025-02-19 09:02:18] Production.INFO: ProcessCDR(1,14509350,1,1,2) [2025-02-19 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509350', 'tblTempUsageDetail_20' ) start [2025-02-19 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509350', 'tblTempUsageDetail_20' ) end [2025-02-19 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:02:23] Production.INFO: ==26622== Releasing lock... [2025-02-19 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:02:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-19 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:03:05 [end_date_ymd] => 2025-02-19 09:03:05 [RateCDR] => 1 ) [2025-02-19 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:03:05' and `end` < '2025-02-19 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:03:17] Production.INFO: count ==995 [2025-02-19 09:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 06:03:05 - End Time 2025-02-19 09:03:05 [2025-02-19 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509355', 'tblTempUsageDetail_20' ) start [2025-02-19 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509355', 'tblTempUsageDetail_20' ) end [2025-02-19 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509355', 'tblTempVendorCDR_20' ) start [2025-02-19 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509355', 'tblTempVendorCDR_20' ) end [2025-02-19 09:03:17] Production.INFO: ProcessCDR(1,14509355,1,1,2) [2025-02-19 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509355', 'tblTempUsageDetail_20' ) start [2025-02-19 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509355', 'tblTempUsageDetail_20' ) end [2025-02-19 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:03:21] Production.INFO: ==26699== Releasing lock... [2025-02-19 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:03:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-19 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:04:06 [end_date_ymd] => 2025-02-19 09:04:06 [RateCDR] => 1 ) [2025-02-19 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:04:06' and `end` < '2025-02-19 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:04:18] Production.INFO: count ==1018 [2025-02-19 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:04:06 - End Time 2025-02-19 09:04:06 [2025-02-19 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509360', 'tblTempUsageDetail_20' ) start [2025-02-19 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509360', 'tblTempUsageDetail_20' ) end [2025-02-19 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509360', 'tblTempVendorCDR_20' ) start [2025-02-19 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509360', 'tblTempVendorCDR_20' ) end [2025-02-19 09:04:18] Production.INFO: ProcessCDR(1,14509360,1,1,2) [2025-02-19 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509360', 'tblTempUsageDetail_20' ) start [2025-02-19 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509360', 'tblTempUsageDetail_20' ) end [2025-02-19 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:04:23] Production.INFO: ==26779== Releasing lock... [2025-02-19 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:04:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-19 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:05:05 [end_date_ymd] => 2025-02-19 09:05:05 [RateCDR] => 1 ) [2025-02-19 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:05:05' and `end` < '2025-02-19 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:05:17] Production.INFO: count ==1061 [2025-02-19 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:05:05 - End Time 2025-02-19 09:05:05 [2025-02-19 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509365', 'tblTempUsageDetail_20' ) start [2025-02-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509365', 'tblTempUsageDetail_20' ) end [2025-02-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509365', 'tblTempVendorCDR_20' ) start [2025-02-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509365', 'tblTempVendorCDR_20' ) end [2025-02-19 09:05:18] Production.INFO: ProcessCDR(1,14509365,1,1,2) [2025-02-19 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509365', 'tblTempUsageDetail_20' ) start [2025-02-19 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509365', 'tblTempUsageDetail_20' ) end [2025-02-19 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:05:23] Production.INFO: ==26854== Releasing lock... [2025-02-19 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:05:23] Production.INFO: 36 MB #Memory Used# [2025-02-19 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:06:06 [end_date_ymd] => 2025-02-19 09:06:06 [RateCDR] => 1 ) [2025-02-19 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:06:06' and `end` < '2025-02-19 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:06:18] Production.INFO: count ==1098 [2025-02-19 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:06:06 - End Time 2025-02-19 09:06:06 [2025-02-19 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509370', 'tblTempUsageDetail_20' ) start [2025-02-19 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509370', 'tblTempUsageDetail_20' ) end [2025-02-19 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509370', 'tblTempVendorCDR_20' ) start [2025-02-19 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509370', 'tblTempVendorCDR_20' ) end [2025-02-19 09:06:19] Production.INFO: ProcessCDR(1,14509370,1,1,2) [2025-02-19 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509370', 'tblTempUsageDetail_20' ) start [2025-02-19 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509370', 'tblTempUsageDetail_20' ) end [2025-02-19 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:06:24] Production.INFO: ==26934== Releasing lock... [2025-02-19 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:06:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-19 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:07:06 [end_date_ymd] => 2025-02-19 09:07:06 [RateCDR] => 1 ) [2025-02-19 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:07:06' and `end` < '2025-02-19 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:07:18] Production.INFO: count ==1180 [2025-02-19 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:07:06 - End Time 2025-02-19 09:07:06 [2025-02-19 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509375', 'tblTempUsageDetail_20' ) start [2025-02-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509375', 'tblTempUsageDetail_20' ) end [2025-02-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509375', 'tblTempVendorCDR_20' ) start [2025-02-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509375', 'tblTempVendorCDR_20' ) end [2025-02-19 09:07:18] Production.INFO: ProcessCDR(1,14509375,1,1,2) [2025-02-19 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509375', 'tblTempUsageDetail_20' ) start [2025-02-19 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509375', 'tblTempUsageDetail_20' ) end [2025-02-19 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:07:23] Production.INFO: ==27006== Releasing lock... [2025-02-19 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-19 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:08:05 [end_date_ymd] => 2025-02-19 09:08:05 [RateCDR] => 1 ) [2025-02-19 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:08:05' and `end` < '2025-02-19 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:08:18] Production.INFO: count ==1212 [2025-02-19 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:08:05 - End Time 2025-02-19 09:08:05 [2025-02-19 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509380', 'tblTempUsageDetail_20' ) start [2025-02-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509380', 'tblTempUsageDetail_20' ) end [2025-02-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509380', 'tblTempVendorCDR_20' ) start [2025-02-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509380', 'tblTempVendorCDR_20' ) end [2025-02-19 09:08:18] Production.INFO: ProcessCDR(1,14509380,1,1,2) [2025-02-19 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509380', 'tblTempUsageDetail_20' ) start [2025-02-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509380', 'tblTempUsageDetail_20' ) end [2025-02-19 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:08:23] Production.INFO: ==27082== Releasing lock... [2025-02-19 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:08:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-19 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:09:05 [end_date_ymd] => 2025-02-19 09:09:05 [RateCDR] => 1 ) [2025-02-19 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:09:05' and `end` < '2025-02-19 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:09:17] Production.INFO: count ==1234 [2025-02-19 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:09:05 - End Time 2025-02-19 09:09:05 [2025-02-19 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509385', 'tblTempUsageDetail_20' ) start [2025-02-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509385', 'tblTempUsageDetail_20' ) end [2025-02-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509385', 'tblTempVendorCDR_20' ) start [2025-02-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509385', 'tblTempVendorCDR_20' ) end [2025-02-19 09:09:18] Production.INFO: ProcessCDR(1,14509385,1,1,2) [2025-02-19 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509385', 'tblTempUsageDetail_20' ) start [2025-02-19 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509385', 'tblTempUsageDetail_20' ) end [2025-02-19 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:09:23] Production.INFO: ==27151== Releasing lock... [2025-02-19 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:09:23] Production.INFO: 37 MB #Memory Used# [2025-02-19 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:10:06 [end_date_ymd] => 2025-02-19 09:10:06 [RateCDR] => 1 ) [2025-02-19 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:10:06' and `end` < '2025-02-19 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:10:18] Production.INFO: count ==1303 [2025-02-19 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:10:06 - End Time 2025-02-19 09:10:06 [2025-02-19 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509390', 'tblTempUsageDetail_20' ) start [2025-02-19 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509390', 'tblTempUsageDetail_20' ) end [2025-02-19 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509390', 'tblTempVendorCDR_20' ) start [2025-02-19 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509390', 'tblTempVendorCDR_20' ) end [2025-02-19 09:10:19] Production.INFO: ProcessCDR(1,14509390,1,1,2) [2025-02-19 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509390', 'tblTempUsageDetail_20' ) start [2025-02-19 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509390', 'tblTempUsageDetail_20' ) end [2025-02-19 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:10:24] Production.INFO: ==27224== Releasing lock... [2025-02-19 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:10:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-19 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:11:05 [end_date_ymd] => 2025-02-19 09:11:05 [RateCDR] => 1 ) [2025-02-19 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:11:05' and `end` < '2025-02-19 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:11:17] Production.INFO: count ==1363 [2025-02-19 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:11:05 - End Time 2025-02-19 09:11:05 [2025-02-19 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509396', 'tblTempUsageDetail_20' ) start [2025-02-19 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509396', 'tblTempUsageDetail_20' ) end [2025-02-19 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509396', 'tblTempVendorCDR_20' ) start [2025-02-19 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509396', 'tblTempVendorCDR_20' ) end [2025-02-19 09:11:18] Production.INFO: ProcessCDR(1,14509396,1,1,2) [2025-02-19 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509396', 'tblTempUsageDetail_20' ) start [2025-02-19 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509396', 'tblTempUsageDetail_20' ) end [2025-02-19 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:11:23] Production.INFO: ==27335== Releasing lock... [2025-02-19 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:11:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-19 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:12:06 [end_date_ymd] => 2025-02-19 09:12:06 [RateCDR] => 1 ) [2025-02-19 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:12:06' and `end` < '2025-02-19 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:12:18] Production.INFO: count ==1389 [2025-02-19 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:12:06 - End Time 2025-02-19 09:12:06 [2025-02-19 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509401', 'tblTempUsageDetail_20' ) start [2025-02-19 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509401', 'tblTempUsageDetail_20' ) end [2025-02-19 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509401', 'tblTempVendorCDR_20' ) start [2025-02-19 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509401', 'tblTempVendorCDR_20' ) end [2025-02-19 09:12:19] Production.INFO: ProcessCDR(1,14509401,1,1,2) [2025-02-19 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509401', 'tblTempUsageDetail_20' ) start [2025-02-19 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509401', 'tblTempUsageDetail_20' ) end [2025-02-19 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:12:24] Production.INFO: ==27410== Releasing lock... [2025-02-19 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:12:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-19 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:13:05 [end_date_ymd] => 2025-02-19 09:13:05 [RateCDR] => 1 ) [2025-02-19 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:13:05' and `end` < '2025-02-19 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:13:17] Production.INFO: count ==1406 [2025-02-19 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:13:05 - End Time 2025-02-19 09:13:05 [2025-02-19 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509406', 'tblTempUsageDetail_20' ) start [2025-02-19 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509406', 'tblTempUsageDetail_20' ) end [2025-02-19 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509406', 'tblTempVendorCDR_20' ) start [2025-02-19 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509406', 'tblTempVendorCDR_20' ) end [2025-02-19 09:13:18] Production.INFO: ProcessCDR(1,14509406,1,1,2) [2025-02-19 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509406', 'tblTempUsageDetail_20' ) start [2025-02-19 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509406', 'tblTempUsageDetail_20' ) end [2025-02-19 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:13:23] Production.INFO: ==27480== Releasing lock... [2025-02-19 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-19 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:14:06 [end_date_ymd] => 2025-02-19 09:14:06 [RateCDR] => 1 ) [2025-02-19 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:14:06' and `end` < '2025-02-19 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:14:18] Production.INFO: count ==1424 [2025-02-19 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:14:06 - End Time 2025-02-19 09:14:06 [2025-02-19 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509411', 'tblTempUsageDetail_20' ) start [2025-02-19 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509411', 'tblTempUsageDetail_20' ) end [2025-02-19 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509411', 'tblTempVendorCDR_20' ) start [2025-02-19 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509411', 'tblTempVendorCDR_20' ) end [2025-02-19 09:14:19] Production.INFO: ProcessCDR(1,14509411,1,1,2) [2025-02-19 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509411', 'tblTempUsageDetail_20' ) start [2025-02-19 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509411', 'tblTempUsageDetail_20' ) end [2025-02-19 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:14:24] Production.INFO: ==27550== Releasing lock... [2025-02-19 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-19 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:15:05 [end_date_ymd] => 2025-02-19 09:15:05 [RateCDR] => 1 ) [2025-02-19 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:15:05' and `end` < '2025-02-19 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:15:17] Production.INFO: count ==1458 [2025-02-19 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:15:05 - End Time 2025-02-19 09:15:05 [2025-02-19 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509416', 'tblTempUsageDetail_20' ) start [2025-02-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509416', 'tblTempUsageDetail_20' ) end [2025-02-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509416', 'tblTempVendorCDR_20' ) start [2025-02-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509416', 'tblTempVendorCDR_20' ) end [2025-02-19 09:15:18] Production.INFO: ProcessCDR(1,14509416,1,1,2) [2025-02-19 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509416', 'tblTempUsageDetail_20' ) start [2025-02-19 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509416', 'tblTempUsageDetail_20' ) end [2025-02-19 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:15:23] Production.INFO: ==27623== Releasing lock... [2025-02-19 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:15:23] Production.INFO: 39 MB #Memory Used# [2025-02-19 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:16:05 [end_date_ymd] => 2025-02-19 09:16:05 [RateCDR] => 1 ) [2025-02-19 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:16:05' and `end` < '2025-02-19 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:16:18] Production.INFO: count ==1503 [2025-02-19 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:16:05 - End Time 2025-02-19 09:16:05 [2025-02-19 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509421', 'tblTempUsageDetail_20' ) start [2025-02-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509421', 'tblTempUsageDetail_20' ) end [2025-02-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509421', 'tblTempVendorCDR_20' ) start [2025-02-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509421', 'tblTempVendorCDR_20' ) end [2025-02-19 09:16:18] Production.INFO: ProcessCDR(1,14509421,1,1,2) [2025-02-19 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509421', 'tblTempUsageDetail_20' ) start [2025-02-19 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509421', 'tblTempUsageDetail_20' ) end [2025-02-19 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:16:22] Production.INFO: ==27693== Releasing lock... [2025-02-19 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-19 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:17:05 [end_date_ymd] => 2025-02-19 09:17:05 [RateCDR] => 1 ) [2025-02-19 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:17:05' and `end` < '2025-02-19 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:17:18] Production.INFO: count ==1522 [2025-02-19 09:17:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:17:05 - End Time 2025-02-19 09:17:05 [2025-02-19 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509426', 'tblTempUsageDetail_20' ) start [2025-02-19 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509426', 'tblTempUsageDetail_20' ) end [2025-02-19 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509426', 'tblTempVendorCDR_20' ) start [2025-02-19 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509426', 'tblTempVendorCDR_20' ) end [2025-02-19 09:17:19] Production.INFO: ProcessCDR(1,14509426,1,1,2) [2025-02-19 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509426', 'tblTempUsageDetail_20' ) start [2025-02-19 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509426', 'tblTempUsageDetail_20' ) end [2025-02-19 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:17:24] Production.INFO: ==27766== Releasing lock... [2025-02-19 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:17:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-19 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:18:06 [end_date_ymd] => 2025-02-19 09:18:06 [RateCDR] => 1 ) [2025-02-19 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:18:06' and `end` < '2025-02-19 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:18:18] Production.INFO: count ==1542 [2025-02-19 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:18:06 - End Time 2025-02-19 09:18:06 [2025-02-19 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509431', 'tblTempUsageDetail_20' ) start [2025-02-19 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509431', 'tblTempUsageDetail_20' ) end [2025-02-19 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509431', 'tblTempVendorCDR_20' ) start [2025-02-19 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509431', 'tblTempVendorCDR_20' ) end [2025-02-19 09:18:19] Production.INFO: ProcessCDR(1,14509431,1,1,2) [2025-02-19 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509431', 'tblTempUsageDetail_20' ) start [2025-02-19 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509431', 'tblTempUsageDetail_20' ) end [2025-02-19 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:18:24] Production.INFO: ==27837== Releasing lock... [2025-02-19 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:18:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-19 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:19:05 [end_date_ymd] => 2025-02-19 09:19:05 [RateCDR] => 1 ) [2025-02-19 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:19:05' and `end` < '2025-02-19 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:19:17] Production.INFO: count ==1576 [2025-02-19 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:19:05 - End Time 2025-02-19 09:19:05 [2025-02-19 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509436', 'tblTempUsageDetail_20' ) start [2025-02-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509436', 'tblTempUsageDetail_20' ) end [2025-02-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509436', 'tblTempVendorCDR_20' ) start [2025-02-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509436', 'tblTempVendorCDR_20' ) end [2025-02-19 09:19:18] Production.INFO: ProcessCDR(1,14509436,1,1,2) [2025-02-19 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509436', 'tblTempUsageDetail_20' ) start [2025-02-19 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509436', 'tblTempUsageDetail_20' ) end [2025-02-19 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:19:23] Production.INFO: ==27909== Releasing lock... [2025-02-19 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-19 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:20:06 [end_date_ymd] => 2025-02-19 09:20:06 [RateCDR] => 1 ) [2025-02-19 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:20:06' and `end` < '2025-02-19 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:20:19] Production.INFO: count ==1596 [2025-02-19 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:20:06 - End Time 2025-02-19 09:20:06 [2025-02-19 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509442', 'tblTempUsageDetail_20' ) start [2025-02-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509442', 'tblTempUsageDetail_20' ) end [2025-02-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509442', 'tblTempVendorCDR_20' ) start [2025-02-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509442', 'tblTempVendorCDR_20' ) end [2025-02-19 09:20:19] Production.INFO: ProcessCDR(1,14509442,1,1,2) [2025-02-19 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509442', 'tblTempUsageDetail_20' ) start [2025-02-19 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509442', 'tblTempUsageDetail_20' ) end [2025-02-19 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:20:25] Production.INFO: ==27981== Releasing lock... [2025-02-19 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:20:25] Production.INFO: 40 MB #Memory Used# [2025-02-19 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:21:05 [end_date_ymd] => 2025-02-19 09:21:05 [RateCDR] => 1 ) [2025-02-19 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:21:05' and `end` < '2025-02-19 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:21:17] Production.INFO: count ==1685 [2025-02-19 09:21:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:21:05 - End Time 2025-02-19 09:21:05 [2025-02-19 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509447', 'tblTempUsageDetail_20' ) start [2025-02-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509447', 'tblTempUsageDetail_20' ) end [2025-02-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509447', 'tblTempVendorCDR_20' ) start [2025-02-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509447', 'tblTempVendorCDR_20' ) end [2025-02-19 09:21:18] Production.INFO: ProcessCDR(1,14509447,1,1,2) [2025-02-19 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509447', 'tblTempUsageDetail_20' ) start [2025-02-19 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509447', 'tblTempUsageDetail_20' ) end [2025-02-19 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:21:23] Production.INFO: ==28053== Releasing lock... [2025-02-19 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:21:23] Production.INFO: 41 MB #Memory Used# [2025-02-19 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:22:05 [end_date_ymd] => 2025-02-19 09:22:05 [RateCDR] => 1 ) [2025-02-19 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:22:05' and `end` < '2025-02-19 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:22:17] Production.INFO: count ==1718 [2025-02-19 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:22:05 - End Time 2025-02-19 09:22:05 [2025-02-19 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509452', 'tblTempUsageDetail_20' ) start [2025-02-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509452', 'tblTempUsageDetail_20' ) end [2025-02-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509452', 'tblTempVendorCDR_20' ) start [2025-02-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509452', 'tblTempVendorCDR_20' ) end [2025-02-19 09:22:18] Production.INFO: ProcessCDR(1,14509452,1,1,2) [2025-02-19 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509452', 'tblTempUsageDetail_20' ) start [2025-02-19 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509452', 'tblTempUsageDetail_20' ) end [2025-02-19 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:22:23] Production.INFO: ==28126== Releasing lock... [2025-02-19 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:22:23] Production.INFO: 41 MB #Memory Used# [2025-02-19 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:23:05 [end_date_ymd] => 2025-02-19 09:23:05 [RateCDR] => 1 ) [2025-02-19 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:23:05' and `end` < '2025-02-19 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:23:17] Production.INFO: count ==1747 [2025-02-19 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:23:05 - End Time 2025-02-19 09:23:05 [2025-02-19 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509457', 'tblTempUsageDetail_20' ) start [2025-02-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509457', 'tblTempUsageDetail_20' ) end [2025-02-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509457', 'tblTempVendorCDR_20' ) start [2025-02-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509457', 'tblTempVendorCDR_20' ) end [2025-02-19 09:23:18] Production.INFO: ProcessCDR(1,14509457,1,1,2) [2025-02-19 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509457', 'tblTempUsageDetail_20' ) start [2025-02-19 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509457', 'tblTempUsageDetail_20' ) end [2025-02-19 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:23:23] Production.INFO: ==28197== Releasing lock... [2025-02-19 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:23:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-19 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:24:05 [end_date_ymd] => 2025-02-19 09:24:05 [RateCDR] => 1 ) [2025-02-19 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:24:05' and `end` < '2025-02-19 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:24:18] Production.INFO: count ==1751 [2025-02-19 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:24:05 - End Time 2025-02-19 09:24:05 [2025-02-19 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509462', 'tblTempUsageDetail_20' ) start [2025-02-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509462', 'tblTempUsageDetail_20' ) end [2025-02-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509462', 'tblTempVendorCDR_20' ) start [2025-02-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509462', 'tblTempVendorCDR_20' ) end [2025-02-19 09:24:18] Production.INFO: ProcessCDR(1,14509462,1,1,2) [2025-02-19 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509462', 'tblTempUsageDetail_20' ) start [2025-02-19 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509462', 'tblTempUsageDetail_20' ) end [2025-02-19 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:24:23] Production.INFO: ==28268== Releasing lock... [2025-02-19 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:24:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:25:05 [end_date_ymd] => 2025-02-19 09:25:05 [RateCDR] => 1 ) [2025-02-19 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:25:05' and `end` < '2025-02-19 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:25:17] Production.INFO: count ==1766 [2025-02-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:25:05 - End Time 2025-02-19 09:25:05 [2025-02-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509467', 'tblTempUsageDetail_20' ) start [2025-02-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509467', 'tblTempUsageDetail_20' ) end [2025-02-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509467', 'tblTempVendorCDR_20' ) start [2025-02-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509467', 'tblTempVendorCDR_20' ) end [2025-02-19 09:25:18] Production.INFO: ProcessCDR(1,14509467,1,1,2) [2025-02-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509467', 'tblTempUsageDetail_20' ) start [2025-02-19 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509467', 'tblTempUsageDetail_20' ) end [2025-02-19 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:25:23] Production.INFO: ==28338== Releasing lock... [2025-02-19 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-19 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:26:05 [end_date_ymd] => 2025-02-19 09:26:05 [RateCDR] => 1 ) [2025-02-19 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:26:05' and `end` < '2025-02-19 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:26:17] Production.INFO: count ==1785 [2025-02-19 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:26:05 - End Time 2025-02-19 09:26:05 [2025-02-19 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509472', 'tblTempUsageDetail_20' ) start [2025-02-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509472', 'tblTempUsageDetail_20' ) end [2025-02-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509472', 'tblTempVendorCDR_20' ) start [2025-02-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509472', 'tblTempVendorCDR_20' ) end [2025-02-19 09:26:18] Production.INFO: ProcessCDR(1,14509472,1,1,2) [2025-02-19 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509472', 'tblTempUsageDetail_20' ) start [2025-02-19 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509472', 'tblTempUsageDetail_20' ) end [2025-02-19 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:26:23] Production.INFO: ==28449== Releasing lock... [2025-02-19 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:26:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-19 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:27:05 [end_date_ymd] => 2025-02-19 09:27:05 [RateCDR] => 1 ) [2025-02-19 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:27:05' and `end` < '2025-02-19 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:27:17] Production.INFO: count ==1799 [2025-02-19 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:27:05 - End Time 2025-02-19 09:27:05 [2025-02-19 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509477', 'tblTempUsageDetail_20' ) start [2025-02-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509477', 'tblTempUsageDetail_20' ) end [2025-02-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509477', 'tblTempVendorCDR_20' ) start [2025-02-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509477', 'tblTempVendorCDR_20' ) end [2025-02-19 09:27:18] Production.INFO: ProcessCDR(1,14509477,1,1,2) [2025-02-19 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509477', 'tblTempUsageDetail_20' ) start [2025-02-19 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509477', 'tblTempUsageDetail_20' ) end [2025-02-19 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:27:23] Production.INFO: ==28518== Releasing lock... [2025-02-19 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:27:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-19 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:28:05 [end_date_ymd] => 2025-02-19 09:28:05 [RateCDR] => 1 ) [2025-02-19 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:28:05' and `end` < '2025-02-19 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:28:18] Production.INFO: count ==1826 [2025-02-19 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:28:05 - End Time 2025-02-19 09:28:05 [2025-02-19 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509482', 'tblTempUsageDetail_20' ) start [2025-02-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509482', 'tblTempUsageDetail_20' ) end [2025-02-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509482', 'tblTempVendorCDR_20' ) start [2025-02-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509482', 'tblTempVendorCDR_20' ) end [2025-02-19 09:28:18] Production.INFO: ProcessCDR(1,14509482,1,1,2) [2025-02-19 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509482', 'tblTempUsageDetail_20' ) start [2025-02-19 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509482', 'tblTempUsageDetail_20' ) end [2025-02-19 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:28:24] Production.INFO: ==28587== Releasing lock... [2025-02-19 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:28:24] Production.INFO: 42 MB #Memory Used# [2025-02-19 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:29:05 [end_date_ymd] => 2025-02-19 09:29:05 [RateCDR] => 1 ) [2025-02-19 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:29:05' and `end` < '2025-02-19 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:29:17] Production.INFO: count ==1854 [2025-02-19 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:29:05 - End Time 2025-02-19 09:29:05 [2025-02-19 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509487', 'tblTempUsageDetail_20' ) start [2025-02-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509487', 'tblTempUsageDetail_20' ) end [2025-02-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509487', 'tblTempVendorCDR_20' ) start [2025-02-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509487', 'tblTempVendorCDR_20' ) end [2025-02-19 09:29:18] Production.INFO: ProcessCDR(1,14509487,1,1,2) [2025-02-19 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509487', 'tblTempUsageDetail_20' ) start [2025-02-19 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509487', 'tblTempUsageDetail_20' ) end [2025-02-19 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:29:24] Production.INFO: ==28659== Releasing lock... [2025-02-19 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:29:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-19 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:30:06 [end_date_ymd] => 2025-02-19 09:30:06 [RateCDR] => 1 ) [2025-02-19 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:30:06' and `end` < '2025-02-19 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:30:18] Production.INFO: count ==1879 [2025-02-19 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:30:06 - End Time 2025-02-19 09:30:06 [2025-02-19 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509493', 'tblTempUsageDetail_20' ) start [2025-02-19 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509493', 'tblTempUsageDetail_20' ) end [2025-02-19 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509493', 'tblTempVendorCDR_20' ) start [2025-02-19 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509493', 'tblTempVendorCDR_20' ) end [2025-02-19 09:30:19] Production.INFO: ProcessCDR(1,14509493,1,1,2) [2025-02-19 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509493', 'tblTempUsageDetail_20' ) start [2025-02-19 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509493', 'tblTempUsageDetail_20' ) end [2025-02-19 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:30:25] Production.INFO: ==28736== Releasing lock... [2025-02-19 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:30:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-19 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:31:05 [end_date_ymd] => 2025-02-19 09:31:05 [RateCDR] => 1 ) [2025-02-19 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:31:05' and `end` < '2025-02-19 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:31:18] Production.INFO: count ==1961 [2025-02-19 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:31:05 - End Time 2025-02-19 09:31:05 [2025-02-19 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509498', 'tblTempUsageDetail_20' ) start [2025-02-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509498', 'tblTempUsageDetail_20' ) end [2025-02-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509498', 'tblTempVendorCDR_20' ) start [2025-02-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509498', 'tblTempVendorCDR_20' ) end [2025-02-19 09:31:18] Production.INFO: ProcessCDR(1,14509498,1,1,2) [2025-02-19 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509498', 'tblTempUsageDetail_20' ) start [2025-02-19 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509498', 'tblTempUsageDetail_20' ) end [2025-02-19 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:31:23] Production.INFO: ==28814== Releasing lock... [2025-02-19 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:31:23] Production.INFO: 43 MB #Memory Used# [2025-02-19 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:32:06 [end_date_ymd] => 2025-02-19 09:32:06 [RateCDR] => 1 ) [2025-02-19 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:32:06' and `end` < '2025-02-19 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:32:18] Production.INFO: count ==1989 [2025-02-19 09:32:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:32:06 - End Time 2025-02-19 09:32:06 [2025-02-19 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509503', 'tblTempUsageDetail_20' ) start [2025-02-19 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509503', 'tblTempUsageDetail_20' ) end [2025-02-19 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509503', 'tblTempVendorCDR_20' ) start [2025-02-19 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509503', 'tblTempVendorCDR_20' ) end [2025-02-19 09:32:19] Production.INFO: ProcessCDR(1,14509503,1,1,2) [2025-02-19 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509503', 'tblTempUsageDetail_20' ) start [2025-02-19 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509503', 'tblTempUsageDetail_20' ) end [2025-02-19 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:32:24] Production.INFO: ==28885== Releasing lock... [2025-02-19 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:32:24] Production.INFO: 43 MB #Memory Used# [2025-02-19 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:33:06 [end_date_ymd] => 2025-02-19 09:33:06 [RateCDR] => 1 ) [2025-02-19 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:33:06' and `end` < '2025-02-19 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:33:18] Production.INFO: count ==1993 [2025-02-19 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:33:06 - End Time 2025-02-19 09:33:06 [2025-02-19 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509508', 'tblTempUsageDetail_20' ) start [2025-02-19 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509508', 'tblTempUsageDetail_20' ) end [2025-02-19 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509508', 'tblTempVendorCDR_20' ) start [2025-02-19 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509508', 'tblTempVendorCDR_20' ) end [2025-02-19 09:33:19] Production.INFO: ProcessCDR(1,14509508,1,1,2) [2025-02-19 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509508', 'tblTempUsageDetail_20' ) start [2025-02-19 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509508', 'tblTempUsageDetail_20' ) end [2025-02-19 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:33:24] Production.INFO: ==28958== Releasing lock... [2025-02-19 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:33:24] Production.INFO: 43 MB #Memory Used# [2025-02-19 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:34:05 [end_date_ymd] => 2025-02-19 09:34:05 [RateCDR] => 1 ) [2025-02-19 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:34:05' and `end` < '2025-02-19 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:34:18] Production.INFO: count ==1987 [2025-02-19 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:34:05 - End Time 2025-02-19 09:34:05 [2025-02-19 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509513', 'tblTempUsageDetail_20' ) start [2025-02-19 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509513', 'tblTempUsageDetail_20' ) end [2025-02-19 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509513', 'tblTempVendorCDR_20' ) start [2025-02-19 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509513', 'tblTempVendorCDR_20' ) end [2025-02-19 09:34:19] Production.INFO: ProcessCDR(1,14509513,1,1,2) [2025-02-19 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509513', 'tblTempUsageDetail_20' ) start [2025-02-19 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509513', 'tblTempUsageDetail_20' ) end [2025-02-19 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:34:24] Production.INFO: ==29030== Releasing lock... [2025-02-19 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:34:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-19 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:35:05 [end_date_ymd] => 2025-02-19 09:35:05 [RateCDR] => 1 ) [2025-02-19 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:35:05' and `end` < '2025-02-19 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:35:17] Production.INFO: count ==2004 [2025-02-19 09:35:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:35:05 - End Time 2025-02-19 09:35:05 [2025-02-19 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509518', 'tblTempUsageDetail_20' ) start [2025-02-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509518', 'tblTempUsageDetail_20' ) end [2025-02-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509518', 'tblTempVendorCDR_20' ) start [2025-02-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509518', 'tblTempVendorCDR_20' ) end [2025-02-19 09:35:18] Production.INFO: ProcessCDR(1,14509518,1,1,2) [2025-02-19 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509518', 'tblTempUsageDetail_20' ) start [2025-02-19 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509518', 'tblTempUsageDetail_20' ) end [2025-02-19 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:35:24] Production.INFO: ==29100== Releasing lock... [2025-02-19 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:35:24] Production.INFO: 43 MB #Memory Used# [2025-02-19 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:36:05 [end_date_ymd] => 2025-02-19 09:36:05 [RateCDR] => 1 ) [2025-02-19 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:36:05' and `end` < '2025-02-19 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:36:18] Production.INFO: count ==2025 [2025-02-19 09:36:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:36:05 - End Time 2025-02-19 09:36:05 [2025-02-19 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509523', 'tblTempUsageDetail_20' ) start [2025-02-19 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509523', 'tblTempUsageDetail_20' ) end [2025-02-19 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509523', 'tblTempVendorCDR_20' ) start [2025-02-19 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509523', 'tblTempVendorCDR_20' ) end [2025-02-19 09:36:19] Production.INFO: ProcessCDR(1,14509523,1,1,2) [2025-02-19 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509523', 'tblTempUsageDetail_20' ) start [2025-02-19 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509523', 'tblTempUsageDetail_20' ) end [2025-02-19 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:36:24] Production.INFO: ==29170== Releasing lock... [2025-02-19 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:36:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-19 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:37:05 [end_date_ymd] => 2025-02-19 09:37:05 [RateCDR] => 1 ) [2025-02-19 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:37:05' and `end` < '2025-02-19 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:37:18] Production.INFO: count ==2036 [2025-02-19 09:37:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:37:05 - End Time 2025-02-19 09:37:05 [2025-02-19 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509528', 'tblTempUsageDetail_20' ) start [2025-02-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509528', 'tblTempUsageDetail_20' ) end [2025-02-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509528', 'tblTempVendorCDR_20' ) start [2025-02-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509528', 'tblTempVendorCDR_20' ) end [2025-02-19 09:37:19] Production.INFO: ProcessCDR(1,14509528,1,1,2) [2025-02-19 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509528', 'tblTempUsageDetail_20' ) start [2025-02-19 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509528', 'tblTempUsageDetail_20' ) end [2025-02-19 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:37:24] Production.INFO: ==29243== Releasing lock... [2025-02-19 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:37:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-19 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:38:05 [end_date_ymd] => 2025-02-19 09:38:05 [RateCDR] => 1 ) [2025-02-19 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:38:05' and `end` < '2025-02-19 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:38:17] Production.INFO: count ==2061 [2025-02-19 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:38:05 - End Time 2025-02-19 09:38:05 [2025-02-19 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509533', 'tblTempUsageDetail_20' ) start [2025-02-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509533', 'tblTempUsageDetail_20' ) end [2025-02-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509533', 'tblTempVendorCDR_20' ) start [2025-02-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509533', 'tblTempVendorCDR_20' ) end [2025-02-19 09:38:18] Production.INFO: ProcessCDR(1,14509533,1,1,2) [2025-02-19 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509533', 'tblTempUsageDetail_20' ) start [2025-02-19 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509533', 'tblTempUsageDetail_20' ) end [2025-02-19 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:38:24] Production.INFO: ==29320== Releasing lock... [2025-02-19 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:38:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-19 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:39:05 [end_date_ymd] => 2025-02-19 09:39:05 [RateCDR] => 1 ) [2025-02-19 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:39:05' and `end` < '2025-02-19 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:39:17] Production.INFO: count ==2062 [2025-02-19 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:39:05 - End Time 2025-02-19 09:39:05 [2025-02-19 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509538', 'tblTempUsageDetail_20' ) start [2025-02-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509538', 'tblTempUsageDetail_20' ) end [2025-02-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509538', 'tblTempVendorCDR_20' ) start [2025-02-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509538', 'tblTempVendorCDR_20' ) end [2025-02-19 09:39:18] Production.INFO: ProcessCDR(1,14509538,1,1,2) [2025-02-19 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509538', 'tblTempUsageDetail_20' ) start [2025-02-19 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509538', 'tblTempUsageDetail_20' ) end [2025-02-19 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:39:23] Production.INFO: ==29394== Releasing lock... [2025-02-19 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:39:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-19 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:40:06 [end_date_ymd] => 2025-02-19 09:40:06 [RateCDR] => 1 ) [2025-02-19 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:40:06' and `end` < '2025-02-19 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:40:18] Production.INFO: count ==2099 [2025-02-19 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-19 06:40:06 - End Time 2025-02-19 09:40:06 [2025-02-19 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509544', 'tblTempUsageDetail_20' ) start [2025-02-19 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509544', 'tblTempUsageDetail_20' ) end [2025-02-19 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509544', 'tblTempVendorCDR_20' ) start [2025-02-19 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509544', 'tblTempVendorCDR_20' ) end [2025-02-19 09:40:20] Production.INFO: ProcessCDR(1,14509544,1,1,2) [2025-02-19 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509544', 'tblTempUsageDetail_20' ) start [2025-02-19 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509544', 'tblTempUsageDetail_20' ) end [2025-02-19 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:40:25] Production.INFO: ==29471== Releasing lock... [2025-02-19 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:40:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-19 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:41:05 [end_date_ymd] => 2025-02-19 09:41:05 [RateCDR] => 1 ) [2025-02-19 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:41:05' and `end` < '2025-02-19 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:41:17] Production.INFO: count ==2205 [2025-02-19 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:41:05 - End Time 2025-02-19 09:41:05 [2025-02-19 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509549', 'tblTempUsageDetail_20' ) start [2025-02-19 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509549', 'tblTempUsageDetail_20' ) end [2025-02-19 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509549', 'tblTempVendorCDR_20' ) start [2025-02-19 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509549', 'tblTempVendorCDR_20' ) end [2025-02-19 09:41:18] Production.INFO: ProcessCDR(1,14509549,1,1,2) [2025-02-19 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509549', 'tblTempUsageDetail_20' ) start [2025-02-19 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509549', 'tblTempUsageDetail_20' ) end [2025-02-19 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:41:24] Production.INFO: ==29548== Releasing lock... [2025-02-19 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:41:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-19 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:42:05 [end_date_ymd] => 2025-02-19 09:42:05 [RateCDR] => 1 ) [2025-02-19 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:42:05' and `end` < '2025-02-19 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:42:18] Production.INFO: count ==2228 [2025-02-19 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:42:05 - End Time 2025-02-19 09:42:05 [2025-02-19 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509554', 'tblTempUsageDetail_20' ) start [2025-02-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509554', 'tblTempUsageDetail_20' ) end [2025-02-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509554', 'tblTempVendorCDR_20' ) start [2025-02-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509554', 'tblTempVendorCDR_20' ) end [2025-02-19 09:42:19] Production.INFO: ProcessCDR(1,14509554,1,1,2) [2025-02-19 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509554', 'tblTempUsageDetail_20' ) start [2025-02-19 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509554', 'tblTempUsageDetail_20' ) end [2025-02-19 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:42:24] Production.INFO: ==29664== Releasing lock... [2025-02-19 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:42:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:43:05 [end_date_ymd] => 2025-02-19 09:43:05 [RateCDR] => 1 ) [2025-02-19 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:43:05' and `end` < '2025-02-19 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:43:17] Production.INFO: count ==2232 [2025-02-19 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:43:05 - End Time 2025-02-19 09:43:05 [2025-02-19 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509559', 'tblTempUsageDetail_20' ) start [2025-02-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509559', 'tblTempUsageDetail_20' ) end [2025-02-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509559', 'tblTempVendorCDR_20' ) start [2025-02-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509559', 'tblTempVendorCDR_20' ) end [2025-02-19 09:43:18] Production.INFO: ProcessCDR(1,14509559,1,1,2) [2025-02-19 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509559', 'tblTempUsageDetail_20' ) start [2025-02-19 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509559', 'tblTempUsageDetail_20' ) end [2025-02-19 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:43:23] Production.INFO: ==29744== Releasing lock... [2025-02-19 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:43:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:44:06 [end_date_ymd] => 2025-02-19 09:44:06 [RateCDR] => 1 ) [2025-02-19 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:44:06' and `end` < '2025-02-19 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:44:18] Production.INFO: count ==2230 [2025-02-19 09:44:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:44:06 - End Time 2025-02-19 09:44:06 [2025-02-19 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509564', 'tblTempUsageDetail_20' ) start [2025-02-19 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509564', 'tblTempUsageDetail_20' ) end [2025-02-19 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509564', 'tblTempVendorCDR_20' ) start [2025-02-19 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509564', 'tblTempVendorCDR_20' ) end [2025-02-19 09:44:19] Production.INFO: ProcessCDR(1,14509564,1,1,2) [2025-02-19 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509564', 'tblTempUsageDetail_20' ) start [2025-02-19 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509564', 'tblTempUsageDetail_20' ) end [2025-02-19 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:44:24] Production.INFO: ==29817== Releasing lock... [2025-02-19 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:44:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:45:05 [end_date_ymd] => 2025-02-19 09:45:05 [RateCDR] => 1 ) [2025-02-19 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:45:05' and `end` < '2025-02-19 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:45:17] Production.INFO: count ==2226 [2025-02-19 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:45:05 - End Time 2025-02-19 09:45:05 [2025-02-19 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509569', 'tblTempUsageDetail_20' ) start [2025-02-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509569', 'tblTempUsageDetail_20' ) end [2025-02-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509569', 'tblTempVendorCDR_20' ) start [2025-02-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509569', 'tblTempVendorCDR_20' ) end [2025-02-19 09:45:18] Production.INFO: ProcessCDR(1,14509569,1,1,2) [2025-02-19 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509569', 'tblTempUsageDetail_20' ) start [2025-02-19 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509569', 'tblTempUsageDetail_20' ) end [2025-02-19 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:45:23] Production.INFO: ==29893== Releasing lock... [2025-02-19 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:45:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:46:06 [end_date_ymd] => 2025-02-19 09:46:06 [RateCDR] => 1 ) [2025-02-19 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:46:06' and `end` < '2025-02-19 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:46:18] Production.INFO: count ==2239 [2025-02-19 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:46:06 - End Time 2025-02-19 09:46:06 [2025-02-19 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509574', 'tblTempUsageDetail_20' ) start [2025-02-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509574', 'tblTempUsageDetail_20' ) end [2025-02-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509574', 'tblTempVendorCDR_20' ) start [2025-02-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509574', 'tblTempVendorCDR_20' ) end [2025-02-19 09:46:19] Production.INFO: ProcessCDR(1,14509574,1,1,2) [2025-02-19 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509574', 'tblTempUsageDetail_20' ) start [2025-02-19 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509574', 'tblTempUsageDetail_20' ) end [2025-02-19 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:46:24] Production.INFO: ==29968== Releasing lock... [2025-02-19 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:46:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:47:05 [end_date_ymd] => 2025-02-19 09:47:05 [RateCDR] => 1 ) [2025-02-19 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:47:05' and `end` < '2025-02-19 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:47:17] Production.INFO: count ==2242 [2025-02-19 09:47:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:47:05 - End Time 2025-02-19 09:47:05 [2025-02-19 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509579', 'tblTempUsageDetail_20' ) start [2025-02-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509579', 'tblTempUsageDetail_20' ) end [2025-02-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509579', 'tblTempVendorCDR_20' ) start [2025-02-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509579', 'tblTempVendorCDR_20' ) end [2025-02-19 09:47:18] Production.INFO: ProcessCDR(1,14509579,1,1,2) [2025-02-19 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509579', 'tblTempUsageDetail_20' ) start [2025-02-19 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509579', 'tblTempUsageDetail_20' ) end [2025-02-19 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:47:23] Production.INFO: ==30040== Releasing lock... [2025-02-19 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:47:23] Production.INFO: 45 MB #Memory Used# [2025-02-19 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:48:05 [end_date_ymd] => 2025-02-19 09:48:05 [RateCDR] => 1 ) [2025-02-19 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:48:05' and `end` < '2025-02-19 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:48:17] Production.INFO: count ==2232 [2025-02-19 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:48:05 - End Time 2025-02-19 09:48:05 [2025-02-19 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509584', 'tblTempUsageDetail_20' ) start [2025-02-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509584', 'tblTempUsageDetail_20' ) end [2025-02-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509584', 'tblTempVendorCDR_20' ) start [2025-02-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509584', 'tblTempVendorCDR_20' ) end [2025-02-19 09:48:18] Production.INFO: ProcessCDR(1,14509584,1,1,2) [2025-02-19 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509584', 'tblTempUsageDetail_20' ) start [2025-02-19 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509584', 'tblTempUsageDetail_20' ) end [2025-02-19 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:48:23] Production.INFO: ==30114== Releasing lock... [2025-02-19 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:48:23] Production.INFO: 45 MB #Memory Used# [2025-02-19 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:49:06 [end_date_ymd] => 2025-02-19 09:49:06 [RateCDR] => 1 ) [2025-02-19 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:49:06' and `end` < '2025-02-19 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:49:18] Production.INFO: count ==2247 [2025-02-19 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:49:06 - End Time 2025-02-19 09:49:06 [2025-02-19 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509589', 'tblTempUsageDetail_20' ) start [2025-02-19 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509589', 'tblTempUsageDetail_20' ) end [2025-02-19 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509589', 'tblTempVendorCDR_20' ) start [2025-02-19 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509589', 'tblTempVendorCDR_20' ) end [2025-02-19 09:49:19] Production.INFO: ProcessCDR(1,14509589,1,1,2) [2025-02-19 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509589', 'tblTempUsageDetail_20' ) start [2025-02-19 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509589', 'tblTempUsageDetail_20' ) end [2025-02-19 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:49:24] Production.INFO: ==30190== Releasing lock... [2025-02-19 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:49:24] Production.INFO: 45 MB #Memory Used# [2025-02-19 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:50:05 [end_date_ymd] => 2025-02-19 09:50:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 06:50:05' and `end` < '2025-02-19 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-02-19 09:50:18] Production.INFO: count ==2273 [2025-02-19 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:50:05 - End Time 2025-02-19 09:50:05 [2025-02-19 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509594', 'tblTempUsageDetail_20' ) start [2025-02-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509594', 'tblTempUsageDetail_20' ) end [2025-02-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509594', 'tblTempVendorCDR_20' ) start [2025-02-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509594', 'tblTempVendorCDR_20' ) end [2025-02-19 09:50:19] Production.INFO: ProcessCDR(1,14509594,1,1,2) [2025-02-19 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509594', 'tblTempUsageDetail_20' ) start [2025-02-19 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509594', 'tblTempUsageDetail_20' ) end [2025-02-19 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:50:24] Production.INFO: ==30267== Releasing lock... [2025-02-19 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:50:24] Production.INFO: 45 MB #Memory Used# [2025-02-19 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:51:06 [end_date_ymd] => 2025-02-19 09:51:06 [RateCDR] => 1 ) [2025-02-19 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:51:06' and `end` < '2025-02-19 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:51:18] Production.INFO: count ==2361 [2025-02-19 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:51:06 - End Time 2025-02-19 09:51:06 [2025-02-19 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509600', 'tblTempUsageDetail_20' ) start [2025-02-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509600', 'tblTempUsageDetail_20' ) end [2025-02-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509600', 'tblTempVendorCDR_20' ) start [2025-02-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509600', 'tblTempVendorCDR_20' ) end [2025-02-19 09:51:19] Production.INFO: ProcessCDR(1,14509600,1,1,2) [2025-02-19 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509600', 'tblTempUsageDetail_20' ) start [2025-02-19 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509600', 'tblTempUsageDetail_20' ) end [2025-02-19 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:51:25] Production.INFO: ==30347== Releasing lock... [2025-02-19 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:51:25] Production.INFO: 46 MB #Memory Used# [2025-02-19 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:52:05 [end_date_ymd] => 2025-02-19 09:52:05 [RateCDR] => 1 ) [2025-02-19 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:52:05' and `end` < '2025-02-19 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:52:17] Production.INFO: count ==2407 [2025-02-19 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:52:05 - End Time 2025-02-19 09:52:05 [2025-02-19 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509604', 'tblTempUsageDetail_20' ) start [2025-02-19 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509604', 'tblTempUsageDetail_20' ) end [2025-02-19 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509604', 'tblTempVendorCDR_20' ) start [2025-02-19 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509604', 'tblTempVendorCDR_20' ) end [2025-02-19 09:52:18] Production.INFO: ProcessCDR(1,14509604,1,1,2) [2025-02-19 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509604', 'tblTempUsageDetail_20' ) start [2025-02-19 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509604', 'tblTempUsageDetail_20' ) end [2025-02-19 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:52:22] Production.INFO: ==30420== Releasing lock... [2025-02-19 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:52:22] Production.INFO: 46 MB #Memory Used# [2025-02-19 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:53:05 [end_date_ymd] => 2025-02-19 09:53:05 [RateCDR] => 1 ) [2025-02-19 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:53:05' and `end` < '2025-02-19 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:53:17] Production.INFO: count ==2418 [2025-02-19 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:53:05 - End Time 2025-02-19 09:53:05 [2025-02-19 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509607', 'tblTempUsageDetail_20' ) start [2025-02-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509607', 'tblTempUsageDetail_20' ) end [2025-02-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509607', 'tblTempVendorCDR_20' ) start [2025-02-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509607', 'tblTempVendorCDR_20' ) end [2025-02-19 09:53:19] Production.INFO: ProcessCDR(1,14509607,1,1,2) [2025-02-19 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509607', 'tblTempUsageDetail_20' ) start [2025-02-19 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509607', 'tblTempUsageDetail_20' ) end [2025-02-19 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:53:22] Production.INFO: ==30494== Releasing lock... [2025-02-19 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:53:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:54:05 [end_date_ymd] => 2025-02-19 09:54:05 [RateCDR] => 1 ) [2025-02-19 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:54:05' and `end` < '2025-02-19 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:54:17] Production.INFO: count ==2448 [2025-02-19 09:54:18] Production.ERROR: pbx CDR StartTime 2025-02-19 06:54:05 - End Time 2025-02-19 09:54:05 [2025-02-19 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509615', 'tblTempUsageDetail_20' ) start [2025-02-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509615', 'tblTempUsageDetail_20' ) end [2025-02-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509615', 'tblTempVendorCDR_20' ) start [2025-02-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509615', 'tblTempVendorCDR_20' ) end [2025-02-19 09:54:18] Production.INFO: ProcessCDR(1,14509615,1,1,2) [2025-02-19 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509615', 'tblTempUsageDetail_20' ) start [2025-02-19 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509615', 'tblTempUsageDetail_20' ) end [2025-02-19 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:54:23] Production.INFO: ==30570== Releasing lock... [2025-02-19 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:54:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-19 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:55:06 [end_date_ymd] => 2025-02-19 09:55:06 [RateCDR] => 1 ) [2025-02-19 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:55:06' and `end` < '2025-02-19 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:55:18] Production.INFO: count ==2479 [2025-02-19 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:55:06 - End Time 2025-02-19 09:55:06 [2025-02-19 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509620', 'tblTempUsageDetail_20' ) start [2025-02-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509620', 'tblTempUsageDetail_20' ) end [2025-02-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509620', 'tblTempVendorCDR_20' ) start [2025-02-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509620', 'tblTempVendorCDR_20' ) end [2025-02-19 09:55:19] Production.INFO: ProcessCDR(1,14509620,1,1,2) [2025-02-19 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509620', 'tblTempUsageDetail_20' ) start [2025-02-19 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509620', 'tblTempUsageDetail_20' ) end [2025-02-19 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:55:24] Production.INFO: ==30645== Releasing lock... [2025-02-19 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:55:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-19 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:56:05 [end_date_ymd] => 2025-02-19 09:56:05 [RateCDR] => 1 ) [2025-02-19 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:56:05' and `end` < '2025-02-19 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:56:18] Production.INFO: count ==2495 [2025-02-19 09:56:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:56:05 - End Time 2025-02-19 09:56:05 [2025-02-19 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509625', 'tblTempUsageDetail_20' ) start [2025-02-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509625', 'tblTempUsageDetail_20' ) end [2025-02-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509625', 'tblTempVendorCDR_20' ) start [2025-02-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509625', 'tblTempVendorCDR_20' ) end [2025-02-19 09:56:19] Production.INFO: ProcessCDR(1,14509625,1,1,2) [2025-02-19 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509625', 'tblTempUsageDetail_20' ) start [2025-02-19 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509625', 'tblTempUsageDetail_20' ) end [2025-02-19 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:56:25] Production.INFO: ==30719== Releasing lock... [2025-02-19 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:56:25] Production.INFO: 47 MB #Memory Used# [2025-02-19 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:57:05 [end_date_ymd] => 2025-02-19 09:57:05 [RateCDR] => 1 ) [2025-02-19 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:57:05' and `end` < '2025-02-19 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:57:18] Production.INFO: count ==2504 [2025-02-19 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:57:05 - End Time 2025-02-19 09:57:05 [2025-02-19 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509630', 'tblTempUsageDetail_20' ) start [2025-02-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509630', 'tblTempUsageDetail_20' ) end [2025-02-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509630', 'tblTempVendorCDR_20' ) start [2025-02-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509630', 'tblTempVendorCDR_20' ) end [2025-02-19 09:57:19] Production.INFO: ProcessCDR(1,14509630,1,1,2) [2025-02-19 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509630', 'tblTempUsageDetail_20' ) start [2025-02-19 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509630', 'tblTempUsageDetail_20' ) end [2025-02-19 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:57:24] Production.INFO: ==30836== Releasing lock... [2025-02-19 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:57:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-19 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:58:06 [end_date_ymd] => 2025-02-19 09:58:06 [RateCDR] => 1 ) [2025-02-19 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:58:06' and `end` < '2025-02-19 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:58:18] Production.INFO: count ==2522 [2025-02-19 09:58:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:58:06 - End Time 2025-02-19 09:58:06 [2025-02-19 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509635', 'tblTempUsageDetail_20' ) start [2025-02-19 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509635', 'tblTempUsageDetail_20' ) end [2025-02-19 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509635', 'tblTempVendorCDR_20' ) start [2025-02-19 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509635', 'tblTempVendorCDR_20' ) end [2025-02-19 09:58:19] Production.INFO: ProcessCDR(1,14509635,1,1,2) [2025-02-19 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509635', 'tblTempUsageDetail_20' ) start [2025-02-19 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509635', 'tblTempUsageDetail_20' ) end [2025-02-19 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:58:23] Production.INFO: ==30917== Releasing lock... [2025-02-19 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:58:23] Production.INFO: 47 MB #Memory Used# [2025-02-19 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 06:59:05 [end_date_ymd] => 2025-02-19 09:59:05 [RateCDR] => 1 ) [2025-02-19 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 06:59:05' and `end` < '2025-02-19 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 09:59:17] Production.INFO: count ==2533 [2025-02-19 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-19 06:59:05 - End Time 2025-02-19 09:59:05 [2025-02-19 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509640', 'tblTempUsageDetail_20' ) start [2025-02-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509640', 'tblTempUsageDetail_20' ) end [2025-02-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509640', 'tblTempVendorCDR_20' ) start [2025-02-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509640', 'tblTempVendorCDR_20' ) end [2025-02-19 09:59:19] Production.INFO: ProcessCDR(1,14509640,1,1,2) [2025-02-19 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509640', 'tblTempUsageDetail_20' ) start [2025-02-19 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509640', 'tblTempUsageDetail_20' ) end [2025-02-19 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 09:59:24] Production.INFO: ==30994== Releasing lock... [2025-02-19 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 09:59:24] Production.INFO: 47 MB #Memory Used# [2025-02-19 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:00:07 [end_date_ymd] => 2025-02-19 10:00:07 [RateCDR] => 1 ) [2025-02-19 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:00:07' and `end` < '2025-02-19 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:00:19] Production.INFO: count ==2552 [2025-02-19 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:00:07 - End Time 2025-02-19 10:00:07 [2025-02-19 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509646', 'tblTempUsageDetail_20' ) start [2025-02-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509646', 'tblTempUsageDetail_20' ) end [2025-02-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509646', 'tblTempVendorCDR_20' ) start [2025-02-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509646', 'tblTempVendorCDR_20' ) end [2025-02-19 10:00:20] Production.INFO: ProcessCDR(1,14509646,1,1,2) [2025-02-19 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509646', 'tblTempUsageDetail_20' ) start [2025-02-19 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509646', 'tblTempUsageDetail_20' ) end [2025-02-19 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:00:26] Production.INFO: ==31073== Releasing lock... [2025-02-19 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:00:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-19 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:01:06 [end_date_ymd] => 2025-02-19 10:01:06 [RateCDR] => 1 ) [2025-02-19 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:01:06' and `end` < '2025-02-19 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:01:18] Production.INFO: count ==2673 [2025-02-19 10:01:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:01:06 - End Time 2025-02-19 10:01:06 [2025-02-19 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509651', 'tblTempUsageDetail_20' ) start [2025-02-19 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509651', 'tblTempUsageDetail_20' ) end [2025-02-19 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509651', 'tblTempVendorCDR_20' ) start [2025-02-19 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509651', 'tblTempVendorCDR_20' ) end [2025-02-19 10:01:20] Production.INFO: ProcessCDR(1,14509651,1,1,2) [2025-02-19 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509651', 'tblTempUsageDetail_20' ) start [2025-02-19 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509651', 'tblTempUsageDetail_20' ) end [2025-02-19 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:01:25] Production.INFO: ==31167== Releasing lock... [2025-02-19 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:01:25] Production.INFO: 48 MB #Memory Used# [2025-02-19 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:02:06 [end_date_ymd] => 2025-02-19 10:02:06 [RateCDR] => 1 ) [2025-02-19 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:02:06' and `end` < '2025-02-19 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:02:18] Production.INFO: count ==2681 [2025-02-19 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:02:06 - End Time 2025-02-19 10:02:06 [2025-02-19 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509656', 'tblTempUsageDetail_20' ) start [2025-02-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509656', 'tblTempUsageDetail_20' ) end [2025-02-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509656', 'tblTempVendorCDR_20' ) start [2025-02-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509656', 'tblTempVendorCDR_20' ) end [2025-02-19 10:02:20] Production.INFO: ProcessCDR(1,14509656,1,1,2) [2025-02-19 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509656', 'tblTempUsageDetail_20' ) start [2025-02-19 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509656', 'tblTempUsageDetail_20' ) end [2025-02-19 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:02:25] Production.INFO: ==31245== Releasing lock... [2025-02-19 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:02:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-19 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:03:05 [end_date_ymd] => 2025-02-19 10:03:05 [RateCDR] => 1 ) [2025-02-19 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:03:05' and `end` < '2025-02-19 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:03:17] Production.INFO: count ==2697 [2025-02-19 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:03:05 - End Time 2025-02-19 10:03:05 [2025-02-19 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509661', 'tblTempUsageDetail_20' ) start [2025-02-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509661', 'tblTempUsageDetail_20' ) end [2025-02-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509661', 'tblTempVendorCDR_20' ) start [2025-02-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509661', 'tblTempVendorCDR_20' ) end [2025-02-19 10:03:19] Production.INFO: ProcessCDR(1,14509661,1,1,2) [2025-02-19 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509661', 'tblTempUsageDetail_20' ) start [2025-02-19 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509661', 'tblTempUsageDetail_20' ) end [2025-02-19 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:03:25] Production.INFO: ==31319== Releasing lock... [2025-02-19 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:03:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-19 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:04:06 [end_date_ymd] => 2025-02-19 10:04:06 [RateCDR] => 1 ) [2025-02-19 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:04:06' and `end` < '2025-02-19 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:04:18] Production.INFO: count ==2711 [2025-02-19 10:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:04:06 - End Time 2025-02-19 10:04:06 [2025-02-19 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509666', 'tblTempUsageDetail_20' ) start [2025-02-19 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509666', 'tblTempUsageDetail_20' ) end [2025-02-19 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509666', 'tblTempVendorCDR_20' ) start [2025-02-19 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509666', 'tblTempVendorCDR_20' ) end [2025-02-19 10:04:20] Production.INFO: ProcessCDR(1,14509666,1,1,2) [2025-02-19 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509666', 'tblTempUsageDetail_20' ) start [2025-02-19 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509666', 'tblTempUsageDetail_20' ) end [2025-02-19 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:04:25] Production.INFO: ==31391== Releasing lock... [2025-02-19 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:04:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-19 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:05:05 [end_date_ymd] => 2025-02-19 10:05:05 [RateCDR] => 1 ) [2025-02-19 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:05:05' and `end` < '2025-02-19 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:05:18] Production.INFO: count ==2757 [2025-02-19 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:05:05 - End Time 2025-02-19 10:05:05 [2025-02-19 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509671', 'tblTempUsageDetail_20' ) start [2025-02-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509671', 'tblTempUsageDetail_20' ) end [2025-02-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509671', 'tblTempVendorCDR_20' ) start [2025-02-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509671', 'tblTempVendorCDR_20' ) end [2025-02-19 10:05:19] Production.INFO: ProcessCDR(1,14509671,1,1,2) [2025-02-19 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509671', 'tblTempUsageDetail_20' ) start [2025-02-19 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509671', 'tblTempUsageDetail_20' ) end [2025-02-19 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:05:25] Production.INFO: ==31463== Releasing lock... [2025-02-19 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:05:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-19 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:06:06 [end_date_ymd] => 2025-02-19 10:06:06 [RateCDR] => 1 ) [2025-02-19 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:06:06' and `end` < '2025-02-19 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:06:18] Production.INFO: count ==2792 [2025-02-19 10:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:06:06 - End Time 2025-02-19 10:06:06 [2025-02-19 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509676', 'tblTempUsageDetail_20' ) start [2025-02-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509676', 'tblTempUsageDetail_20' ) end [2025-02-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509676', 'tblTempVendorCDR_20' ) start [2025-02-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509676', 'tblTempVendorCDR_20' ) end [2025-02-19 10:06:20] Production.INFO: ProcessCDR(1,14509676,1,1,2) [2025-02-19 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509676', 'tblTempUsageDetail_20' ) start [2025-02-19 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509676', 'tblTempUsageDetail_20' ) end [2025-02-19 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:06:25] Production.INFO: ==31539== Releasing lock... [2025-02-19 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:06:25] Production.INFO: 49 MB #Memory Used# [2025-02-19 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:07:05 [end_date_ymd] => 2025-02-19 10:07:05 [RateCDR] => 1 ) [2025-02-19 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:07:05' and `end` < '2025-02-19 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:07:18] Production.INFO: count ==2829 [2025-02-19 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:07:05 - End Time 2025-02-19 10:07:05 [2025-02-19 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509681', 'tblTempUsageDetail_20' ) start [2025-02-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509681', 'tblTempUsageDetail_20' ) end [2025-02-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509681', 'tblTempVendorCDR_20' ) start [2025-02-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509681', 'tblTempVendorCDR_20' ) end [2025-02-19 10:07:19] Production.INFO: ProcessCDR(1,14509681,1,1,2) [2025-02-19 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509681', 'tblTempUsageDetail_20' ) start [2025-02-19 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509681', 'tblTempUsageDetail_20' ) end [2025-02-19 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:07:25] Production.INFO: ==31614== Releasing lock... [2025-02-19 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:07:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-19 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:08:06 [end_date_ymd] => 2025-02-19 10:08:06 [RateCDR] => 1 ) [2025-02-19 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:08:06' and `end` < '2025-02-19 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:08:18] Production.INFO: count ==2840 [2025-02-19 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:08:06 - End Time 2025-02-19 10:08:06 [2025-02-19 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509686', 'tblTempUsageDetail_20' ) start [2025-02-19 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509686', 'tblTempUsageDetail_20' ) end [2025-02-19 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509686', 'tblTempVendorCDR_20' ) start [2025-02-19 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509686', 'tblTempVendorCDR_20' ) end [2025-02-19 10:08:20] Production.INFO: ProcessCDR(1,14509686,1,1,2) [2025-02-19 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509686', 'tblTempUsageDetail_20' ) start [2025-02-19 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509686', 'tblTempUsageDetail_20' ) end [2025-02-19 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:08:25] Production.INFO: ==31688== Releasing lock... [2025-02-19 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:08:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-19 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:09:05 [end_date_ymd] => 2025-02-19 10:09:05 [RateCDR] => 1 ) [2025-02-19 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:09:05' and `end` < '2025-02-19 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:09:17] Production.INFO: count ==2854 [2025-02-19 10:09:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:09:05 - End Time 2025-02-19 10:09:05 [2025-02-19 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509691', 'tblTempUsageDetail_20' ) start [2025-02-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509691', 'tblTempUsageDetail_20' ) end [2025-02-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509691', 'tblTempVendorCDR_20' ) start [2025-02-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509691', 'tblTempVendorCDR_20' ) end [2025-02-19 10:09:19] Production.INFO: ProcessCDR(1,14509691,1,1,2) [2025-02-19 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509691', 'tblTempUsageDetail_20' ) start [2025-02-19 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509691', 'tblTempUsageDetail_20' ) end [2025-02-19 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:09:24] Production.INFO: ==31760== Releasing lock... [2025-02-19 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:09:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-19 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:10:07 [end_date_ymd] => 2025-02-19 10:10:07 [RateCDR] => 1 ) [2025-02-19 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:10:07' and `end` < '2025-02-19 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:10:19] Production.INFO: count ==2900 [2025-02-19 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:10:07 - End Time 2025-02-19 10:10:07 [2025-02-19 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509697', 'tblTempUsageDetail_20' ) start [2025-02-19 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509697', 'tblTempUsageDetail_20' ) end [2025-02-19 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509697', 'tblTempVendorCDR_20' ) start [2025-02-19 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509697', 'tblTempVendorCDR_20' ) end [2025-02-19 10:10:21] Production.INFO: ProcessCDR(1,14509697,1,1,2) [2025-02-19 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509697', 'tblTempUsageDetail_20' ) start [2025-02-19 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509697', 'tblTempUsageDetail_20' ) end [2025-02-19 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:10:26] Production.INFO: ==31842== Releasing lock... [2025-02-19 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:10:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-19 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:11:05 [end_date_ymd] => 2025-02-19 10:11:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 07:11:05' and `end` < '2025-02-19 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:11:18] Production.INFO: count ==2992 [2025-02-19 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:11:05 - End Time 2025-02-19 10:11:05 [2025-02-19 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509702', 'tblTempUsageDetail_20' ) start [2025-02-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509702', 'tblTempUsageDetail_20' ) end [2025-02-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509702', 'tblTempVendorCDR_20' ) start [2025-02-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509702', 'tblTempVendorCDR_20' ) end [2025-02-19 10:11:19] Production.INFO: ProcessCDR(1,14509702,1,1,2) [2025-02-19 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509702', 'tblTempUsageDetail_20' ) start [2025-02-19 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509702', 'tblTempUsageDetail_20' ) end [2025-02-19 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:11:23] Production.INFO: ==31927== Releasing lock... [2025-02-19 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:11:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-19 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:12:06 [end_date_ymd] => 2025-02-19 10:12:06 [RateCDR] => 1 ) [2025-02-19 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:12:06' and `end` < '2025-02-19 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:12:18] Production.INFO: count ==3003 [2025-02-19 10:12:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:12:06 - End Time 2025-02-19 10:12:06 [2025-02-19 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509707', 'tblTempUsageDetail_20' ) start [2025-02-19 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509707', 'tblTempUsageDetail_20' ) end [2025-02-19 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509707', 'tblTempVendorCDR_20' ) start [2025-02-19 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509707', 'tblTempVendorCDR_20' ) end [2025-02-19 10:12:20] Production.INFO: ProcessCDR(1,14509707,1,1,2) [2025-02-19 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509707', 'tblTempUsageDetail_20' ) start [2025-02-19 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509707', 'tblTempUsageDetail_20' ) end [2025-02-19 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:12:25] Production.INFO: ==32001== Releasing lock... [2025-02-19 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:12:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-19 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:13:05 [end_date_ymd] => 2025-02-19 10:13:05 [RateCDR] => 1 ) [2025-02-19 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:13:05' and `end` < '2025-02-19 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:13:17] Production.INFO: count ==3023 [2025-02-19 10:13:18] Production.ERROR: pbx CDR StartTime 2025-02-19 07:13:05 - End Time 2025-02-19 10:13:05 [2025-02-19 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509712', 'tblTempUsageDetail_20' ) start [2025-02-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509712', 'tblTempUsageDetail_20' ) end [2025-02-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509712', 'tblTempVendorCDR_20' ) start [2025-02-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509712', 'tblTempVendorCDR_20' ) end [2025-02-19 10:13:19] Production.INFO: ProcessCDR(1,14509712,1,1,2) [2025-02-19 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509712', 'tblTempUsageDetail_20' ) start [2025-02-19 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509712', 'tblTempUsageDetail_20' ) end [2025-02-19 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:13:24] Production.INFO: ==32117== Releasing lock... [2025-02-19 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:13:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-19 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:14:06 [end_date_ymd] => 2025-02-19 10:14:06 [RateCDR] => 1 ) [2025-02-19 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:14:06' and `end` < '2025-02-19 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:14:18] Production.INFO: count ==3037 [2025-02-19 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:14:06 - End Time 2025-02-19 10:14:06 [2025-02-19 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509717', 'tblTempUsageDetail_20' ) start [2025-02-19 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509717', 'tblTempUsageDetail_20' ) end [2025-02-19 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509717', 'tblTempVendorCDR_20' ) start [2025-02-19 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509717', 'tblTempVendorCDR_20' ) end [2025-02-19 10:14:19] Production.INFO: ProcessCDR(1,14509717,1,1,2) [2025-02-19 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509717', 'tblTempUsageDetail_20' ) start [2025-02-19 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509717', 'tblTempUsageDetail_20' ) end [2025-02-19 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:14:25] Production.INFO: ==32192== Releasing lock... [2025-02-19 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:14:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-19 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:15:05 [end_date_ymd] => 2025-02-19 10:15:05 [RateCDR] => 1 ) [2025-02-19 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:15:05' and `end` < '2025-02-19 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:15:17] Production.INFO: count ==3056 [2025-02-19 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:15:05 - End Time 2025-02-19 10:15:05 [2025-02-19 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509722', 'tblTempUsageDetail_20' ) start [2025-02-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509722', 'tblTempUsageDetail_20' ) end [2025-02-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509722', 'tblTempVendorCDR_20' ) start [2025-02-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509722', 'tblTempVendorCDR_20' ) end [2025-02-19 10:15:19] Production.INFO: ProcessCDR(1,14509722,1,1,2) [2025-02-19 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509722', 'tblTempUsageDetail_20' ) start [2025-02-19 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509722', 'tblTempUsageDetail_20' ) end [2025-02-19 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:15:25] Production.INFO: ==32264== Releasing lock... [2025-02-19 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:15:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-19 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:16:05 [end_date_ymd] => 2025-02-19 10:16:05 [RateCDR] => 1 ) [2025-02-19 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:16:05' and `end` < '2025-02-19 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:16:18] Production.INFO: count ==3077 [2025-02-19 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:16:05 - End Time 2025-02-19 10:16:05 [2025-02-19 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509727', 'tblTempUsageDetail_20' ) start [2025-02-19 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509727', 'tblTempUsageDetail_20' ) end [2025-02-19 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509727', 'tblTempVendorCDR_20' ) start [2025-02-19 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509727', 'tblTempVendorCDR_20' ) end [2025-02-19 10:16:20] Production.INFO: ProcessCDR(1,14509727,1,1,2) [2025-02-19 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509727', 'tblTempUsageDetail_20' ) start [2025-02-19 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509727', 'tblTempUsageDetail_20' ) end [2025-02-19 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:16:25] Production.INFO: ==32337== Releasing lock... [2025-02-19 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:16:25] Production.INFO: 51 MB #Memory Used# [2025-02-19 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:17:06 [end_date_ymd] => 2025-02-19 10:17:06 [RateCDR] => 1 ) [2025-02-19 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:17:06' and `end` < '2025-02-19 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:17:18] Production.INFO: count ==3107 [2025-02-19 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:17:06 - End Time 2025-02-19 10:17:06 [2025-02-19 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509732', 'tblTempUsageDetail_20' ) start [2025-02-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509732', 'tblTempUsageDetail_20' ) end [2025-02-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509732', 'tblTempVendorCDR_20' ) start [2025-02-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509732', 'tblTempVendorCDR_20' ) end [2025-02-19 10:17:20] Production.INFO: ProcessCDR(1,14509732,1,1,2) [2025-02-19 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509732', 'tblTempUsageDetail_20' ) start [2025-02-19 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509732', 'tblTempUsageDetail_20' ) end [2025-02-19 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:17:25] Production.INFO: ==32413== Releasing lock... [2025-02-19 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:17:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-19 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:18:05 [end_date_ymd] => 2025-02-19 10:18:05 [RateCDR] => 1 ) [2025-02-19 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:18:05' and `end` < '2025-02-19 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:18:17] Production.INFO: count ==3126 [2025-02-19 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:18:05 - End Time 2025-02-19 10:18:05 [2025-02-19 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509737', 'tblTempUsageDetail_20' ) start [2025-02-19 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509737', 'tblTempUsageDetail_20' ) end [2025-02-19 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509737', 'tblTempVendorCDR_20' ) start [2025-02-19 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509737', 'tblTempVendorCDR_20' ) end [2025-02-19 10:18:19] Production.INFO: ProcessCDR(1,14509737,1,1,2) [2025-02-19 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509737', 'tblTempUsageDetail_20' ) start [2025-02-19 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509737', 'tblTempUsageDetail_20' ) end [2025-02-19 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:18:24] Production.INFO: ==32487== Releasing lock... [2025-02-19 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:18:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-19 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:19:06 [end_date_ymd] => 2025-02-19 10:19:06 [RateCDR] => 1 ) [2025-02-19 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:19:06' and `end` < '2025-02-19 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:19:18] Production.INFO: count ==3149 [2025-02-19 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:19:06 - End Time 2025-02-19 10:19:06 [2025-02-19 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509742', 'tblTempUsageDetail_20' ) start [2025-02-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509742', 'tblTempUsageDetail_20' ) end [2025-02-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509742', 'tblTempVendorCDR_20' ) start [2025-02-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509742', 'tblTempVendorCDR_20' ) end [2025-02-19 10:19:20] Production.INFO: ProcessCDR(1,14509742,1,1,2) [2025-02-19 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509742', 'tblTempUsageDetail_20' ) start [2025-02-19 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509742', 'tblTempUsageDetail_20' ) end [2025-02-19 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:19:25] Production.INFO: ==32559== Releasing lock... [2025-02-19 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:19:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-19 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:20:06 [end_date_ymd] => 2025-02-19 10:20:06 [RateCDR] => 1 ) [2025-02-19 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:20:06' and `end` < '2025-02-19 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:20:18] Production.INFO: count ==3183 [2025-02-19 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:20:06 - End Time 2025-02-19 10:20:06 [2025-02-19 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509747', 'tblTempUsageDetail_20' ) start [2025-02-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509747', 'tblTempUsageDetail_20' ) end [2025-02-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509747', 'tblTempVendorCDR_20' ) start [2025-02-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509747', 'tblTempVendorCDR_20' ) end [2025-02-19 10:20:20] Production.INFO: ProcessCDR(1,14509747,1,1,2) [2025-02-19 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509747', 'tblTempUsageDetail_20' ) start [2025-02-19 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509747', 'tblTempUsageDetail_20' ) end [2025-02-19 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:20:25] Production.INFO: ==32639== Releasing lock... [2025-02-19 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:20:25] Production.INFO: 52 MB #Memory Used# [2025-02-19 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:21:06 [end_date_ymd] => 2025-02-19 10:21:06 [RateCDR] => 1 ) [2025-02-19 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:21:06' and `end` < '2025-02-19 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:21:18] Production.INFO: count ==3259 [2025-02-19 10:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:21:06 - End Time 2025-02-19 10:21:06 [2025-02-19 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509753', 'tblTempUsageDetail_20' ) start [2025-02-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509753', 'tblTempUsageDetail_20' ) end [2025-02-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509753', 'tblTempVendorCDR_20' ) start [2025-02-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509753', 'tblTempVendorCDR_20' ) end [2025-02-19 10:21:20] Production.INFO: ProcessCDR(1,14509753,1,1,2) [2025-02-19 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509753', 'tblTempUsageDetail_20' ) start [2025-02-19 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509753', 'tblTempUsageDetail_20' ) end [2025-02-19 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:21:25] Production.INFO: ==32717== Releasing lock... [2025-02-19 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:21:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-19 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:22:05 [end_date_ymd] => 2025-02-19 10:22:05 [RateCDR] => 1 ) [2025-02-19 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:22:05' and `end` < '2025-02-19 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:22:18] Production.INFO: count ==3271 [2025-02-19 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:22:05 - End Time 2025-02-19 10:22:05 [2025-02-19 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509758', 'tblTempUsageDetail_20' ) start [2025-02-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509758', 'tblTempUsageDetail_20' ) end [2025-02-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509758', 'tblTempVendorCDR_20' ) start [2025-02-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509758', 'tblTempVendorCDR_20' ) end [2025-02-19 10:22:19] Production.INFO: ProcessCDR(1,14509758,1,1,2) [2025-02-19 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509758', 'tblTempUsageDetail_20' ) start [2025-02-19 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509758', 'tblTempUsageDetail_20' ) end [2025-02-19 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:22:24] Production.INFO: ==334== Releasing lock... [2025-02-19 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:22:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-19 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:23:05 [end_date_ymd] => 2025-02-19 10:23:05 [RateCDR] => 1 ) [2025-02-19 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:23:05' and `end` < '2025-02-19 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:23:18] Production.INFO: count ==3283 [2025-02-19 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:23:05 - End Time 2025-02-19 10:23:05 [2025-02-19 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509763', 'tblTempUsageDetail_20' ) start [2025-02-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509763', 'tblTempUsageDetail_20' ) end [2025-02-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509763', 'tblTempVendorCDR_20' ) start [2025-02-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509763', 'tblTempVendorCDR_20' ) end [2025-02-19 10:23:19] Production.INFO: ProcessCDR(1,14509763,1,1,2) [2025-02-19 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509763', 'tblTempUsageDetail_20' ) start [2025-02-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509763', 'tblTempUsageDetail_20' ) end [2025-02-19 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:23:25] Production.INFO: ==422== Releasing lock... [2025-02-19 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:23:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-19 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:24:05 [end_date_ymd] => 2025-02-19 10:24:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 07:24:05' and `end` < '2025-02-19 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-02-19 10:24:17] Production.INFO: count ==3288 [2025-02-19 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:24:05 - End Time 2025-02-19 10:24:05 [2025-02-19 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509768', 'tblTempUsageDetail_20' ) start [2025-02-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509768', 'tblTempUsageDetail_20' ) end [2025-02-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509768', 'tblTempVendorCDR_20' ) start [2025-02-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509768', 'tblTempVendorCDR_20' ) end [2025-02-19 10:24:19] Production.INFO: ProcessCDR(1,14509768,1,1,2) [2025-02-19 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509768', 'tblTempUsageDetail_20' ) start [2025-02-19 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509768', 'tblTempUsageDetail_20' ) end [2025-02-19 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:24:24] Production.INFO: ==498== Releasing lock... [2025-02-19 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:24:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-19 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:25:06 [end_date_ymd] => 2025-02-19 10:25:06 [RateCDR] => 1 ) [2025-02-19 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:25:06' and `end` < '2025-02-19 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:25:18] Production.INFO: count ==3310 [2025-02-19 10:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:25:06 - End Time 2025-02-19 10:25:06 [2025-02-19 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509773', 'tblTempUsageDetail_20' ) start [2025-02-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509773', 'tblTempUsageDetail_20' ) end [2025-02-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509773', 'tblTempVendorCDR_20' ) start [2025-02-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509773', 'tblTempVendorCDR_20' ) end [2025-02-19 10:25:20] Production.INFO: ProcessCDR(1,14509773,1,1,2) [2025-02-19 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509773', 'tblTempUsageDetail_20' ) start [2025-02-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509773', 'tblTempUsageDetail_20' ) end [2025-02-19 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:25:25] Production.INFO: ==580== Releasing lock... [2025-02-19 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:25:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-19 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:26:06 [end_date_ymd] => 2025-02-19 10:26:06 [RateCDR] => 1 ) [2025-02-19 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:26:06' and `end` < '2025-02-19 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:26:19] Production.INFO: count ==3319 [2025-02-19 10:26:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:26:06 - End Time 2025-02-19 10:26:06 [2025-02-19 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509778', 'tblTempUsageDetail_20' ) start [2025-02-19 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509778', 'tblTempUsageDetail_20' ) end [2025-02-19 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509778', 'tblTempVendorCDR_20' ) start [2025-02-19 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509778', 'tblTempVendorCDR_20' ) end [2025-02-19 10:26:20] Production.INFO: ProcessCDR(1,14509778,1,1,2) [2025-02-19 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509778', 'tblTempUsageDetail_20' ) start [2025-02-19 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509778', 'tblTempUsageDetail_20' ) end [2025-02-19 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:26:25] Production.INFO: ==676== Releasing lock... [2025-02-19 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:26:25] Production.INFO: 53 MB #Memory Used# [2025-02-19 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:27:05 [end_date_ymd] => 2025-02-19 10:27:05 [RateCDR] => 1 ) [2025-02-19 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:27:05' and `end` < '2025-02-19 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:27:18] Production.INFO: count ==3330 [2025-02-19 10:27:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:27:05 - End Time 2025-02-19 10:27:05 [2025-02-19 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509783', 'tblTempUsageDetail_20' ) start [2025-02-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509783', 'tblTempUsageDetail_20' ) end [2025-02-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509783', 'tblTempVendorCDR_20' ) start [2025-02-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509783', 'tblTempVendorCDR_20' ) end [2025-02-19 10:27:19] Production.INFO: ProcessCDR(1,14509783,1,1,2) [2025-02-19 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509783', 'tblTempUsageDetail_20' ) start [2025-02-19 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509783', 'tblTempUsageDetail_20' ) end [2025-02-19 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:27:25] Production.INFO: ==768== Releasing lock... [2025-02-19 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:27:25] Production.INFO: 53 MB #Memory Used# [2025-02-19 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:28:05 [end_date_ymd] => 2025-02-19 10:28:05 [RateCDR] => 1 ) [2025-02-19 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:28:05' and `end` < '2025-02-19 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:28:17] Production.INFO: count ==3348 [2025-02-19 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:28:05 - End Time 2025-02-19 10:28:05 [2025-02-19 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509788', 'tblTempUsageDetail_20' ) start [2025-02-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509788', 'tblTempUsageDetail_20' ) end [2025-02-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509788', 'tblTempVendorCDR_20' ) start [2025-02-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509788', 'tblTempVendorCDR_20' ) end [2025-02-19 10:28:19] Production.INFO: ProcessCDR(1,14509788,1,1,2) [2025-02-19 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509788', 'tblTempUsageDetail_20' ) start [2025-02-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509788', 'tblTempUsageDetail_20' ) end [2025-02-19 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:28:24] Production.INFO: ==882== Releasing lock... [2025-02-19 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:28:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-19 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:29:06 [end_date_ymd] => 2025-02-19 10:29:06 [RateCDR] => 1 ) [2025-02-19 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:29:06' and `end` < '2025-02-19 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:29:18] Production.INFO: count ==3357 [2025-02-19 10:29:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:29:06 - End Time 2025-02-19 10:29:06 [2025-02-19 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509793', 'tblTempUsageDetail_20' ) start [2025-02-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509793', 'tblTempUsageDetail_20' ) end [2025-02-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509793', 'tblTempVendorCDR_20' ) start [2025-02-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509793', 'tblTempVendorCDR_20' ) end [2025-02-19 10:29:20] Production.INFO: ProcessCDR(1,14509793,1,1,2) [2025-02-19 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509793', 'tblTempUsageDetail_20' ) start [2025-02-19 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509793', 'tblTempUsageDetail_20' ) end [2025-02-19 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:29:25] Production.INFO: ==963== Releasing lock... [2025-02-19 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:29:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-19 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:30:06 [end_date_ymd] => 2025-02-19 10:30:06 [RateCDR] => 1 ) [2025-02-19 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:30:06' and `end` < '2025-02-19 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:30:18] Production.INFO: count ==3371 [2025-02-19 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:30:06 - End Time 2025-02-19 10:30:06 [2025-02-19 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509798', 'tblTempUsageDetail_20' ) start [2025-02-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509798', 'tblTempUsageDetail_20' ) end [2025-02-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509798', 'tblTempVendorCDR_20' ) start [2025-02-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509798', 'tblTempVendorCDR_20' ) end [2025-02-19 10:30:20] Production.INFO: ProcessCDR(1,14509798,1,1,2) [2025-02-19 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509798', 'tblTempUsageDetail_20' ) start [2025-02-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509798', 'tblTempUsageDetail_20' ) end [2025-02-19 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:30:25] Production.INFO: ==1038== Releasing lock... [2025-02-19 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:30:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-19 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:31:06 [end_date_ymd] => 2025-02-19 10:31:06 [RateCDR] => 1 ) [2025-02-19 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:31:06' and `end` < '2025-02-19 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:31:18] Production.INFO: count ==3501 [2025-02-19 10:31:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:31:06 - End Time 2025-02-19 10:31:06 [2025-02-19 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509804', 'tblTempUsageDetail_20' ) start [2025-02-19 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509804', 'tblTempUsageDetail_20' ) end [2025-02-19 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509804', 'tblTempVendorCDR_20' ) start [2025-02-19 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509804', 'tblTempVendorCDR_20' ) end [2025-02-19 10:31:20] Production.INFO: ProcessCDR(1,14509804,1,1,2) [2025-02-19 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509804', 'tblTempUsageDetail_20' ) start [2025-02-19 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509804', 'tblTempUsageDetail_20' ) end [2025-02-19 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:31:25] Production.INFO: ==1116== Releasing lock... [2025-02-19 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:31:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-19 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:32:05 [end_date_ymd] => 2025-02-19 10:32:05 [RateCDR] => 1 ) [2025-02-19 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:32:05' and `end` < '2025-02-19 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:32:17] Production.INFO: count ==3509 [2025-02-19 10:32:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:32:05 - End Time 2025-02-19 10:32:05 [2025-02-19 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509809', 'tblTempUsageDetail_20' ) start [2025-02-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509809', 'tblTempUsageDetail_20' ) end [2025-02-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509809', 'tblTempVendorCDR_20' ) start [2025-02-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509809', 'tblTempVendorCDR_20' ) end [2025-02-19 10:32:19] Production.INFO: ProcessCDR(1,14509809,1,1,2) [2025-02-19 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509809', 'tblTempUsageDetail_20' ) start [2025-02-19 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509809', 'tblTempUsageDetail_20' ) end [2025-02-19 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:32:25] Production.INFO: ==1196== Releasing lock... [2025-02-19 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:32:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-19 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:33:05 [end_date_ymd] => 2025-02-19 10:33:05 [RateCDR] => 1 ) [2025-02-19 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:33:05' and `end` < '2025-02-19 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:33:18] Production.INFO: count ==3518 [2025-02-19 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:33:05 - End Time 2025-02-19 10:33:05 [2025-02-19 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509814', 'tblTempUsageDetail_20' ) start [2025-02-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509814', 'tblTempUsageDetail_20' ) end [2025-02-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509814', 'tblTempVendorCDR_20' ) start [2025-02-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509814', 'tblTempVendorCDR_20' ) end [2025-02-19 10:33:20] Production.INFO: ProcessCDR(1,14509814,1,1,2) [2025-02-19 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509814', 'tblTempUsageDetail_20' ) start [2025-02-19 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509814', 'tblTempUsageDetail_20' ) end [2025-02-19 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:33:25] Production.INFO: ==1283== Releasing lock... [2025-02-19 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:33:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-19 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:34:05 [end_date_ymd] => 2025-02-19 10:34:05 [RateCDR] => 1 ) [2025-02-19 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:34:05' and `end` < '2025-02-19 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:34:17] Production.INFO: count ==3536 [2025-02-19 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:34:05 - End Time 2025-02-19 10:34:05 [2025-02-19 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509819', 'tblTempUsageDetail_20' ) start [2025-02-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509819', 'tblTempUsageDetail_20' ) end [2025-02-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509819', 'tblTempVendorCDR_20' ) start [2025-02-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509819', 'tblTempVendorCDR_20' ) end [2025-02-19 10:34:19] Production.INFO: ProcessCDR(1,14509819,1,1,2) [2025-02-19 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509819', 'tblTempUsageDetail_20' ) start [2025-02-19 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509819', 'tblTempUsageDetail_20' ) end [2025-02-19 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:34:25] Production.INFO: ==1359== Releasing lock... [2025-02-19 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:34:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-19 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:35:05 [end_date_ymd] => 2025-02-19 10:35:05 [RateCDR] => 1 ) [2025-02-19 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:35:05' and `end` < '2025-02-19 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:35:18] Production.INFO: count ==3551 [2025-02-19 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:35:05 - End Time 2025-02-19 10:35:05 [2025-02-19 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509824', 'tblTempUsageDetail_20' ) start [2025-02-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509824', 'tblTempUsageDetail_20' ) end [2025-02-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509824', 'tblTempVendorCDR_20' ) start [2025-02-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509824', 'tblTempVendorCDR_20' ) end [2025-02-19 10:35:19] Production.INFO: ProcessCDR(1,14509824,1,1,2) [2025-02-19 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509824', 'tblTempUsageDetail_20' ) start [2025-02-19 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509824', 'tblTempUsageDetail_20' ) end [2025-02-19 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:35:25] Production.INFO: ==1434== Releasing lock... [2025-02-19 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:35:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-19 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:36:05 [end_date_ymd] => 2025-02-19 10:36:05 [RateCDR] => 1 ) [2025-02-19 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:36:05' and `end` < '2025-02-19 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:36:17] Production.INFO: count ==3583 [2025-02-19 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:36:05 - End Time 2025-02-19 10:36:05 [2025-02-19 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509829', 'tblTempUsageDetail_20' ) start [2025-02-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509829', 'tblTempUsageDetail_20' ) end [2025-02-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509829', 'tblTempVendorCDR_20' ) start [2025-02-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509829', 'tblTempVendorCDR_20' ) end [2025-02-19 10:36:19] Production.INFO: ProcessCDR(1,14509829,1,1,2) [2025-02-19 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509829', 'tblTempUsageDetail_20' ) start [2025-02-19 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509829', 'tblTempUsageDetail_20' ) end [2025-02-19 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:36:25] Production.INFO: ==1542== Releasing lock... [2025-02-19 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:36:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-19 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:37:06 [end_date_ymd] => 2025-02-19 10:37:06 [RateCDR] => 1 ) [2025-02-19 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:37:06' and `end` < '2025-02-19 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:37:18] Production.INFO: count ==3608 [2025-02-19 10:37:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:37:06 - End Time 2025-02-19 10:37:06 [2025-02-19 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509834', 'tblTempUsageDetail_20' ) start [2025-02-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509834', 'tblTempUsageDetail_20' ) end [2025-02-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509834', 'tblTempVendorCDR_20' ) start [2025-02-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509834', 'tblTempVendorCDR_20' ) end [2025-02-19 10:37:20] Production.INFO: ProcessCDR(1,14509834,1,1,2) [2025-02-19 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509834', 'tblTempUsageDetail_20' ) start [2025-02-19 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509834', 'tblTempUsageDetail_20' ) end [2025-02-19 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:37:25] Production.INFO: ==1625== Releasing lock... [2025-02-19 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:37:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-19 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:38:05 [end_date_ymd] => 2025-02-19 10:38:05 [RateCDR] => 1 ) [2025-02-19 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:38:05' and `end` < '2025-02-19 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:38:18] Production.INFO: count ==3651 [2025-02-19 10:38:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:38:05 - End Time 2025-02-19 10:38:05 [2025-02-19 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509839', 'tblTempUsageDetail_20' ) start [2025-02-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509839', 'tblTempUsageDetail_20' ) end [2025-02-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509839', 'tblTempVendorCDR_20' ) start [2025-02-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509839', 'tblTempVendorCDR_20' ) end [2025-02-19 10:38:19] Production.INFO: ProcessCDR(1,14509839,1,1,2) [2025-02-19 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509839', 'tblTempUsageDetail_20' ) start [2025-02-19 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509839', 'tblTempUsageDetail_20' ) end [2025-02-19 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:38:25] Production.INFO: ==1702== Releasing lock... [2025-02-19 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:38:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-19 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:39:05 [end_date_ymd] => 2025-02-19 10:39:05 [RateCDR] => 1 ) [2025-02-19 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:39:05' and `end` < '2025-02-19 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:39:18] Production.INFO: count ==3664 [2025-02-19 10:39:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:39:05 - End Time 2025-02-19 10:39:05 [2025-02-19 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509844', 'tblTempUsageDetail_20' ) start [2025-02-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509844', 'tblTempUsageDetail_20' ) end [2025-02-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509844', 'tblTempVendorCDR_20' ) start [2025-02-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509844', 'tblTempVendorCDR_20' ) end [2025-02-19 10:39:20] Production.INFO: ProcessCDR(1,14509844,1,1,2) [2025-02-19 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509844', 'tblTempUsageDetail_20' ) start [2025-02-19 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509844', 'tblTempUsageDetail_20' ) end [2025-02-19 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:39:25] Production.INFO: ==1778== Releasing lock... [2025-02-19 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:39:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-19 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:40:06 [end_date_ymd] => 2025-02-19 10:40:06 [RateCDR] => 1 ) [2025-02-19 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:40:06' and `end` < '2025-02-19 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:40:19] Production.INFO: count ==3696 [2025-02-19 10:40:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:40:06 - End Time 2025-02-19 10:40:06 [2025-02-19 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509850', 'tblTempUsageDetail_20' ) start [2025-02-19 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509850', 'tblTempUsageDetail_20' ) end [2025-02-19 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509850', 'tblTempVendorCDR_20' ) start [2025-02-19 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509850', 'tblTempVendorCDR_20' ) end [2025-02-19 10:40:21] Production.INFO: ProcessCDR(1,14509850,1,1,2) [2025-02-19 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509850', 'tblTempUsageDetail_20' ) start [2025-02-19 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509850', 'tblTempUsageDetail_20' ) end [2025-02-19 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:40:26] Production.INFO: ==1856== Releasing lock... [2025-02-19 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:40:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-19 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:41:05 [end_date_ymd] => 2025-02-19 10:41:05 [RateCDR] => 1 ) [2025-02-19 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:41:05' and `end` < '2025-02-19 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:41:18] Production.INFO: count ==3793 [2025-02-19 10:41:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:41:05 - End Time 2025-02-19 10:41:05 [2025-02-19 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509855', 'tblTempUsageDetail_20' ) start [2025-02-19 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509855', 'tblTempUsageDetail_20' ) end [2025-02-19 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509855', 'tblTempVendorCDR_20' ) start [2025-02-19 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509855', 'tblTempVendorCDR_20' ) end [2025-02-19 10:41:20] Production.INFO: ProcessCDR(1,14509855,1,1,2) [2025-02-19 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509855', 'tblTempUsageDetail_20' ) start [2025-02-19 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509855', 'tblTempUsageDetail_20' ) end [2025-02-19 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:41:25] Production.INFO: ==1939== Releasing lock... [2025-02-19 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:41:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:42:06 [end_date_ymd] => 2025-02-19 10:42:06 [RateCDR] => 1 ) [2025-02-19 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:42:06' and `end` < '2025-02-19 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:42:19] Production.INFO: count ==3802 [2025-02-19 10:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:42:06 - End Time 2025-02-19 10:42:06 [2025-02-19 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509860', 'tblTempUsageDetail_20' ) start [2025-02-19 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509860', 'tblTempUsageDetail_20' ) end [2025-02-19 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509860', 'tblTempVendorCDR_20' ) start [2025-02-19 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509860', 'tblTempVendorCDR_20' ) end [2025-02-19 10:42:20] Production.INFO: ProcessCDR(1,14509860,1,1,2) [2025-02-19 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509860', 'tblTempUsageDetail_20' ) start [2025-02-19 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509860', 'tblTempUsageDetail_20' ) end [2025-02-19 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:42:26] Production.INFO: ==2015== Releasing lock... [2025-02-19 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:42:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:43:05 [end_date_ymd] => 2025-02-19 10:43:05 [RateCDR] => 1 ) [2025-02-19 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:43:05' and `end` < '2025-02-19 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:43:18] Production.INFO: count ==3810 [2025-02-19 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:43:05 - End Time 2025-02-19 10:43:05 [2025-02-19 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509865', 'tblTempUsageDetail_20' ) start [2025-02-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509865', 'tblTempUsageDetail_20' ) end [2025-02-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509865', 'tblTempVendorCDR_20' ) start [2025-02-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509865', 'tblTempVendorCDR_20' ) end [2025-02-19 10:43:20] Production.INFO: ProcessCDR(1,14509865,1,1,2) [2025-02-19 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509865', 'tblTempUsageDetail_20' ) start [2025-02-19 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509865', 'tblTempUsageDetail_20' ) end [2025-02-19 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:43:25] Production.INFO: ==2088== Releasing lock... [2025-02-19 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:43:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:44:06 [end_date_ymd] => 2025-02-19 10:44:06 [RateCDR] => 1 ) [2025-02-19 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:44:06' and `end` < '2025-02-19 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:44:18] Production.INFO: count ==3817 [2025-02-19 10:44:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:44:06 - End Time 2025-02-19 10:44:06 [2025-02-19 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509870', 'tblTempUsageDetail_20' ) start [2025-02-19 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509870', 'tblTempUsageDetail_20' ) end [2025-02-19 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509870', 'tblTempVendorCDR_20' ) start [2025-02-19 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509870', 'tblTempVendorCDR_20' ) end [2025-02-19 10:44:20] Production.INFO: ProcessCDR(1,14509870,1,1,2) [2025-02-19 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509870', 'tblTempUsageDetail_20' ) start [2025-02-19 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509870', 'tblTempUsageDetail_20' ) end [2025-02-19 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:44:26] Production.INFO: ==2202== Releasing lock... [2025-02-19 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:44:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:45:06 [end_date_ymd] => 2025-02-19 10:45:06 [RateCDR] => 1 ) [2025-02-19 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:45:06' and `end` < '2025-02-19 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:45:18] Production.INFO: count ==3841 [2025-02-19 10:45:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:45:06 - End Time 2025-02-19 10:45:06 [2025-02-19 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509875', 'tblTempUsageDetail_20' ) start [2025-02-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509875', 'tblTempUsageDetail_20' ) end [2025-02-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509875', 'tblTempVendorCDR_20' ) start [2025-02-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509875', 'tblTempVendorCDR_20' ) end [2025-02-19 10:45:20] Production.INFO: ProcessCDR(1,14509875,1,1,2) [2025-02-19 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509875', 'tblTempUsageDetail_20' ) start [2025-02-19 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509875', 'tblTempUsageDetail_20' ) end [2025-02-19 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:45:25] Production.INFO: ==2281== Releasing lock... [2025-02-19 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:45:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:46:06 [end_date_ymd] => 2025-02-19 10:46:06 [RateCDR] => 1 ) [2025-02-19 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:46:06' and `end` < '2025-02-19 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:46:18] Production.INFO: count ==3876 [2025-02-19 10:46:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:46:06 - End Time 2025-02-19 10:46:06 [2025-02-19 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509880', 'tblTempUsageDetail_20' ) start [2025-02-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509880', 'tblTempUsageDetail_20' ) end [2025-02-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509880', 'tblTempVendorCDR_20' ) start [2025-02-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509880', 'tblTempVendorCDR_20' ) end [2025-02-19 10:46:20] Production.INFO: ProcessCDR(1,14509880,1,1,2) [2025-02-19 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509880', 'tblTempUsageDetail_20' ) start [2025-02-19 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509880', 'tblTempUsageDetail_20' ) end [2025-02-19 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:46:25] Production.INFO: ==2357== Releasing lock... [2025-02-19 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:46:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:47:05 [end_date_ymd] => 2025-02-19 10:47:05 [RateCDR] => 1 ) [2025-02-19 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:47:05' and `end` < '2025-02-19 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:47:18] Production.INFO: count ==3913 [2025-02-19 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:47:05 - End Time 2025-02-19 10:47:05 [2025-02-19 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509885', 'tblTempUsageDetail_20' ) start [2025-02-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509885', 'tblTempUsageDetail_20' ) end [2025-02-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509885', 'tblTempVendorCDR_20' ) start [2025-02-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509885', 'tblTempVendorCDR_20' ) end [2025-02-19 10:47:20] Production.INFO: ProcessCDR(1,14509885,1,1,2) [2025-02-19 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509885', 'tblTempUsageDetail_20' ) start [2025-02-19 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509885', 'tblTempUsageDetail_20' ) end [2025-02-19 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:47:26] Production.INFO: ==2430== Releasing lock... [2025-02-19 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:47:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:48:06 [end_date_ymd] => 2025-02-19 10:48:06 [RateCDR] => 1 ) [2025-02-19 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:48:06' and `end` < '2025-02-19 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:48:19] Production.INFO: count ==3920 [2025-02-19 10:48:21] Production.ERROR: pbx CDR StartTime 2025-02-19 07:48:06 - End Time 2025-02-19 10:48:06 [2025-02-19 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509890', 'tblTempUsageDetail_20' ) start [2025-02-19 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509890', 'tblTempUsageDetail_20' ) end [2025-02-19 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509890', 'tblTempVendorCDR_20' ) start [2025-02-19 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509890', 'tblTempVendorCDR_20' ) end [2025-02-19 10:48:21] Production.INFO: ProcessCDR(1,14509890,1,1,2) [2025-02-19 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509890', 'tblTempUsageDetail_20' ) start [2025-02-19 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509890', 'tblTempUsageDetail_20' ) end [2025-02-19 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:48:26] Production.INFO: ==2506== Releasing lock... [2025-02-19 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:48:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:49:05 [end_date_ymd] => 2025-02-19 10:49:05 [RateCDR] => 1 ) [2025-02-19 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:49:05' and `end` < '2025-02-19 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:49:18] Production.INFO: count ==3938 [2025-02-19 10:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:49:05 - End Time 2025-02-19 10:49:05 [2025-02-19 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509895', 'tblTempUsageDetail_20' ) start [2025-02-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509895', 'tblTempUsageDetail_20' ) end [2025-02-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509895', 'tblTempVendorCDR_20' ) start [2025-02-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509895', 'tblTempVendorCDR_20' ) end [2025-02-19 10:49:20] Production.INFO: ProcessCDR(1,14509895,1,1,2) [2025-02-19 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509895', 'tblTempUsageDetail_20' ) start [2025-02-19 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509895', 'tblTempUsageDetail_20' ) end [2025-02-19 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:49:26] Production.INFO: ==2586== Releasing lock... [2025-02-19 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:49:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:50:06 [end_date_ymd] => 2025-02-19 10:50:06 [RateCDR] => 1 ) [2025-02-19 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:50:06' and `end` < '2025-02-19 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:50:19] Production.INFO: count ==3956 [2025-02-19 10:50:21] Production.ERROR: pbx CDR StartTime 2025-02-19 07:50:06 - End Time 2025-02-19 10:50:06 [2025-02-19 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509901', 'tblTempUsageDetail_20' ) start [2025-02-19 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509901', 'tblTempUsageDetail_20' ) end [2025-02-19 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509901', 'tblTempVendorCDR_20' ) start [2025-02-19 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509901', 'tblTempVendorCDR_20' ) end [2025-02-19 10:50:21] Production.INFO: ProcessCDR(1,14509901,1,1,2) [2025-02-19 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509901', 'tblTempUsageDetail_20' ) start [2025-02-19 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509901', 'tblTempUsageDetail_20' ) end [2025-02-19 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:50:26] Production.INFO: ==2661== Releasing lock... [2025-02-19 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:50:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:51:05 [end_date_ymd] => 2025-02-19 10:51:05 [RateCDR] => 1 ) [2025-02-19 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:51:05' and `end` < '2025-02-19 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:51:18] Production.INFO: count ==4163 [2025-02-19 10:51:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:51:05 - End Time 2025-02-19 10:51:05 [2025-02-19 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509906', 'tblTempUsageDetail_20' ) start [2025-02-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509906', 'tblTempUsageDetail_20' ) end [2025-02-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509906', 'tblTempVendorCDR_20' ) start [2025-02-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509906', 'tblTempVendorCDR_20' ) end [2025-02-19 10:51:19] Production.INFO: ProcessCDR(1,14509906,1,1,2) [2025-02-19 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509906', 'tblTempUsageDetail_20' ) start [2025-02-19 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509906', 'tblTempUsageDetail_20' ) end [2025-02-19 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:51:25] Production.INFO: ==2736== Releasing lock... [2025-02-19 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:51:25] Production.INFO: 59 MB #Memory Used# [2025-02-19 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:52:05 [end_date_ymd] => 2025-02-19 10:52:05 [RateCDR] => 1 ) [2025-02-19 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:52:05' and `end` < '2025-02-19 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:52:17] Production.INFO: count ==4235 [2025-02-19 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:52:05 - End Time 2025-02-19 10:52:05 [2025-02-19 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509911', 'tblTempUsageDetail_20' ) start [2025-02-19 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509911', 'tblTempUsageDetail_20' ) end [2025-02-19 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509911', 'tblTempVendorCDR_20' ) start [2025-02-19 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509911', 'tblTempVendorCDR_20' ) end [2025-02-19 10:52:19] Production.INFO: ProcessCDR(1,14509911,1,1,2) [2025-02-19 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509911', 'tblTempUsageDetail_20' ) start [2025-02-19 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509911', 'tblTempUsageDetail_20' ) end [2025-02-19 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:52:25] Production.INFO: ==2810== Releasing lock... [2025-02-19 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:52:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:53:05 [end_date_ymd] => 2025-02-19 10:53:05 [RateCDR] => 1 ) [2025-02-19 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:53:05' and `end` < '2025-02-19 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:53:17] Production.INFO: count ==4260 [2025-02-19 10:53:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:53:05 - End Time 2025-02-19 10:53:05 [2025-02-19 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509916', 'tblTempUsageDetail_20' ) start [2025-02-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509916', 'tblTempUsageDetail_20' ) end [2025-02-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509916', 'tblTempVendorCDR_20' ) start [2025-02-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509916', 'tblTempVendorCDR_20' ) end [2025-02-19 10:53:20] Production.INFO: ProcessCDR(1,14509916,1,1,2) [2025-02-19 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509916', 'tblTempUsageDetail_20' ) start [2025-02-19 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509916', 'tblTempUsageDetail_20' ) end [2025-02-19 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:53:25] Production.INFO: ==2891== Releasing lock... [2025-02-19 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:53:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:54:06 [end_date_ymd] => 2025-02-19 10:54:06 [RateCDR] => 1 ) [2025-02-19 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:54:06' and `end` < '2025-02-19 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:54:18] Production.INFO: count ==4285 [2025-02-19 10:54:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:54:06 - End Time 2025-02-19 10:54:06 [2025-02-19 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509921', 'tblTempUsageDetail_20' ) start [2025-02-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509921', 'tblTempUsageDetail_20' ) end [2025-02-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509921', 'tblTempVendorCDR_20' ) start [2025-02-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509921', 'tblTempVendorCDR_20' ) end [2025-02-19 10:54:20] Production.INFO: ProcessCDR(1,14509921,1,1,2) [2025-02-19 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509921', 'tblTempUsageDetail_20' ) start [2025-02-19 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509921', 'tblTempUsageDetail_20' ) end [2025-02-19 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:54:26] Production.INFO: ==2963== Releasing lock... [2025-02-19 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:54:26] Production.INFO: 60 MB #Memory Used# [2025-02-19 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:55:05 [end_date_ymd] => 2025-02-19 10:55:05 [RateCDR] => 1 ) [2025-02-19 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:55:05' and `end` < '2025-02-19 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:55:18] Production.INFO: count ==4309 [2025-02-19 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-19 07:55:05 - End Time 2025-02-19 10:55:05 [2025-02-19 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509926', 'tblTempUsageDetail_20' ) start [2025-02-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509926', 'tblTempUsageDetail_20' ) end [2025-02-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509926', 'tblTempVendorCDR_20' ) start [2025-02-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509926', 'tblTempVendorCDR_20' ) end [2025-02-19 10:55:20] Production.INFO: ProcessCDR(1,14509926,1,1,2) [2025-02-19 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509926', 'tblTempUsageDetail_20' ) start [2025-02-19 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509926', 'tblTempUsageDetail_20' ) end [2025-02-19 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:55:25] Production.INFO: ==3040== Releasing lock... [2025-02-19 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:55:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:56:06 [end_date_ymd] => 2025-02-19 10:56:06 [RateCDR] => 1 ) [2025-02-19 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:56:06' and `end` < '2025-02-19 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:56:22] Production.INFO: count ==4340 [2025-02-19 10:56:24] Production.ERROR: pbx CDR StartTime 2025-02-19 07:56:06 - End Time 2025-02-19 10:56:06 [2025-02-19 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509931', 'tblTempUsageDetail_20' ) start [2025-02-19 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509931', 'tblTempUsageDetail_20' ) end [2025-02-19 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509931', 'tblTempVendorCDR_20' ) start [2025-02-19 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509931', 'tblTempVendorCDR_20' ) end [2025-02-19 10:56:24] Production.INFO: ProcessCDR(1,14509931,1,1,2) [2025-02-19 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509931', 'tblTempUsageDetail_20' ) start [2025-02-19 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509931', 'tblTempUsageDetail_20' ) end [2025-02-19 10:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:56:29] Production.INFO: ==3113== Releasing lock... [2025-02-19 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:56:29] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:57:05 [end_date_ymd] => 2025-02-19 10:57:05 [RateCDR] => 1 ) [2025-02-19 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:57:05' and `end` < '2025-02-19 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:57:17] Production.INFO: count ==4343 [2025-02-19 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:57:05 - End Time 2025-02-19 10:57:05 [2025-02-19 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509936', 'tblTempUsageDetail_20' ) start [2025-02-19 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509936', 'tblTempUsageDetail_20' ) end [2025-02-19 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509936', 'tblTempVendorCDR_20' ) start [2025-02-19 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509936', 'tblTempVendorCDR_20' ) end [2025-02-19 10:57:20] Production.INFO: ProcessCDR(1,14509936,1,1,2) [2025-02-19 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509936', 'tblTempUsageDetail_20' ) start [2025-02-19 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509936', 'tblTempUsageDetail_20' ) end [2025-02-19 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:57:25] Production.INFO: ==3185== Releasing lock... [2025-02-19 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:57:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:58:06 [end_date_ymd] => 2025-02-19 10:58:06 [RateCDR] => 1 ) [2025-02-19 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:58:06' and `end` < '2025-02-19 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:58:19] Production.INFO: count ==4360 [2025-02-19 10:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 07:58:06 - End Time 2025-02-19 10:58:06 [2025-02-19 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509941', 'tblTempUsageDetail_20' ) start [2025-02-19 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509941', 'tblTempUsageDetail_20' ) end [2025-02-19 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509941', 'tblTempVendorCDR_20' ) start [2025-02-19 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509941', 'tblTempVendorCDR_20' ) end [2025-02-19 10:58:21] Production.INFO: ProcessCDR(1,14509941,1,1,2) [2025-02-19 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509941', 'tblTempUsageDetail_20' ) start [2025-02-19 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509941', 'tblTempUsageDetail_20' ) end [2025-02-19 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:58:26] Production.INFO: ==3256== Releasing lock... [2025-02-19 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:58:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 07:59:05 [end_date_ymd] => 2025-02-19 10:59:05 [RateCDR] => 1 ) [2025-02-19 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 07:59:05' and `end` < '2025-02-19 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 10:59:17] Production.INFO: count ==4368 [2025-02-19 10:59:19] Production.ERROR: pbx CDR StartTime 2025-02-19 07:59:05 - End Time 2025-02-19 10:59:05 [2025-02-19 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509946', 'tblTempUsageDetail_20' ) start [2025-02-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509946', 'tblTempUsageDetail_20' ) end [2025-02-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509946', 'tblTempVendorCDR_20' ) start [2025-02-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509946', 'tblTempVendorCDR_20' ) end [2025-02-19 10:59:20] Production.INFO: ProcessCDR(1,14509946,1,1,2) [2025-02-19 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509946', 'tblTempUsageDetail_20' ) start [2025-02-19 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509946', 'tblTempUsageDetail_20' ) end [2025-02-19 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 10:59:25] Production.INFO: ==3366== Releasing lock... [2025-02-19 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 10:59:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:00:06 [end_date_ymd] => 2025-02-19 11:00:06 [RateCDR] => 1 ) [2025-02-19 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:00:06' and `end` < '2025-02-19 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:00:19] Production.INFO: count ==4368 [2025-02-19 11:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:00:06 - End Time 2025-02-19 11:00:06 [2025-02-19 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509951', 'tblTempUsageDetail_20' ) start [2025-02-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509951', 'tblTempUsageDetail_20' ) end [2025-02-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509951', 'tblTempVendorCDR_20' ) start [2025-02-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509951', 'tblTempVendorCDR_20' ) end [2025-02-19 11:00:21] Production.INFO: ProcessCDR(1,14509951,1,1,2) [2025-02-19 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509951', 'tblTempUsageDetail_20' ) start [2025-02-19 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509951', 'tblTempUsageDetail_20' ) end [2025-02-19 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:00:26] Production.INFO: ==3444== Releasing lock... [2025-02-19 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:00:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:01:05 [end_date_ymd] => 2025-02-19 11:01:05 [RateCDR] => 1 ) [2025-02-19 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:01:05' and `end` < '2025-02-19 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:01:17] Production.INFO: count ==4438 [2025-02-19 11:01:19] Production.ERROR: pbx CDR StartTime 2025-02-19 08:01:05 - End Time 2025-02-19 11:01:05 [2025-02-19 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509957', 'tblTempUsageDetail_20' ) start [2025-02-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509957', 'tblTempUsageDetail_20' ) end [2025-02-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509957', 'tblTempVendorCDR_20' ) start [2025-02-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509957', 'tblTempVendorCDR_20' ) end [2025-02-19 11:01:19] Production.INFO: ProcessCDR(1,14509957,1,1,2) [2025-02-19 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509957', 'tblTempUsageDetail_20' ) start [2025-02-19 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509957', 'tblTempUsageDetail_20' ) end [2025-02-19 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:01:25] Production.INFO: ==3610== Releasing lock... [2025-02-19 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:01:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:02:06 [end_date_ymd] => 2025-02-19 11:02:06 [RateCDR] => 1 ) [2025-02-19 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:02:06' and `end` < '2025-02-19 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:02:20] Production.INFO: count ==4458 [2025-02-19 11:02:22] Production.ERROR: pbx CDR StartTime 2025-02-19 08:02:06 - End Time 2025-02-19 11:02:06 [2025-02-19 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509962', 'tblTempUsageDetail_20' ) start [2025-02-19 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509962', 'tblTempUsageDetail_20' ) end [2025-02-19 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509962', 'tblTempVendorCDR_20' ) start [2025-02-19 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509962', 'tblTempVendorCDR_20' ) end [2025-02-19 11:02:22] Production.INFO: ProcessCDR(1,14509962,1,1,2) [2025-02-19 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509962', 'tblTempUsageDetail_20' ) start [2025-02-19 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509962', 'tblTempUsageDetail_20' ) end [2025-02-19 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:02:26] Production.INFO: ==3682== Releasing lock... [2025-02-19 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:02:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:03:05 [end_date_ymd] => 2025-02-19 11:03:05 [RateCDR] => 1 ) [2025-02-19 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:03:05' and `end` < '2025-02-19 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:03:17] Production.INFO: count ==4466 [2025-02-19 11:03:19] Production.ERROR: pbx CDR StartTime 2025-02-19 08:03:05 - End Time 2025-02-19 11:03:05 [2025-02-19 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509967', 'tblTempUsageDetail_20' ) start [2025-02-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509967', 'tblTempUsageDetail_20' ) end [2025-02-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509967', 'tblTempVendorCDR_20' ) start [2025-02-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509967', 'tblTempVendorCDR_20' ) end [2025-02-19 11:03:20] Production.INFO: ProcessCDR(1,14509967,1,1,2) [2025-02-19 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509967', 'tblTempUsageDetail_20' ) start [2025-02-19 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509967', 'tblTempUsageDetail_20' ) end [2025-02-19 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:03:24] Production.INFO: ==3758== Releasing lock... [2025-02-19 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:03:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:04:05 [end_date_ymd] => 2025-02-19 11:04:05 [RateCDR] => 1 ) [2025-02-19 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:04:05' and `end` < '2025-02-19 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:04:19] Production.INFO: count ==4513 [2025-02-19 11:04:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:04:05 - End Time 2025-02-19 11:04:05 [2025-02-19 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509972', 'tblTempUsageDetail_20' ) start [2025-02-19 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509972', 'tblTempUsageDetail_20' ) end [2025-02-19 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509972', 'tblTempVendorCDR_20' ) start [2025-02-19 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509972', 'tblTempVendorCDR_20' ) end [2025-02-19 11:04:21] Production.INFO: ProcessCDR(1,14509972,1,1,2) [2025-02-19 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509972', 'tblTempUsageDetail_20' ) start [2025-02-19 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509972', 'tblTempUsageDetail_20' ) end [2025-02-19 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:04:27] Production.INFO: ==3830== Releasing lock... [2025-02-19 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:04:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:05:05 [end_date_ymd] => 2025-02-19 11:05:05 [RateCDR] => 1 ) [2025-02-19 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:05:05' and `end` < '2025-02-19 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:05:18] Production.INFO: count ==4536 [2025-02-19 11:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:05:05 - End Time 2025-02-19 11:05:05 [2025-02-19 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509977', 'tblTempUsageDetail_20' ) start [2025-02-19 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509977', 'tblTempUsageDetail_20' ) end [2025-02-19 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509977', 'tblTempVendorCDR_20' ) start [2025-02-19 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509977', 'tblTempVendorCDR_20' ) end [2025-02-19 11:05:20] Production.INFO: ProcessCDR(1,14509977,1,1,2) [2025-02-19 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509977', 'tblTempUsageDetail_20' ) start [2025-02-19 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509977', 'tblTempUsageDetail_20' ) end [2025-02-19 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:05:25] Production.INFO: ==3986== Releasing lock... [2025-02-19 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:05:25] Production.INFO: 62 MB #Memory Used# [2025-02-19 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:06:06 [end_date_ymd] => 2025-02-19 11:06:06 [RateCDR] => 1 ) [2025-02-19 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:06:06' and `end` < '2025-02-19 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:06:19] Production.INFO: count ==4545 [2025-02-19 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:06:06 - End Time 2025-02-19 11:06:06 [2025-02-19 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509982', 'tblTempUsageDetail_20' ) start [2025-02-19 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509982', 'tblTempUsageDetail_20' ) end [2025-02-19 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509982', 'tblTempVendorCDR_20' ) start [2025-02-19 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509982', 'tblTempVendorCDR_20' ) end [2025-02-19 11:06:21] Production.INFO: ProcessCDR(1,14509982,1,1,2) [2025-02-19 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509982', 'tblTempUsageDetail_20' ) start [2025-02-19 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509982', 'tblTempUsageDetail_20' ) end [2025-02-19 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:06:26] Production.INFO: ==4061== Releasing lock... [2025-02-19 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:06:26] Production.INFO: 62 MB #Memory Used# [2025-02-19 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:07:05 [end_date_ymd] => 2025-02-19 11:07:05 [RateCDR] => 1 ) [2025-02-19 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:07:05' and `end` < '2025-02-19 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:07:18] Production.INFO: count ==4540 [2025-02-19 11:07:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:07:05 - End Time 2025-02-19 11:07:05 [2025-02-19 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509987', 'tblTempUsageDetail_20' ) start [2025-02-19 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509987', 'tblTempUsageDetail_20' ) end [2025-02-19 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509987', 'tblTempVendorCDR_20' ) start [2025-02-19 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509987', 'tblTempVendorCDR_20' ) end [2025-02-19 11:07:20] Production.INFO: ProcessCDR(1,14509987,1,1,2) [2025-02-19 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509987', 'tblTempUsageDetail_20' ) start [2025-02-19 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509987', 'tblTempUsageDetail_20' ) end [2025-02-19 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:07:25] Production.INFO: ==4136== Releasing lock... [2025-02-19 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:07:25] Production.INFO: 62 MB #Memory Used# [2025-02-19 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:08:06 [end_date_ymd] => 2025-02-19 11:08:06 [RateCDR] => 1 ) [2025-02-19 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:08:06' and `end` < '2025-02-19 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:08:18] Production.INFO: count ==4559 [2025-02-19 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:08:06 - End Time 2025-02-19 11:08:06 [2025-02-19 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509992', 'tblTempUsageDetail_20' ) start [2025-02-19 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509992', 'tblTempUsageDetail_20' ) end [2025-02-19 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509992', 'tblTempVendorCDR_20' ) start [2025-02-19 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509992', 'tblTempVendorCDR_20' ) end [2025-02-19 11:08:21] Production.INFO: ProcessCDR(1,14509992,1,1,2) [2025-02-19 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509992', 'tblTempUsageDetail_20' ) start [2025-02-19 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509992', 'tblTempUsageDetail_20' ) end [2025-02-19 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:08:26] Production.INFO: ==4296== Releasing lock... [2025-02-19 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:08:26] Production.INFO: 62 MB #Memory Used# [2025-02-19 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:09:05 [end_date_ymd] => 2025-02-19 11:09:05 [RateCDR] => 1 ) [2025-02-19 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:09:05' and `end` < '2025-02-19 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:09:18] Production.INFO: count ==4564 [2025-02-19 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:09:05 - End Time 2025-02-19 11:09:05 [2025-02-19 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509997', 'tblTempUsageDetail_20' ) start [2025-02-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14509997', 'tblTempUsageDetail_20' ) end [2025-02-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509997', 'tblTempVendorCDR_20' ) start [2025-02-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14509997', 'tblTempVendorCDR_20' ) end [2025-02-19 11:09:20] Production.INFO: ProcessCDR(1,14509997,1,1,2) [2025-02-19 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14509997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14509997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14509997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14509997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509997', 'tblTempUsageDetail_20' ) start [2025-02-19 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14509997', 'tblTempUsageDetail_20' ) end [2025-02-19 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:09:25] Production.INFO: ==4368== Releasing lock... [2025-02-19 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:09:25] Production.INFO: 62 MB #Memory Used# [2025-02-19 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:10:06 [end_date_ymd] => 2025-02-19 11:10:06 [RateCDR] => 1 ) [2025-02-19 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:10:06' and `end` < '2025-02-19 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:10:20] Production.INFO: count ==4570 [2025-02-19 11:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 08:10:06 - End Time 2025-02-19 11:10:06 [2025-02-19 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510003', 'tblTempUsageDetail_20' ) start [2025-02-19 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510003', 'tblTempUsageDetail_20' ) end [2025-02-19 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510003', 'tblTempVendorCDR_20' ) start [2025-02-19 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510003', 'tblTempVendorCDR_20' ) end [2025-02-19 11:10:22] Production.INFO: ProcessCDR(1,14510003,1,1,2) [2025-02-19 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510003', 'tblTempUsageDetail_20' ) start [2025-02-19 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510003', 'tblTempUsageDetail_20' ) end [2025-02-19 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:10:27] Production.INFO: ==4446== Releasing lock... [2025-02-19 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:10:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:11:06 [end_date_ymd] => 2025-02-19 11:11:06 [RateCDR] => 1 ) [2025-02-19 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:11:06' and `end` < '2025-02-19 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:11:19] Production.INFO: count ==4639 [2025-02-19 11:11:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:11:06 - End Time 2025-02-19 11:11:06 [2025-02-19 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510008', 'tblTempUsageDetail_20' ) start [2025-02-19 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510008', 'tblTempUsageDetail_20' ) end [2025-02-19 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510008', 'tblTempVendorCDR_20' ) start [2025-02-19 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510008', 'tblTempVendorCDR_20' ) end [2025-02-19 11:11:21] Production.INFO: ProcessCDR(1,14510008,1,1,2) [2025-02-19 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510008', 'tblTempUsageDetail_20' ) start [2025-02-19 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510008', 'tblTempUsageDetail_20' ) end [2025-02-19 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:11:25] Production.INFO: ==4523== Releasing lock... [2025-02-19 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:11:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:12:05 [end_date_ymd] => 2025-02-19 11:12:05 [RateCDR] => 1 ) [2025-02-19 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:12:05' and `end` < '2025-02-19 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:12:19] Production.INFO: count ==4655 [2025-02-19 11:12:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:12:05 - End Time 2025-02-19 11:12:05 [2025-02-19 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510013', 'tblTempUsageDetail_20' ) start [2025-02-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510013', 'tblTempUsageDetail_20' ) end [2025-02-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510013', 'tblTempVendorCDR_20' ) start [2025-02-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510013', 'tblTempVendorCDR_20' ) end [2025-02-19 11:12:21] Production.INFO: ProcessCDR(1,14510013,1,1,2) [2025-02-19 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510013', 'tblTempUsageDetail_20' ) start [2025-02-19 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510013', 'tblTempUsageDetail_20' ) end [2025-02-19 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:12:26] Production.INFO: ==4688== Releasing lock... [2025-02-19 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:13:06 [end_date_ymd] => 2025-02-19 11:13:06 [RateCDR] => 1 ) [2025-02-19 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:13:06' and `end` < '2025-02-19 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:13:19] Production.INFO: count ==4687 [2025-02-19 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:13:06 - End Time 2025-02-19 11:13:06 [2025-02-19 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510018', 'tblTempUsageDetail_20' ) start [2025-02-19 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510018', 'tblTempUsageDetail_20' ) end [2025-02-19 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510018', 'tblTempVendorCDR_20' ) start [2025-02-19 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510018', 'tblTempVendorCDR_20' ) end [2025-02-19 11:13:21] Production.INFO: ProcessCDR(1,14510018,1,1,2) [2025-02-19 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510018', 'tblTempUsageDetail_20' ) start [2025-02-19 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510018', 'tblTempUsageDetail_20' ) end [2025-02-19 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:13:26] Production.INFO: ==4757== Releasing lock... [2025-02-19 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:13:26] Production.INFO: 63 MB #Memory Used# [2025-02-19 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:14:05 [end_date_ymd] => 2025-02-19 11:14:05 [RateCDR] => 1 ) [2025-02-19 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:14:05' and `end` < '2025-02-19 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:14:18] Production.INFO: count ==4707 [2025-02-19 11:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:14:05 - End Time 2025-02-19 11:14:05 [2025-02-19 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510023', 'tblTempUsageDetail_20' ) start [2025-02-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510023', 'tblTempUsageDetail_20' ) end [2025-02-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510023', 'tblTempVendorCDR_20' ) start [2025-02-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510023', 'tblTempVendorCDR_20' ) end [2025-02-19 11:14:20] Production.INFO: ProcessCDR(1,14510023,1,1,2) [2025-02-19 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510023', 'tblTempUsageDetail_20' ) start [2025-02-19 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510023', 'tblTempUsageDetail_20' ) end [2025-02-19 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:14:25] Production.INFO: ==4835== Releasing lock... [2025-02-19 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:14:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:15:05 [end_date_ymd] => 2025-02-19 11:15:05 [RateCDR] => 1 ) [2025-02-19 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:15:05' and `end` < '2025-02-19 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:15:18] Production.INFO: count ==4729 [2025-02-19 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:15:05 - End Time 2025-02-19 11:15:05 [2025-02-19 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510028', 'tblTempUsageDetail_20' ) start [2025-02-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510028', 'tblTempUsageDetail_20' ) end [2025-02-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510028', 'tblTempVendorCDR_20' ) start [2025-02-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510028', 'tblTempVendorCDR_20' ) end [2025-02-19 11:15:20] Production.INFO: ProcessCDR(1,14510028,1,1,2) [2025-02-19 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510028', 'tblTempUsageDetail_20' ) start [2025-02-19 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510028', 'tblTempUsageDetail_20' ) end [2025-02-19 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:15:25] Production.INFO: ==5025== Releasing lock... [2025-02-19 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:15:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:16:05 [end_date_ymd] => 2025-02-19 11:16:05 [RateCDR] => 1 ) [2025-02-19 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:16:05' and `end` < '2025-02-19 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:16:18] Production.INFO: count ==4737 [2025-02-19 11:16:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:16:05 - End Time 2025-02-19 11:16:05 [2025-02-19 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510033', 'tblTempUsageDetail_20' ) start [2025-02-19 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510033', 'tblTempUsageDetail_20' ) end [2025-02-19 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510033', 'tblTempVendorCDR_20' ) start [2025-02-19 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510033', 'tblTempVendorCDR_20' ) end [2025-02-19 11:16:21] Production.INFO: ProcessCDR(1,14510033,1,1,2) [2025-02-19 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510033', 'tblTempUsageDetail_20' ) start [2025-02-19 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510033', 'tblTempUsageDetail_20' ) end [2025-02-19 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:16:25] Production.INFO: ==5100== Releasing lock... [2025-02-19 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:16:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:17:05 [end_date_ymd] => 2025-02-19 11:17:05 [RateCDR] => 1 ) [2025-02-19 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:17:05' and `end` < '2025-02-19 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:17:17] Production.INFO: count ==4754 [2025-02-19 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:17:05 - End Time 2025-02-19 11:17:05 [2025-02-19 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510038', 'tblTempUsageDetail_20' ) start [2025-02-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510038', 'tblTempUsageDetail_20' ) end [2025-02-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510038', 'tblTempVendorCDR_20' ) start [2025-02-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510038', 'tblTempVendorCDR_20' ) end [2025-02-19 11:17:20] Production.INFO: ProcessCDR(1,14510038,1,1,2) [2025-02-19 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510038', 'tblTempUsageDetail_20' ) start [2025-02-19 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510038', 'tblTempUsageDetail_20' ) end [2025-02-19 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:17:25] Production.INFO: ==5176== Releasing lock... [2025-02-19 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:17:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:18:05 [end_date_ymd] => 2025-02-19 11:18:05 [RateCDR] => 1 ) [2025-02-19 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:18:05' and `end` < '2025-02-19 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:18:18] Production.INFO: count ==4768 [2025-02-19 11:18:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:18:05 - End Time 2025-02-19 11:18:05 [2025-02-19 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510043', 'tblTempUsageDetail_20' ) start [2025-02-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510043', 'tblTempUsageDetail_20' ) end [2025-02-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510043', 'tblTempVendorCDR_20' ) start [2025-02-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510043', 'tblTempVendorCDR_20' ) end [2025-02-19 11:18:20] Production.INFO: ProcessCDR(1,14510043,1,1,2) [2025-02-19 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510043', 'tblTempUsageDetail_20' ) start [2025-02-19 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510043', 'tblTempUsageDetail_20' ) end [2025-02-19 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:18:26] Production.INFO: ==5248== Releasing lock... [2025-02-19 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:18:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:19:05 [end_date_ymd] => 2025-02-19 11:19:05 [RateCDR] => 1 ) [2025-02-19 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:19:05' and `end` < '2025-02-19 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:19:18] Production.INFO: count ==4781 [2025-02-19 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:19:05 - End Time 2025-02-19 11:19:05 [2025-02-19 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510048', 'tblTempUsageDetail_20' ) start [2025-02-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510048', 'tblTempUsageDetail_20' ) end [2025-02-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510048', 'tblTempVendorCDR_20' ) start [2025-02-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510048', 'tblTempVendorCDR_20' ) end [2025-02-19 11:19:20] Production.INFO: ProcessCDR(1,14510048,1,1,2) [2025-02-19 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510048', 'tblTempUsageDetail_20' ) start [2025-02-19 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510048', 'tblTempUsageDetail_20' ) end [2025-02-19 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:19:25] Production.INFO: ==5323== Releasing lock... [2025-02-19 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:19:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:20:06 [end_date_ymd] => 2025-02-19 11:20:06 [RateCDR] => 1 ) [2025-02-19 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:20:06' and `end` < '2025-02-19 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:20:19] Production.INFO: count ==4782 [2025-02-19 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:20:06 - End Time 2025-02-19 11:20:06 [2025-02-19 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510053', 'tblTempUsageDetail_20' ) start [2025-02-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510053', 'tblTempUsageDetail_20' ) end [2025-02-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510053', 'tblTempVendorCDR_20' ) start [2025-02-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510053', 'tblTempVendorCDR_20' ) end [2025-02-19 11:20:21] Production.INFO: ProcessCDR(1,14510053,1,1,2) [2025-02-19 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510053', 'tblTempUsageDetail_20' ) start [2025-02-19 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510053', 'tblTempUsageDetail_20' ) end [2025-02-19 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:20:26] Production.INFO: ==5401== Releasing lock... [2025-02-19 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:20:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:21:05 [end_date_ymd] => 2025-02-19 11:21:05 [RateCDR] => 1 ) [2025-02-19 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:21:05' and `end` < '2025-02-19 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:21:18] Production.INFO: count ==4831 [2025-02-19 11:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:21:05 - End Time 2025-02-19 11:21:05 [2025-02-19 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510059', 'tblTempUsageDetail_20' ) start [2025-02-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510059', 'tblTempUsageDetail_20' ) end [2025-02-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510059', 'tblTempVendorCDR_20' ) start [2025-02-19 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510059', 'tblTempVendorCDR_20' ) end [2025-02-19 11:21:21] Production.INFO: ProcessCDR(1,14510059,1,1,2) [2025-02-19 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510059', 'tblTempUsageDetail_20' ) start [2025-02-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510059', 'tblTempUsageDetail_20' ) end [2025-02-19 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:21:25] Production.INFO: ==5480== Releasing lock... [2025-02-19 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:21:25] Production.INFO: 64 MB #Memory Used# [2025-02-19 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:22:05 [end_date_ymd] => 2025-02-19 11:22:05 [RateCDR] => 1 ) [2025-02-19 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:22:05' and `end` < '2025-02-19 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:22:18] Production.INFO: count ==4839 [2025-02-19 11:22:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:22:05 - End Time 2025-02-19 11:22:05 [2025-02-19 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510064', 'tblTempUsageDetail_20' ) start [2025-02-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510064', 'tblTempUsageDetail_20' ) end [2025-02-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510064', 'tblTempVendorCDR_20' ) start [2025-02-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510064', 'tblTempVendorCDR_20' ) end [2025-02-19 11:22:20] Production.INFO: ProcessCDR(1,14510064,1,1,2) [2025-02-19 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510064', 'tblTempUsageDetail_20' ) start [2025-02-19 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510064', 'tblTempUsageDetail_20' ) end [2025-02-19 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:22:25] Production.INFO: ==5556== Releasing lock... [2025-02-19 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:22:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-19 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:23:05 [end_date_ymd] => 2025-02-19 11:23:05 [RateCDR] => 1 ) [2025-02-19 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:23:05' and `end` < '2025-02-19 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:23:17] Production.INFO: count ==4868 [2025-02-19 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 08:23:05 - End Time 2025-02-19 11:23:05 [2025-02-19 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510069', 'tblTempUsageDetail_20' ) start [2025-02-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510069', 'tblTempUsageDetail_20' ) end [2025-02-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510069', 'tblTempVendorCDR_20' ) start [2025-02-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510069', 'tblTempVendorCDR_20' ) end [2025-02-19 11:23:20] Production.INFO: ProcessCDR(1,14510069,1,1,2) [2025-02-19 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510069', 'tblTempUsageDetail_20' ) start [2025-02-19 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510069', 'tblTempUsageDetail_20' ) end [2025-02-19 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:23:25] Production.INFO: ==5633== Releasing lock... [2025-02-19 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:23:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:24:05 [end_date_ymd] => 2025-02-19 11:24:05 [RateCDR] => 1 ) [2025-02-19 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:24:05' and `end` < '2025-02-19 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:24:18] Production.INFO: count ==4874 [2025-02-19 11:24:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:24:05 - End Time 2025-02-19 11:24:05 [2025-02-19 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510074', 'tblTempUsageDetail_20' ) start [2025-02-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510074', 'tblTempUsageDetail_20' ) end [2025-02-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510074', 'tblTempVendorCDR_20' ) start [2025-02-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510074', 'tblTempVendorCDR_20' ) end [2025-02-19 11:24:20] Production.INFO: ProcessCDR(1,14510074,1,1,2) [2025-02-19 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510074', 'tblTempUsageDetail_20' ) start [2025-02-19 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510074', 'tblTempUsageDetail_20' ) end [2025-02-19 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:24:24] Production.INFO: ==5704== Releasing lock... [2025-02-19 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:24:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:25:05 [end_date_ymd] => 2025-02-19 11:25:05 [RateCDR] => 1 ) [2025-02-19 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:25:05' and `end` < '2025-02-19 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:25:17] Production.INFO: count ==4868 [2025-02-19 11:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:25:05 - End Time 2025-02-19 11:25:05 [2025-02-19 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510079', 'tblTempUsageDetail_20' ) start [2025-02-19 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510079', 'tblTempUsageDetail_20' ) end [2025-02-19 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510079', 'tblTempVendorCDR_20' ) start [2025-02-19 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510079', 'tblTempVendorCDR_20' ) end [2025-02-19 11:25:20] Production.INFO: ProcessCDR(1,14510079,1,1,2) [2025-02-19 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510079', 'tblTempUsageDetail_20' ) start [2025-02-19 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510079', 'tblTempUsageDetail_20' ) end [2025-02-19 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:25:25] Production.INFO: ==5780== Releasing lock... [2025-02-19 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:25:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:26:05 [end_date_ymd] => 2025-02-19 11:26:05 [RateCDR] => 1 ) [2025-02-19 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:26:05' and `end` < '2025-02-19 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:26:18] Production.INFO: count ==4879 [2025-02-19 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:26:05 - End Time 2025-02-19 11:26:05 [2025-02-19 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510084', 'tblTempUsageDetail_20' ) start [2025-02-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510084', 'tblTempUsageDetail_20' ) end [2025-02-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510084', 'tblTempVendorCDR_20' ) start [2025-02-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510084', 'tblTempVendorCDR_20' ) end [2025-02-19 11:26:20] Production.INFO: ProcessCDR(1,14510084,1,1,2) [2025-02-19 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510084', 'tblTempUsageDetail_20' ) start [2025-02-19 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510084', 'tblTempUsageDetail_20' ) end [2025-02-19 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:26:25] Production.INFO: ==5854== Releasing lock... [2025-02-19 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:26:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:27:06 [end_date_ymd] => 2025-02-19 11:27:06 [RateCDR] => 1 ) [2025-02-19 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:27:06' and `end` < '2025-02-19 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:27:18] Production.INFO: count ==4879 [2025-02-19 11:27:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:27:06 - End Time 2025-02-19 11:27:06 [2025-02-19 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510089', 'tblTempUsageDetail_20' ) start [2025-02-19 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510089', 'tblTempUsageDetail_20' ) end [2025-02-19 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510089', 'tblTempVendorCDR_20' ) start [2025-02-19 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510089', 'tblTempVendorCDR_20' ) end [2025-02-19 11:27:20] Production.INFO: ProcessCDR(1,14510089,1,1,2) [2025-02-19 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510089', 'tblTempUsageDetail_20' ) start [2025-02-19 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510089', 'tblTempUsageDetail_20' ) end [2025-02-19 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:27:25] Production.INFO: ==5935== Releasing lock... [2025-02-19 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:27:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:28:05 [end_date_ymd] => 2025-02-19 11:28:05 [RateCDR] => 1 ) [2025-02-19 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:28:05' and `end` < '2025-02-19 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:28:18] Production.INFO: count ==4905 [2025-02-19 11:28:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:28:05 - End Time 2025-02-19 11:28:05 [2025-02-19 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510094', 'tblTempUsageDetail_20' ) start [2025-02-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510094', 'tblTempUsageDetail_20' ) end [2025-02-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510094', 'tblTempVendorCDR_20' ) start [2025-02-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510094', 'tblTempVendorCDR_20' ) end [2025-02-19 11:28:20] Production.INFO: ProcessCDR(1,14510094,1,1,2) [2025-02-19 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510094', 'tblTempUsageDetail_20' ) start [2025-02-19 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510094', 'tblTempUsageDetail_20' ) end [2025-02-19 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:28:26] Production.INFO: ==6014== Releasing lock... [2025-02-19 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:28:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-19 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:29:05 [end_date_ymd] => 2025-02-19 11:29:05 [RateCDR] => 1 ) [2025-02-19 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:29:05' and `end` < '2025-02-19 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:29:18] Production.INFO: count ==4931 [2025-02-19 11:29:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:29:05 - End Time 2025-02-19 11:29:05 [2025-02-19 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510099', 'tblTempUsageDetail_20' ) start [2025-02-19 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510099', 'tblTempUsageDetail_20' ) end [2025-02-19 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510099', 'tblTempVendorCDR_20' ) start [2025-02-19 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510099', 'tblTempVendorCDR_20' ) end [2025-02-19 11:29:21] Production.INFO: ProcessCDR(1,14510099,1,1,2) [2025-02-19 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510099', 'tblTempUsageDetail_20' ) start [2025-02-19 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510099', 'tblTempUsageDetail_20' ) end [2025-02-19 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:29:26] Production.INFO: ==6087== Releasing lock... [2025-02-19 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:29:26] Production.INFO: 65 MB #Memory Used# [2025-02-19 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:30:06 [end_date_ymd] => 2025-02-19 11:30:06 [RateCDR] => 1 ) [2025-02-19 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:30:06' and `end` < '2025-02-19 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:30:19] Production.INFO: count ==4948 [2025-02-19 11:30:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:30:06 - End Time 2025-02-19 11:30:06 [2025-02-19 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510104', 'tblTempUsageDetail_20' ) start [2025-02-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510104', 'tblTempUsageDetail_20' ) end [2025-02-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510104', 'tblTempVendorCDR_20' ) start [2025-02-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510104', 'tblTempVendorCDR_20' ) end [2025-02-19 11:30:21] Production.INFO: ProcessCDR(1,14510104,1,1,2) [2025-02-19 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510104', 'tblTempUsageDetail_20' ) start [2025-02-19 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510104', 'tblTempUsageDetail_20' ) end [2025-02-19 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:30:26] Production.INFO: ==6202== Releasing lock... [2025-02-19 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:30:26] Production.INFO: 65 MB #Memory Used# [2025-02-19 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:31:05 [end_date_ymd] => 2025-02-19 11:31:05 [RateCDR] => 1 ) [2025-02-19 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:31:05' and `end` < '2025-02-19 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:31:18] Production.INFO: count ==5052 [2025-02-19 11:31:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:31:05 - End Time 2025-02-19 11:31:05 [2025-02-19 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510110', 'tblTempUsageDetail_20' ) start [2025-02-19 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510110', 'tblTempUsageDetail_20' ) end [2025-02-19 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510110', 'tblTempVendorCDR_20' ) start [2025-02-19 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510110', 'tblTempVendorCDR_20' ) end [2025-02-19 11:31:21] Production.INFO: ProcessCDR(1,14510110,1,1,2) [2025-02-19 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510110', 'tblTempUsageDetail_20' ) start [2025-02-19 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510110', 'tblTempUsageDetail_20' ) end [2025-02-19 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:31:26] Production.INFO: ==6277== Releasing lock... [2025-02-19 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:31:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:32:05 [end_date_ymd] => 2025-02-19 11:32:05 [RateCDR] => 1 ) [2025-02-19 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:32:05' and `end` < '2025-02-19 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:32:18] Production.INFO: count ==5035 [2025-02-19 11:32:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:32:05 - End Time 2025-02-19 11:32:05 [2025-02-19 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510115', 'tblTempUsageDetail_20' ) start [2025-02-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510115', 'tblTempUsageDetail_20' ) end [2025-02-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510115', 'tblTempVendorCDR_20' ) start [2025-02-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510115', 'tblTempVendorCDR_20' ) end [2025-02-19 11:32:20] Production.INFO: ProcessCDR(1,14510115,1,1,2) [2025-02-19 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510115', 'tblTempUsageDetail_20' ) start [2025-02-19 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510115', 'tblTempUsageDetail_20' ) end [2025-02-19 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:32:25] Production.INFO: ==6349== Releasing lock... [2025-02-19 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:32:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:33:05 [end_date_ymd] => 2025-02-19 11:33:05 [RateCDR] => 1 ) [2025-02-19 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:33:05' and `end` < '2025-02-19 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:33:18] Production.INFO: count ==5046 [2025-02-19 11:33:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:33:05 - End Time 2025-02-19 11:33:05 [2025-02-19 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510120', 'tblTempUsageDetail_20' ) start [2025-02-19 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510120', 'tblTempUsageDetail_20' ) end [2025-02-19 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510120', 'tblTempVendorCDR_20' ) start [2025-02-19 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510120', 'tblTempVendorCDR_20' ) end [2025-02-19 11:33:21] Production.INFO: ProcessCDR(1,14510120,1,1,2) [2025-02-19 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510120', 'tblTempUsageDetail_20' ) start [2025-02-19 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510120', 'tblTempUsageDetail_20' ) end [2025-02-19 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:33:26] Production.INFO: ==6422== Releasing lock... [2025-02-19 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:33:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:34:05 [end_date_ymd] => 2025-02-19 11:34:05 [RateCDR] => 1 ) [2025-02-19 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:34:05' and `end` < '2025-02-19 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:34:18] Production.INFO: count ==5058 [2025-02-19 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:34:05 - End Time 2025-02-19 11:34:05 [2025-02-19 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510125', 'tblTempUsageDetail_20' ) start [2025-02-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510125', 'tblTempUsageDetail_20' ) end [2025-02-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510125', 'tblTempVendorCDR_20' ) start [2025-02-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510125', 'tblTempVendorCDR_20' ) end [2025-02-19 11:34:21] Production.INFO: ProcessCDR(1,14510125,1,1,2) [2025-02-19 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510125', 'tblTempUsageDetail_20' ) start [2025-02-19 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510125', 'tblTempUsageDetail_20' ) end [2025-02-19 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:34:25] Production.INFO: ==6500== Releasing lock... [2025-02-19 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:34:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:35:05 [end_date_ymd] => 2025-02-19 11:35:05 [RateCDR] => 1 ) [2025-02-19 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:35:05' and `end` < '2025-02-19 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:35:18] Production.INFO: count ==5085 [2025-02-19 11:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:35:05 - End Time 2025-02-19 11:35:05 [2025-02-19 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510130', 'tblTempUsageDetail_20' ) start [2025-02-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510130', 'tblTempUsageDetail_20' ) end [2025-02-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510130', 'tblTempVendorCDR_20' ) start [2025-02-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510130', 'tblTempVendorCDR_20' ) end [2025-02-19 11:35:21] Production.INFO: ProcessCDR(1,14510130,1,1,2) [2025-02-19 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510130', 'tblTempUsageDetail_20' ) start [2025-02-19 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510130', 'tblTempUsageDetail_20' ) end [2025-02-19 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:35:26] Production.INFO: ==6572== Releasing lock... [2025-02-19 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:35:26] Production.INFO: 66 MB #Memory Used# [2025-02-19 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:36:05 [end_date_ymd] => 2025-02-19 11:36:05 [RateCDR] => 1 ) [2025-02-19 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:36:05' and `end` < '2025-02-19 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:36:18] Production.INFO: count ==5101 [2025-02-19 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:36:05 - End Time 2025-02-19 11:36:05 [2025-02-19 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510135', 'tblTempUsageDetail_20' ) start [2025-02-19 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510135', 'tblTempUsageDetail_20' ) end [2025-02-19 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510135', 'tblTempVendorCDR_20' ) start [2025-02-19 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510135', 'tblTempVendorCDR_20' ) end [2025-02-19 11:36:21] Production.INFO: ProcessCDR(1,14510135,1,1,2) [2025-02-19 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510135', 'tblTempUsageDetail_20' ) start [2025-02-19 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510135', 'tblTempUsageDetail_20' ) end [2025-02-19 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:36:25] Production.INFO: ==6647== Releasing lock... [2025-02-19 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:36:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:37:05 [end_date_ymd] => 2025-02-19 11:37:05 [RateCDR] => 1 ) [2025-02-19 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:37:05' and `end` < '2025-02-19 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:37:18] Production.INFO: count ==5120 [2025-02-19 11:37:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:37:05 - End Time 2025-02-19 11:37:05 [2025-02-19 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510140', 'tblTempUsageDetail_20' ) start [2025-02-19 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510140', 'tblTempUsageDetail_20' ) end [2025-02-19 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510140', 'tblTempVendorCDR_20' ) start [2025-02-19 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510140', 'tblTempVendorCDR_20' ) end [2025-02-19 11:37:20] Production.INFO: ProcessCDR(1,14510140,1,1,2) [2025-02-19 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510140', 'tblTempUsageDetail_20' ) start [2025-02-19 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510140', 'tblTempUsageDetail_20' ) end [2025-02-19 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:37:25] Production.INFO: ==6719== Releasing lock... [2025-02-19 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:37:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:38:05 [end_date_ymd] => 2025-02-19 11:38:05 [RateCDR] => 1 ) [2025-02-19 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:38:05' and `end` < '2025-02-19 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:38:17] Production.INFO: count ==5132 [2025-02-19 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:38:05 - End Time 2025-02-19 11:38:05 [2025-02-19 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510145', 'tblTempUsageDetail_20' ) start [2025-02-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510145', 'tblTempUsageDetail_20' ) end [2025-02-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510145', 'tblTempVendorCDR_20' ) start [2025-02-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510145', 'tblTempVendorCDR_20' ) end [2025-02-19 11:38:20] Production.INFO: ProcessCDR(1,14510145,1,1,2) [2025-02-19 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510145', 'tblTempUsageDetail_20' ) start [2025-02-19 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510145', 'tblTempUsageDetail_20' ) end [2025-02-19 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:38:25] Production.INFO: ==6794== Releasing lock... [2025-02-19 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:38:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-19 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:39:05 [end_date_ymd] => 2025-02-19 11:39:05 [RateCDR] => 1 ) [2025-02-19 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:39:05' and `end` < '2025-02-19 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:39:18] Production.INFO: count ==5141 [2025-02-19 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:39:05 - End Time 2025-02-19 11:39:05 [2025-02-19 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510150', 'tblTempUsageDetail_20' ) start [2025-02-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510150', 'tblTempUsageDetail_20' ) end [2025-02-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510150', 'tblTempVendorCDR_20' ) start [2025-02-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510150', 'tblTempVendorCDR_20' ) end [2025-02-19 11:39:20] Production.INFO: ProcessCDR(1,14510150,1,1,2) [2025-02-19 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510150', 'tblTempUsageDetail_20' ) start [2025-02-19 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510150', 'tblTempUsageDetail_20' ) end [2025-02-19 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:39:25] Production.INFO: ==6868== Releasing lock... [2025-02-19 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-19 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:40:07 [end_date_ymd] => 2025-02-19 11:40:07 [RateCDR] => 1 ) [2025-02-19 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:40:07' and `end` < '2025-02-19 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:40:20] Production.INFO: count ==5133 [2025-02-19 11:40:22] Production.ERROR: pbx CDR StartTime 2025-02-19 08:40:07 - End Time 2025-02-19 11:40:07 [2025-02-19 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510156', 'tblTempUsageDetail_20' ) start [2025-02-19 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510156', 'tblTempUsageDetail_20' ) end [2025-02-19 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510156', 'tblTempVendorCDR_20' ) start [2025-02-19 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510156', 'tblTempVendorCDR_20' ) end [2025-02-19 11:40:22] Production.INFO: ProcessCDR(1,14510156,1,1,2) [2025-02-19 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510156', 'tblTempUsageDetail_20' ) start [2025-02-19 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510156', 'tblTempUsageDetail_20' ) end [2025-02-19 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:40:27] Production.INFO: ==6944== Releasing lock... [2025-02-19 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:40:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-19 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:41:05 [end_date_ymd] => 2025-02-19 11:41:05 [RateCDR] => 1 ) [2025-02-19 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:41:05' and `end` < '2025-02-19 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:41:18] Production.INFO: count ==5218 [2025-02-19 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:41:05 - End Time 2025-02-19 11:41:05 [2025-02-19 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510161', 'tblTempUsageDetail_20' ) start [2025-02-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510161', 'tblTempUsageDetail_20' ) end [2025-02-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510161', 'tblTempVendorCDR_20' ) start [2025-02-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510161', 'tblTempVendorCDR_20' ) end [2025-02-19 11:41:21] Production.INFO: ProcessCDR(1,14510161,1,1,2) [2025-02-19 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510161', 'tblTempUsageDetail_20' ) start [2025-02-19 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510161', 'tblTempUsageDetail_20' ) end [2025-02-19 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:41:25] Production.INFO: ==7018== Releasing lock... [2025-02-19 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:41:25] Production.INFO: 67 MB #Memory Used# [2025-02-19 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:42:05 [end_date_ymd] => 2025-02-19 11:42:05 [RateCDR] => 1 ) [2025-02-19 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:42:05' and `end` < '2025-02-19 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:42:18] Production.INFO: count ==5231 [2025-02-19 11:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:42:05 - End Time 2025-02-19 11:42:05 [2025-02-19 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510166', 'tblTempUsageDetail_20' ) start [2025-02-19 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510166', 'tblTempUsageDetail_20' ) end [2025-02-19 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510166', 'tblTempVendorCDR_20' ) start [2025-02-19 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510166', 'tblTempVendorCDR_20' ) end [2025-02-19 11:42:20] Production.INFO: ProcessCDR(1,14510166,1,1,2) [2025-02-19 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510166', 'tblTempUsageDetail_20' ) start [2025-02-19 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510166', 'tblTempUsageDetail_20' ) end [2025-02-19 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:42:25] Production.INFO: ==7091== Releasing lock... [2025-02-19 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:42:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:43:05 [end_date_ymd] => 2025-02-19 11:43:05 [RateCDR] => 1 ) [2025-02-19 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:43:05' and `end` < '2025-02-19 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:43:18] Production.INFO: count ==5244 [2025-02-19 11:43:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:43:05 - End Time 2025-02-19 11:43:05 [2025-02-19 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510171', 'tblTempUsageDetail_20' ) start [2025-02-19 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510171', 'tblTempUsageDetail_20' ) end [2025-02-19 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510171', 'tblTempVendorCDR_20' ) start [2025-02-19 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510171', 'tblTempVendorCDR_20' ) end [2025-02-19 11:43:20] Production.INFO: ProcessCDR(1,14510171,1,1,2) [2025-02-19 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510171', 'tblTempUsageDetail_20' ) start [2025-02-19 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510171', 'tblTempUsageDetail_20' ) end [2025-02-19 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:43:25] Production.INFO: ==7165== Releasing lock... [2025-02-19 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:43:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:44:06 [end_date_ymd] => 2025-02-19 11:44:06 [RateCDR] => 1 ) [2025-02-19 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:44:06' and `end` < '2025-02-19 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:44:19] Production.INFO: count ==5259 [2025-02-19 11:44:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:44:06 - End Time 2025-02-19 11:44:06 [2025-02-19 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510176', 'tblTempUsageDetail_20' ) start [2025-02-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510176', 'tblTempUsageDetail_20' ) end [2025-02-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510176', 'tblTempVendorCDR_20' ) start [2025-02-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510176', 'tblTempVendorCDR_20' ) end [2025-02-19 11:44:21] Production.INFO: ProcessCDR(1,14510176,1,1,2) [2025-02-19 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510176', 'tblTempUsageDetail_20' ) start [2025-02-19 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510176', 'tblTempUsageDetail_20' ) end [2025-02-19 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:44:26] Production.INFO: ==7242== Releasing lock... [2025-02-19 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:44:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:45:05 [end_date_ymd] => 2025-02-19 11:45:05 [RateCDR] => 1 ) [2025-02-19 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:45:05' and `end` < '2025-02-19 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:45:18] Production.INFO: count ==5255 [2025-02-19 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:45:05 - End Time 2025-02-19 11:45:05 [2025-02-19 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510181', 'tblTempUsageDetail_20' ) start [2025-02-19 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510181', 'tblTempUsageDetail_20' ) end [2025-02-19 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510181', 'tblTempVendorCDR_20' ) start [2025-02-19 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510181', 'tblTempVendorCDR_20' ) end [2025-02-19 11:45:20] Production.INFO: ProcessCDR(1,14510181,1,1,2) [2025-02-19 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510181', 'tblTempUsageDetail_20' ) start [2025-02-19 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510181', 'tblTempUsageDetail_20' ) end [2025-02-19 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:45:25] Production.INFO: ==7315== Releasing lock... [2025-02-19 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:45:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:46:06 [end_date_ymd] => 2025-02-19 11:46:06 [RateCDR] => 1 ) [2025-02-19 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:46:06' and `end` < '2025-02-19 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:46:18] Production.INFO: count ==5272 [2025-02-19 11:46:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:46:06 - End Time 2025-02-19 11:46:06 [2025-02-19 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510186', 'tblTempUsageDetail_20' ) start [2025-02-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510186', 'tblTempUsageDetail_20' ) end [2025-02-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510186', 'tblTempVendorCDR_20' ) start [2025-02-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510186', 'tblTempVendorCDR_20' ) end [2025-02-19 11:46:21] Production.INFO: ProcessCDR(1,14510186,1,1,2) [2025-02-19 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510186', 'tblTempUsageDetail_20' ) start [2025-02-19 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510186', 'tblTempUsageDetail_20' ) end [2025-02-19 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:46:26] Production.INFO: ==7426== Releasing lock... [2025-02-19 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:47:05 [end_date_ymd] => 2025-02-19 11:47:05 [RateCDR] => 1 ) [2025-02-19 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:47:05' and `end` < '2025-02-19 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:47:18] Production.INFO: count ==5287 [2025-02-19 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:47:05 - End Time 2025-02-19 11:47:05 [2025-02-19 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510191', 'tblTempUsageDetail_20' ) start [2025-02-19 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510191', 'tblTempUsageDetail_20' ) end [2025-02-19 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510191', 'tblTempVendorCDR_20' ) start [2025-02-19 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510191', 'tblTempVendorCDR_20' ) end [2025-02-19 11:47:20] Production.INFO: ProcessCDR(1,14510191,1,1,2) [2025-02-19 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510191', 'tblTempUsageDetail_20' ) start [2025-02-19 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510191', 'tblTempUsageDetail_20' ) end [2025-02-19 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:47:25] Production.INFO: ==7504== Releasing lock... [2025-02-19 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:47:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:48:05 [end_date_ymd] => 2025-02-19 11:48:05 [RateCDR] => 1 ) [2025-02-19 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:48:05' and `end` < '2025-02-19 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:48:18] Production.INFO: count ==5279 [2025-02-19 11:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:48:05 - End Time 2025-02-19 11:48:05 [2025-02-19 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510196', 'tblTempUsageDetail_20' ) start [2025-02-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510196', 'tblTempUsageDetail_20' ) end [2025-02-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510196', 'tblTempVendorCDR_20' ) start [2025-02-19 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510196', 'tblTempVendorCDR_20' ) end [2025-02-19 11:48:21] Production.INFO: ProcessCDR(1,14510196,1,1,2) [2025-02-19 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510196', 'tblTempUsageDetail_20' ) start [2025-02-19 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510196', 'tblTempUsageDetail_20' ) end [2025-02-19 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:48:25] Production.INFO: ==7579== Releasing lock... [2025-02-19 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:48:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:49:05 [end_date_ymd] => 2025-02-19 11:49:05 [RateCDR] => 1 ) [2025-02-19 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:49:05' and `end` < '2025-02-19 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:49:17] Production.INFO: count ==5266 [2025-02-19 11:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:49:05 - End Time 2025-02-19 11:49:05 [2025-02-19 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510201', 'tblTempUsageDetail_20' ) start [2025-02-19 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510201', 'tblTempUsageDetail_20' ) end [2025-02-19 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510201', 'tblTempVendorCDR_20' ) start [2025-02-19 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510201', 'tblTempVendorCDR_20' ) end [2025-02-19 11:49:20] Production.INFO: ProcessCDR(1,14510201,1,1,2) [2025-02-19 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510201', 'tblTempUsageDetail_20' ) start [2025-02-19 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510201', 'tblTempUsageDetail_20' ) end [2025-02-19 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:49:25] Production.INFO: ==7652== Releasing lock... [2025-02-19 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:49:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:50:06 [end_date_ymd] => 2025-02-19 11:50:06 [RateCDR] => 1 ) [2025-02-19 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:50:06' and `end` < '2025-02-19 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:50:18] Production.INFO: count ==5286 [2025-02-19 11:50:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:50:06 - End Time 2025-02-19 11:50:06 [2025-02-19 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510206', 'tblTempUsageDetail_20' ) start [2025-02-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510206', 'tblTempUsageDetail_20' ) end [2025-02-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510206', 'tblTempVendorCDR_20' ) start [2025-02-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510206', 'tblTempVendorCDR_20' ) end [2025-02-19 11:50:21] Production.INFO: ProcessCDR(1,14510206,1,1,2) [2025-02-19 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510206', 'tblTempUsageDetail_20' ) start [2025-02-19 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510206', 'tblTempUsageDetail_20' ) end [2025-02-19 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:50:26] Production.INFO: ==7726== Releasing lock... [2025-02-19 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:50:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:51:05 [end_date_ymd] => 2025-02-19 11:51:05 [RateCDR] => 1 ) [2025-02-19 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:51:05' and `end` < '2025-02-19 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:51:17] Production.INFO: count ==5285 [2025-02-19 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:51:05 - End Time 2025-02-19 11:51:05 [2025-02-19 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510212', 'tblTempUsageDetail_20' ) start [2025-02-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510212', 'tblTempUsageDetail_20' ) end [2025-02-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510212', 'tblTempVendorCDR_20' ) start [2025-02-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510212', 'tblTempVendorCDR_20' ) end [2025-02-19 11:51:20] Production.INFO: ProcessCDR(1,14510212,1,1,2) [2025-02-19 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510212', 'tblTempUsageDetail_20' ) start [2025-02-19 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510212', 'tblTempUsageDetail_20' ) end [2025-02-19 11:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:51:25] Production.INFO: ==7799== Releasing lock... [2025-02-19 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:51:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:52:05 [end_date_ymd] => 2025-02-19 11:52:05 [RateCDR] => 1 ) [2025-02-19 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:52:05' and `end` < '2025-02-19 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:52:18] Production.INFO: count ==5289 [2025-02-19 11:52:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:52:05 - End Time 2025-02-19 11:52:05 [2025-02-19 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510217', 'tblTempUsageDetail_20' ) start [2025-02-19 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510217', 'tblTempUsageDetail_20' ) end [2025-02-19 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510217', 'tblTempVendorCDR_20' ) start [2025-02-19 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510217', 'tblTempVendorCDR_20' ) end [2025-02-19 11:52:20] Production.INFO: ProcessCDR(1,14510217,1,1,2) [2025-02-19 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510217', 'tblTempUsageDetail_20' ) start [2025-02-19 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510217', 'tblTempUsageDetail_20' ) end [2025-02-19 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:52:25] Production.INFO: ==7876== Releasing lock... [2025-02-19 11:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:52:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:53:05 [end_date_ymd] => 2025-02-19 11:53:05 [RateCDR] => 1 ) [2025-02-19 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:53:05' and `end` < '2025-02-19 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:53:17] Production.INFO: count ==5296 [2025-02-19 11:53:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:53:05 - End Time 2025-02-19 11:53:05 [2025-02-19 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510222', 'tblTempUsageDetail_20' ) start [2025-02-19 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510222', 'tblTempUsageDetail_20' ) end [2025-02-19 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510222', 'tblTempVendorCDR_20' ) start [2025-02-19 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510222', 'tblTempVendorCDR_20' ) end [2025-02-19 11:53:20] Production.INFO: ProcessCDR(1,14510222,1,1,2) [2025-02-19 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510222', 'tblTempUsageDetail_20' ) start [2025-02-19 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510222', 'tblTempUsageDetail_20' ) end [2025-02-19 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:53:25] Production.INFO: ==7946== Releasing lock... [2025-02-19 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:53:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:54:05 [end_date_ymd] => 2025-02-19 11:54:05 [RateCDR] => 1 ) [2025-02-19 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:54:05' and `end` < '2025-02-19 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:54:18] Production.INFO: count ==5307 [2025-02-19 11:54:20] Production.ERROR: pbx CDR StartTime 2025-02-19 08:54:05 - End Time 2025-02-19 11:54:05 [2025-02-19 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510227', 'tblTempUsageDetail_20' ) start [2025-02-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510227', 'tblTempUsageDetail_20' ) end [2025-02-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510227', 'tblTempVendorCDR_20' ) start [2025-02-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510227', 'tblTempVendorCDR_20' ) end [2025-02-19 11:54:21] Production.INFO: ProcessCDR(1,14510227,1,1,2) [2025-02-19 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510227', 'tblTempUsageDetail_20' ) start [2025-02-19 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510227', 'tblTempUsageDetail_20' ) end [2025-02-19 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:54:26] Production.INFO: ==8016== Releasing lock... [2025-02-19 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:54:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:55:05 [end_date_ymd] => 2025-02-19 11:55:05 [RateCDR] => 1 ) [2025-02-19 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:55:05' and `end` < '2025-02-19 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:55:18] Production.INFO: count ==5308 [2025-02-19 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:55:05 - End Time 2025-02-19 11:55:05 [2025-02-19 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510232', 'tblTempUsageDetail_20' ) start [2025-02-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510232', 'tblTempUsageDetail_20' ) end [2025-02-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510232', 'tblTempVendorCDR_20' ) start [2025-02-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510232', 'tblTempVendorCDR_20' ) end [2025-02-19 11:55:21] Production.INFO: ProcessCDR(1,14510232,1,1,2) [2025-02-19 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510232', 'tblTempUsageDetail_20' ) start [2025-02-19 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510232', 'tblTempUsageDetail_20' ) end [2025-02-19 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:55:26] Production.INFO: ==8088== Releasing lock... [2025-02-19 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:55:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:56:05 [end_date_ymd] => 2025-02-19 11:56:05 [RateCDR] => 1 ) [2025-02-19 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:56:05' and `end` < '2025-02-19 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:56:18] Production.INFO: count ==5324 [2025-02-19 11:56:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:56:05 - End Time 2025-02-19 11:56:05 [2025-02-19 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510237', 'tblTempUsageDetail_20' ) start [2025-02-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510237', 'tblTempUsageDetail_20' ) end [2025-02-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510237', 'tblTempVendorCDR_20' ) start [2025-02-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510237', 'tblTempVendorCDR_20' ) end [2025-02-19 11:56:21] Production.INFO: ProcessCDR(1,14510237,1,1,2) [2025-02-19 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510237', 'tblTempUsageDetail_20' ) start [2025-02-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510237', 'tblTempUsageDetail_20' ) end [2025-02-19 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:56:26] Production.INFO: ==8160== Releasing lock... [2025-02-19 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:56:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:57:06 [end_date_ymd] => 2025-02-19 11:57:06 [RateCDR] => 1 ) [2025-02-19 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:57:06' and `end` < '2025-02-19 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:57:19] Production.INFO: count ==5334 [2025-02-19 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:57:06 - End Time 2025-02-19 11:57:06 [2025-02-19 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510242', 'tblTempUsageDetail_20' ) start [2025-02-19 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510242', 'tblTempUsageDetail_20' ) end [2025-02-19 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510242', 'tblTempVendorCDR_20' ) start [2025-02-19 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510242', 'tblTempVendorCDR_20' ) end [2025-02-19 11:57:21] Production.INFO: ProcessCDR(1,14510242,1,1,2) [2025-02-19 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510242', 'tblTempUsageDetail_20' ) start [2025-02-19 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510242', 'tblTempUsageDetail_20' ) end [2025-02-19 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:57:26] Production.INFO: ==8233== Releasing lock... [2025-02-19 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:57:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:58:05 [end_date_ymd] => 2025-02-19 11:58:05 [RateCDR] => 1 ) [2025-02-19 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:58:05' and `end` < '2025-02-19 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:58:18] Production.INFO: count ==5350 [2025-02-19 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:58:05 - End Time 2025-02-19 11:58:05 [2025-02-19 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510247', 'tblTempUsageDetail_20' ) start [2025-02-19 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510247', 'tblTempUsageDetail_20' ) end [2025-02-19 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510247', 'tblTempVendorCDR_20' ) start [2025-02-19 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510247', 'tblTempVendorCDR_20' ) end [2025-02-19 11:58:21] Production.INFO: ProcessCDR(1,14510247,1,1,2) [2025-02-19 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510247', 'tblTempUsageDetail_20' ) start [2025-02-19 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510247', 'tblTempUsageDetail_20' ) end [2025-02-19 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:58:26] Production.INFO: ==8301== Releasing lock... [2025-02-19 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:58:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 08:59:06 [end_date_ymd] => 2025-02-19 11:59:06 [RateCDR] => 1 ) [2025-02-19 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 08:59:06' and `end` < '2025-02-19 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 11:59:19] Production.INFO: count ==5364 [2025-02-19 11:59:21] Production.ERROR: pbx CDR StartTime 2025-02-19 08:59:06 - End Time 2025-02-19 11:59:06 [2025-02-19 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510252', 'tblTempUsageDetail_20' ) start [2025-02-19 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510252', 'tblTempUsageDetail_20' ) end [2025-02-19 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510252', 'tblTempVendorCDR_20' ) start [2025-02-19 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510252', 'tblTempVendorCDR_20' ) end [2025-02-19 11:59:21] Production.INFO: ProcessCDR(1,14510252,1,1,2) [2025-02-19 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510252', 'tblTempUsageDetail_20' ) start [2025-02-19 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510252', 'tblTempUsageDetail_20' ) end [2025-02-19 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 11:59:26] Production.INFO: ==8372== Releasing lock... [2025-02-19 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 11:59:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:00:06 [end_date_ymd] => 2025-02-19 12:00:06 [RateCDR] => 1 ) [2025-02-19 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:00:06' and `end` < '2025-02-19 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:00:19] Production.INFO: count ==5366 [2025-02-19 12:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:00:06 - End Time 2025-02-19 12:00:06 [2025-02-19 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510257', 'tblTempUsageDetail_20' ) start [2025-02-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510257', 'tblTempUsageDetail_20' ) end [2025-02-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510257', 'tblTempVendorCDR_20' ) start [2025-02-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510257', 'tblTempVendorCDR_20' ) end [2025-02-19 12:00:21] Production.INFO: ProcessCDR(1,14510257,1,1,2) [2025-02-19 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510257', 'tblTempUsageDetail_20' ) start [2025-02-19 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510257', 'tblTempUsageDetail_20' ) end [2025-02-19 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:00:27] Production.INFO: ==8446== Releasing lock... [2025-02-19 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:00:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:01:05 [end_date_ymd] => 2025-02-19 12:01:05 [RateCDR] => 1 ) [2025-02-19 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:01:05' and `end` < '2025-02-19 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:01:18] Production.INFO: count ==5412 [2025-02-19 12:01:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:01:05 - End Time 2025-02-19 12:01:05 [2025-02-19 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510263', 'tblTempUsageDetail_20' ) start [2025-02-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510263', 'tblTempUsageDetail_20' ) end [2025-02-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510263', 'tblTempVendorCDR_20' ) start [2025-02-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510263', 'tblTempVendorCDR_20' ) end [2025-02-19 12:01:21] Production.INFO: ProcessCDR(1,14510263,1,1,2) [2025-02-19 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510263', 'tblTempUsageDetail_20' ) start [2025-02-19 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510263', 'tblTempUsageDetail_20' ) end [2025-02-19 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:01:26] Production.INFO: ==8573== Releasing lock... [2025-02-19 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:01:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:02:05 [end_date_ymd] => 2025-02-19 12:02:05 [RateCDR] => 1 ) [2025-02-19 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:02:05' and `end` < '2025-02-19 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:02:18] Production.INFO: count ==5409 [2025-02-19 12:02:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:02:05 - End Time 2025-02-19 12:02:05 [2025-02-19 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510268', 'tblTempUsageDetail_20' ) start [2025-02-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510268', 'tblTempUsageDetail_20' ) end [2025-02-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510268', 'tblTempVendorCDR_20' ) start [2025-02-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510268', 'tblTempVendorCDR_20' ) end [2025-02-19 12:02:21] Production.INFO: ProcessCDR(1,14510268,1,1,2) [2025-02-19 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510268', 'tblTempUsageDetail_20' ) start [2025-02-19 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510268', 'tblTempUsageDetail_20' ) end [2025-02-19 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:02:26] Production.INFO: ==8647== Releasing lock... [2025-02-19 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:02:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:03:05 [end_date_ymd] => 2025-02-19 12:03:05 [RateCDR] => 1 ) [2025-02-19 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:03:05' and `end` < '2025-02-19 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:03:18] Production.INFO: count ==5425 [2025-02-19 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:03:05 - End Time 2025-02-19 12:03:05 [2025-02-19 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510270', 'tblTempUsageDetail_20' ) start [2025-02-19 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510270', 'tblTempUsageDetail_20' ) end [2025-02-19 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510270', 'tblTempVendorCDR_20' ) start [2025-02-19 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510270', 'tblTempVendorCDR_20' ) end [2025-02-19 12:03:21] Production.INFO: ProcessCDR(1,14510270,1,1,2) [2025-02-19 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510270', 'tblTempUsageDetail_20' ) start [2025-02-19 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510270', 'tblTempUsageDetail_20' ) end [2025-02-19 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:03:26] Production.INFO: ==8718== Releasing lock... [2025-02-19 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:03:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:04:05 [end_date_ymd] => 2025-02-19 12:04:05 [RateCDR] => 1 ) [2025-02-19 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:04:05' and `end` < '2025-02-19 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:04:18] Production.INFO: count ==5426 [2025-02-19 12:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:04:05 - End Time 2025-02-19 12:04:05 [2025-02-19 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510278', 'tblTempUsageDetail_20' ) start [2025-02-19 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510278', 'tblTempUsageDetail_20' ) end [2025-02-19 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510278', 'tblTempVendorCDR_20' ) start [2025-02-19 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510278', 'tblTempVendorCDR_20' ) end [2025-02-19 12:04:20] Production.INFO: ProcessCDR(1,14510278,1,1,2) [2025-02-19 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510278', 'tblTempUsageDetail_20' ) start [2025-02-19 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510278', 'tblTempUsageDetail_20' ) end [2025-02-19 12:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:04:25] Production.INFO: ==8793== Releasing lock... [2025-02-19 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:04:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:05:05 [end_date_ymd] => 2025-02-19 12:05:05 [RateCDR] => 1 ) [2025-02-19 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:05:05' and `end` < '2025-02-19 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:05:18] Production.INFO: count ==5413 [2025-02-19 12:05:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:05:05 - End Time 2025-02-19 12:05:05 [2025-02-19 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510283', 'tblTempUsageDetail_20' ) start [2025-02-19 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510283', 'tblTempUsageDetail_20' ) end [2025-02-19 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510283', 'tblTempVendorCDR_20' ) start [2025-02-19 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510283', 'tblTempVendorCDR_20' ) end [2025-02-19 12:05:21] Production.INFO: ProcessCDR(1,14510283,1,1,2) [2025-02-19 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510283', 'tblTempUsageDetail_20' ) start [2025-02-19 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510283', 'tblTempUsageDetail_20' ) end [2025-02-19 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:05:26] Production.INFO: ==8863== Releasing lock... [2025-02-19 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:05:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:06:05 [end_date_ymd] => 2025-02-19 12:06:05 [RateCDR] => 1 ) [2025-02-19 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:06:05' and `end` < '2025-02-19 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:06:18] Production.INFO: count ==5412 [2025-02-19 12:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:06:05 - End Time 2025-02-19 12:06:05 [2025-02-19 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510287', 'tblTempUsageDetail_20' ) start [2025-02-19 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510287', 'tblTempUsageDetail_20' ) end [2025-02-19 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510287', 'tblTempVendorCDR_20' ) start [2025-02-19 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510287', 'tblTempVendorCDR_20' ) end [2025-02-19 12:06:20] Production.INFO: ProcessCDR(1,14510287,1,1,2) [2025-02-19 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510287', 'tblTempUsageDetail_20' ) start [2025-02-19 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510287', 'tblTempUsageDetail_20' ) end [2025-02-19 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:06:25] Production.INFO: ==8939== Releasing lock... [2025-02-19 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:06:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:07:05 [end_date_ymd] => 2025-02-19 12:07:05 [RateCDR] => 1 ) [2025-02-19 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:07:05' and `end` < '2025-02-19 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:07:18] Production.INFO: count ==5396 [2025-02-19 12:07:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:07:05 - End Time 2025-02-19 12:07:05 [2025-02-19 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510293', 'tblTempUsageDetail_20' ) start [2025-02-19 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510293', 'tblTempUsageDetail_20' ) end [2025-02-19 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510293', 'tblTempVendorCDR_20' ) start [2025-02-19 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510293', 'tblTempVendorCDR_20' ) end [2025-02-19 12:07:21] Production.INFO: ProcessCDR(1,14510293,1,1,2) [2025-02-19 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510293', 'tblTempUsageDetail_20' ) start [2025-02-19 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510293', 'tblTempUsageDetail_20' ) end [2025-02-19 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:07:26] Production.INFO: ==9009== Releasing lock... [2025-02-19 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:07:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:08:06 [end_date_ymd] => 2025-02-19 12:08:06 [RateCDR] => 1 ) [2025-02-19 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:08:06' and `end` < '2025-02-19 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:08:19] Production.INFO: count ==5373 [2025-02-19 12:08:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:08:06 - End Time 2025-02-19 12:08:06 [2025-02-19 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510298', 'tblTempUsageDetail_20' ) start [2025-02-19 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510298', 'tblTempUsageDetail_20' ) end [2025-02-19 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510298', 'tblTempVendorCDR_20' ) start [2025-02-19 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510298', 'tblTempVendorCDR_20' ) end [2025-02-19 12:08:22] Production.INFO: ProcessCDR(1,14510298,1,1,2) [2025-02-19 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510298', 'tblTempUsageDetail_20' ) start [2025-02-19 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510298', 'tblTempUsageDetail_20' ) end [2025-02-19 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:08:26] Production.INFO: ==9082== Releasing lock... [2025-02-19 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:08:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:09:05 [end_date_ymd] => 2025-02-19 12:09:05 [RateCDR] => 1 ) [2025-02-19 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:09:05' and `end` < '2025-02-19 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:09:18] Production.INFO: count ==5351 [2025-02-19 12:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:09:05 - End Time 2025-02-19 12:09:05 [2025-02-19 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510303', 'tblTempUsageDetail_20' ) start [2025-02-19 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510303', 'tblTempUsageDetail_20' ) end [2025-02-19 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510303', 'tblTempVendorCDR_20' ) start [2025-02-19 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510303', 'tblTempVendorCDR_20' ) end [2025-02-19 12:09:20] Production.INFO: ProcessCDR(1,14510303,1,1,2) [2025-02-19 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510303', 'tblTempUsageDetail_20' ) start [2025-02-19 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510303', 'tblTempUsageDetail_20' ) end [2025-02-19 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:09:25] Production.INFO: ==9154== Releasing lock... [2025-02-19 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:09:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:10:06 [end_date_ymd] => 2025-02-19 12:10:06 [RateCDR] => 1 ) [2025-02-19 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:10:06' and `end` < '2025-02-19 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:10:19] Production.INFO: count ==5337 [2025-02-19 12:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 09:10:06 - End Time 2025-02-19 12:10:06 [2025-02-19 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510309', 'tblTempUsageDetail_20' ) start [2025-02-19 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510309', 'tblTempUsageDetail_20' ) end [2025-02-19 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510309', 'tblTempVendorCDR_20' ) start [2025-02-19 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510309', 'tblTempVendorCDR_20' ) end [2025-02-19 12:10:22] Production.INFO: ProcessCDR(1,14510309,1,1,2) [2025-02-19 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510309', 'tblTempUsageDetail_20' ) start [2025-02-19 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510309', 'tblTempUsageDetail_20' ) end [2025-02-19 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:10:27] Production.INFO: ==9227== Releasing lock... [2025-02-19 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:10:27] Production.INFO: 68 MB #Memory Used# [2025-02-19 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:11:05 [end_date_ymd] => 2025-02-19 12:11:05 [RateCDR] => 1 ) [2025-02-19 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:11:05' and `end` < '2025-02-19 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:11:18] Production.INFO: count ==5409 [2025-02-19 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:11:05 - End Time 2025-02-19 12:11:05 [2025-02-19 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510314', 'tblTempUsageDetail_20' ) start [2025-02-19 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510314', 'tblTempUsageDetail_20' ) end [2025-02-19 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510314', 'tblTempVendorCDR_20' ) start [2025-02-19 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510314', 'tblTempVendorCDR_20' ) end [2025-02-19 12:11:20] Production.INFO: ProcessCDR(1,14510314,1,1,2) [2025-02-19 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510314', 'tblTempUsageDetail_20' ) start [2025-02-19 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510314', 'tblTempUsageDetail_20' ) end [2025-02-19 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:11:26] Production.INFO: ==9300== Releasing lock... [2025-02-19 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:11:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:12:06 [end_date_ymd] => 2025-02-19 12:12:06 [RateCDR] => 1 ) [2025-02-19 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:12:06' and `end` < '2025-02-19 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:12:19] Production.INFO: count ==5391 [2025-02-19 12:12:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:12:06 - End Time 2025-02-19 12:12:06 [2025-02-19 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510319', 'tblTempUsageDetail_20' ) start [2025-02-19 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510319', 'tblTempUsageDetail_20' ) end [2025-02-19 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510319', 'tblTempVendorCDR_20' ) start [2025-02-19 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510319', 'tblTempVendorCDR_20' ) end [2025-02-19 12:12:22] Production.INFO: ProcessCDR(1,14510319,1,1,2) [2025-02-19 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510319', 'tblTempUsageDetail_20' ) start [2025-02-19 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510319', 'tblTempUsageDetail_20' ) end [2025-02-19 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:12:27] Production.INFO: ==9370== Releasing lock... [2025-02-19 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:12:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:13:05 [end_date_ymd] => 2025-02-19 12:13:05 [RateCDR] => 1 ) [2025-02-19 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:13:05' and `end` < '2025-02-19 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:13:18] Production.INFO: count ==5398 [2025-02-19 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:13:05 - End Time 2025-02-19 12:13:05 [2025-02-19 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510324', 'tblTempUsageDetail_20' ) start [2025-02-19 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510324', 'tblTempUsageDetail_20' ) end [2025-02-19 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510324', 'tblTempVendorCDR_20' ) start [2025-02-19 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510324', 'tblTempVendorCDR_20' ) end [2025-02-19 12:13:21] Production.INFO: ProcessCDR(1,14510324,1,1,2) [2025-02-19 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510324', 'tblTempUsageDetail_20' ) start [2025-02-19 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510324', 'tblTempUsageDetail_20' ) end [2025-02-19 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:13:26] Production.INFO: ==9440== Releasing lock... [2025-02-19 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:13:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:14:06 [end_date_ymd] => 2025-02-19 12:14:06 [RateCDR] => 1 ) [2025-02-19 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:14:06' and `end` < '2025-02-19 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:14:18] Production.INFO: count ==5393 [2025-02-19 12:14:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:14:06 - End Time 2025-02-19 12:14:06 [2025-02-19 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510329', 'tblTempUsageDetail_20' ) start [2025-02-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510329', 'tblTempUsageDetail_20' ) end [2025-02-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510329', 'tblTempVendorCDR_20' ) start [2025-02-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510329', 'tblTempVendorCDR_20' ) end [2025-02-19 12:14:21] Production.INFO: ProcessCDR(1,14510329,1,1,2) [2025-02-19 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510329', 'tblTempUsageDetail_20' ) start [2025-02-19 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510329', 'tblTempUsageDetail_20' ) end [2025-02-19 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:14:26] Production.INFO: ==9512== Releasing lock... [2025-02-19 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:14:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:15:05 [end_date_ymd] => 2025-02-19 12:15:05 [RateCDR] => 1 ) [2025-02-19 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:15:05' and `end` < '2025-02-19 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:15:18] Production.INFO: count ==5387 [2025-02-19 12:15:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:15:05 - End Time 2025-02-19 12:15:05 [2025-02-19 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510334', 'tblTempUsageDetail_20' ) start [2025-02-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510334', 'tblTempUsageDetail_20' ) end [2025-02-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510334', 'tblTempVendorCDR_20' ) start [2025-02-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510334', 'tblTempVendorCDR_20' ) end [2025-02-19 12:15:21] Production.INFO: ProcessCDR(1,14510334,1,1,2) [2025-02-19 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510334', 'tblTempUsageDetail_20' ) start [2025-02-19 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510334', 'tblTempUsageDetail_20' ) end [2025-02-19 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:15:26] Production.INFO: ==9591== Releasing lock... [2025-02-19 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:15:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:16:06 [end_date_ymd] => 2025-02-19 12:16:06 [RateCDR] => 1 ) [2025-02-19 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:16:06' and `end` < '2025-02-19 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:16:19] Production.INFO: count ==5400 [2025-02-19 12:16:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:16:06 - End Time 2025-02-19 12:16:06 [2025-02-19 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510339', 'tblTempUsageDetail_20' ) start [2025-02-19 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510339', 'tblTempUsageDetail_20' ) end [2025-02-19 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510339', 'tblTempVendorCDR_20' ) start [2025-02-19 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510339', 'tblTempVendorCDR_20' ) end [2025-02-19 12:16:21] Production.INFO: ProcessCDR(1,14510339,1,1,2) [2025-02-19 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510339', 'tblTempUsageDetail_20' ) start [2025-02-19 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510339', 'tblTempUsageDetail_20' ) end [2025-02-19 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:16:27] Production.INFO: ==9665== Releasing lock... [2025-02-19 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:17:06 [end_date_ymd] => 2025-02-19 12:17:06 [RateCDR] => 1 ) [2025-02-19 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:17:06' and `end` < '2025-02-19 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:17:18] Production.INFO: count ==5418 [2025-02-19 12:17:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:17:06 - End Time 2025-02-19 12:17:06 [2025-02-19 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510344', 'tblTempUsageDetail_20' ) start [2025-02-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510344', 'tblTempUsageDetail_20' ) end [2025-02-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510344', 'tblTempVendorCDR_20' ) start [2025-02-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510344', 'tblTempVendorCDR_20' ) end [2025-02-19 12:17:21] Production.INFO: ProcessCDR(1,14510344,1,1,2) [2025-02-19 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510344', 'tblTempUsageDetail_20' ) start [2025-02-19 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510344', 'tblTempUsageDetail_20' ) end [2025-02-19 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:17:27] Production.INFO: ==9777== Releasing lock... [2025-02-19 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:17:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:18:05 [end_date_ymd] => 2025-02-19 12:18:05 [RateCDR] => 1 ) [2025-02-19 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:18:05' and `end` < '2025-02-19 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:18:18] Production.INFO: count ==5481 [2025-02-19 12:18:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:18:05 - End Time 2025-02-19 12:18:05 [2025-02-19 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510349', 'tblTempUsageDetail_20' ) start [2025-02-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510349', 'tblTempUsageDetail_20' ) end [2025-02-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510349', 'tblTempVendorCDR_20' ) start [2025-02-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510349', 'tblTempVendorCDR_20' ) end [2025-02-19 12:18:21] Production.INFO: ProcessCDR(1,14510349,1,1,2) [2025-02-19 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510349', 'tblTempUsageDetail_20' ) start [2025-02-19 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510349', 'tblTempUsageDetail_20' ) end [2025-02-19 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:18:26] Production.INFO: ==9863== Releasing lock... [2025-02-19 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:18:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:19:05 [end_date_ymd] => 2025-02-19 12:19:05 [RateCDR] => 1 ) [2025-02-19 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:19:05' and `end` < '2025-02-19 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:19:18] Production.INFO: count ==5484 [2025-02-19 12:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:19:05 - End Time 2025-02-19 12:19:05 [2025-02-19 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510354', 'tblTempUsageDetail_20' ) start [2025-02-19 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510354', 'tblTempUsageDetail_20' ) end [2025-02-19 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510354', 'tblTempVendorCDR_20' ) start [2025-02-19 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510354', 'tblTempVendorCDR_20' ) end [2025-02-19 12:19:20] Production.INFO: ProcessCDR(1,14510354,1,1,2) [2025-02-19 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510354', 'tblTempUsageDetail_20' ) start [2025-02-19 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510354', 'tblTempUsageDetail_20' ) end [2025-02-19 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:19:25] Production.INFO: ==9933== Releasing lock... [2025-02-19 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:19:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:20:06 [end_date_ymd] => 2025-02-19 12:20:06 [RateCDR] => 1 ) [2025-02-19 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:20:06' and `end` < '2025-02-19 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:20:19] Production.INFO: count ==5490 [2025-02-19 12:20:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:20:06 - End Time 2025-02-19 12:20:06 [2025-02-19 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510360', 'tblTempUsageDetail_20' ) start [2025-02-19 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510360', 'tblTempUsageDetail_20' ) end [2025-02-19 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510360', 'tblTempVendorCDR_20' ) start [2025-02-19 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510360', 'tblTempVendorCDR_20' ) end [2025-02-19 12:20:21] Production.INFO: ProcessCDR(1,14510360,1,1,2) [2025-02-19 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510360', 'tblTempUsageDetail_20' ) start [2025-02-19 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510360', 'tblTempUsageDetail_20' ) end [2025-02-19 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:20:26] Production.INFO: ==10006== Releasing lock... [2025-02-19 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:20:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:21:05 [end_date_ymd] => 2025-02-19 12:21:05 [RateCDR] => 1 ) [2025-02-19 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:21:05' and `end` < '2025-02-19 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:21:17] Production.INFO: count ==5453 [2025-02-19 12:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:21:05 - End Time 2025-02-19 12:21:05 [2025-02-19 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510365', 'tblTempUsageDetail_20' ) start [2025-02-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510365', 'tblTempUsageDetail_20' ) end [2025-02-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510365', 'tblTempVendorCDR_20' ) start [2025-02-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510365', 'tblTempVendorCDR_20' ) end [2025-02-19 12:21:20] Production.INFO: ProcessCDR(1,14510365,1,1,2) [2025-02-19 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510365', 'tblTempUsageDetail_20' ) start [2025-02-19 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510365', 'tblTempUsageDetail_20' ) end [2025-02-19 12:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:21:25] Production.INFO: ==10078== Releasing lock... [2025-02-19 12:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:21:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:22:05 [end_date_ymd] => 2025-02-19 12:22:05 [RateCDR] => 1 ) [2025-02-19 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:22:05' and `end` < '2025-02-19 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:22:18] Production.INFO: count ==5433 [2025-02-19 12:22:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:22:05 - End Time 2025-02-19 12:22:05 [2025-02-19 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510370', 'tblTempUsageDetail_20' ) start [2025-02-19 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510370', 'tblTempUsageDetail_20' ) end [2025-02-19 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510370', 'tblTempVendorCDR_20' ) start [2025-02-19 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510370', 'tblTempVendorCDR_20' ) end [2025-02-19 12:22:20] Production.INFO: ProcessCDR(1,14510370,1,1,2) [2025-02-19 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510370', 'tblTempUsageDetail_20' ) start [2025-02-19 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510370', 'tblTempUsageDetail_20' ) end [2025-02-19 12:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:22:25] Production.INFO: ==10150== Releasing lock... [2025-02-19 12:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:22:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:23:05 [end_date_ymd] => 2025-02-19 12:23:05 [RateCDR] => 1 ) [2025-02-19 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:23:05' and `end` < '2025-02-19 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:23:18] Production.INFO: count ==5436 [2025-02-19 12:23:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:23:05 - End Time 2025-02-19 12:23:05 [2025-02-19 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510375', 'tblTempUsageDetail_20' ) start [2025-02-19 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510375', 'tblTempUsageDetail_20' ) end [2025-02-19 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510375', 'tblTempVendorCDR_20' ) start [2025-02-19 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510375', 'tblTempVendorCDR_20' ) end [2025-02-19 12:23:21] Production.INFO: ProcessCDR(1,14510375,1,1,2) [2025-02-19 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510375', 'tblTempUsageDetail_20' ) start [2025-02-19 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510375', 'tblTempUsageDetail_20' ) end [2025-02-19 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:23:26] Production.INFO: ==10221== Releasing lock... [2025-02-19 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:23:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:24:06 [end_date_ymd] => 2025-02-19 12:24:06 [RateCDR] => 1 ) [2025-02-19 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:24:06' and `end` < '2025-02-19 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:24:18] Production.INFO: count ==5444 [2025-02-19 12:24:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:24:06 - End Time 2025-02-19 12:24:06 [2025-02-19 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510380', 'tblTempUsageDetail_20' ) start [2025-02-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510380', 'tblTempUsageDetail_20' ) end [2025-02-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510380', 'tblTempVendorCDR_20' ) start [2025-02-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510380', 'tblTempVendorCDR_20' ) end [2025-02-19 12:24:21] Production.INFO: ProcessCDR(1,14510380,1,1,2) [2025-02-19 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510380', 'tblTempUsageDetail_20' ) start [2025-02-19 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510380', 'tblTempUsageDetail_20' ) end [2025-02-19 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:24:26] Production.INFO: ==10294== Releasing lock... [2025-02-19 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:24:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:25:05 [end_date_ymd] => 2025-02-19 12:25:05 [RateCDR] => 1 ) [2025-02-19 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:25:05' and `end` < '2025-02-19 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:25:18] Production.INFO: count ==5452 [2025-02-19 12:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:25:05 - End Time 2025-02-19 12:25:05 [2025-02-19 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510385', 'tblTempUsageDetail_20' ) start [2025-02-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510385', 'tblTempUsageDetail_20' ) end [2025-02-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510385', 'tblTempVendorCDR_20' ) start [2025-02-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510385', 'tblTempVendorCDR_20' ) end [2025-02-19 12:25:20] Production.INFO: ProcessCDR(1,14510385,1,1,2) [2025-02-19 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510385', 'tblTempUsageDetail_20' ) start [2025-02-19 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510385', 'tblTempUsageDetail_20' ) end [2025-02-19 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:25:25] Production.INFO: ==10369== Releasing lock... [2025-02-19 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:25:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:26:05 [end_date_ymd] => 2025-02-19 12:26:05 [RateCDR] => 1 ) [2025-02-19 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:26:05' and `end` < '2025-02-19 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:26:18] Production.INFO: count ==5427 [2025-02-19 12:26:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:26:05 - End Time 2025-02-19 12:26:05 [2025-02-19 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510390', 'tblTempUsageDetail_20' ) start [2025-02-19 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510390', 'tblTempUsageDetail_20' ) end [2025-02-19 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510390', 'tblTempVendorCDR_20' ) start [2025-02-19 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510390', 'tblTempVendorCDR_20' ) end [2025-02-19 12:26:21] Production.INFO: ProcessCDR(1,14510390,1,1,2) [2025-02-19 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510390', 'tblTempUsageDetail_20' ) start [2025-02-19 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510390', 'tblTempUsageDetail_20' ) end [2025-02-19 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:26:26] Production.INFO: ==10441== Releasing lock... [2025-02-19 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:26:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:27:06 [end_date_ymd] => 2025-02-19 12:27:06 [RateCDR] => 1 ) [2025-02-19 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:27:06' and `end` < '2025-02-19 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:27:18] Production.INFO: count ==5439 [2025-02-19 12:27:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:27:06 - End Time 2025-02-19 12:27:06 [2025-02-19 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510395', 'tblTempUsageDetail_20' ) start [2025-02-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510395', 'tblTempUsageDetail_20' ) end [2025-02-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510395', 'tblTempVendorCDR_20' ) start [2025-02-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510395', 'tblTempVendorCDR_20' ) end [2025-02-19 12:27:21] Production.INFO: ProcessCDR(1,14510395,1,1,2) [2025-02-19 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510395', 'tblTempUsageDetail_20' ) start [2025-02-19 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510395', 'tblTempUsageDetail_20' ) end [2025-02-19 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:27:26] Production.INFO: ==10512== Releasing lock... [2025-02-19 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:27:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:28:06 [end_date_ymd] => 2025-02-19 12:28:06 [RateCDR] => 1 ) [2025-02-19 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:28:06' and `end` < '2025-02-19 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:28:19] Production.INFO: count ==5445 [2025-02-19 12:28:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:28:06 - End Time 2025-02-19 12:28:06 [2025-02-19 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510400', 'tblTempUsageDetail_20' ) start [2025-02-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510400', 'tblTempUsageDetail_20' ) end [2025-02-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510400', 'tblTempVendorCDR_20' ) start [2025-02-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510400', 'tblTempVendorCDR_20' ) end [2025-02-19 12:28:21] Production.INFO: ProcessCDR(1,14510400,1,1,2) [2025-02-19 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510400', 'tblTempUsageDetail_20' ) start [2025-02-19 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510400', 'tblTempUsageDetail_20' ) end [2025-02-19 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:28:26] Production.INFO: ==10585== Releasing lock... [2025-02-19 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:28:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:29:05 [end_date_ymd] => 2025-02-19 12:29:05 [RateCDR] => 1 ) [2025-02-19 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:29:05' and `end` < '2025-02-19 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:29:18] Production.INFO: count ==5429 [2025-02-19 12:29:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:29:05 - End Time 2025-02-19 12:29:05 [2025-02-19 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510405', 'tblTempUsageDetail_20' ) start [2025-02-19 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510405', 'tblTempUsageDetail_20' ) end [2025-02-19 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510405', 'tblTempVendorCDR_20' ) start [2025-02-19 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510405', 'tblTempVendorCDR_20' ) end [2025-02-19 12:29:20] Production.INFO: ProcessCDR(1,14510405,1,1,2) [2025-02-19 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510405', 'tblTempUsageDetail_20' ) start [2025-02-19 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510405', 'tblTempUsageDetail_20' ) end [2025-02-19 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:29:26] Production.INFO: ==10661== Releasing lock... [2025-02-19 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:29:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:30:06 [end_date_ymd] => 2025-02-19 12:30:06 [RateCDR] => 1 ) [2025-02-19 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:30:06' and `end` < '2025-02-19 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:30:18] Production.INFO: count ==5415 [2025-02-19 12:30:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:30:06 - End Time 2025-02-19 12:30:06 [2025-02-19 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510411', 'tblTempUsageDetail_20' ) start [2025-02-19 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510411', 'tblTempUsageDetail_20' ) end [2025-02-19 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510411', 'tblTempVendorCDR_20' ) start [2025-02-19 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510411', 'tblTempVendorCDR_20' ) end [2025-02-19 12:30:21] Production.INFO: ProcessCDR(1,14510411,1,1,2) [2025-02-19 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510411', 'tblTempUsageDetail_20' ) start [2025-02-19 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510411', 'tblTempUsageDetail_20' ) end [2025-02-19 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:30:26] Production.INFO: ==10735== Releasing lock... [2025-02-19 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:30:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:31:06 [end_date_ymd] => 2025-02-19 12:31:06 [RateCDR] => 1 ) [2025-02-19 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:31:06' and `end` < '2025-02-19 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:31:18] Production.INFO: count ==5431 [2025-02-19 12:31:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:31:06 - End Time 2025-02-19 12:31:06 [2025-02-19 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510416', 'tblTempUsageDetail_20' ) start [2025-02-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510416', 'tblTempUsageDetail_20' ) end [2025-02-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510416', 'tblTempVendorCDR_20' ) start [2025-02-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510416', 'tblTempVendorCDR_20' ) end [2025-02-19 12:31:21] Production.INFO: ProcessCDR(1,14510416,1,1,2) [2025-02-19 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510416', 'tblTempUsageDetail_20' ) start [2025-02-19 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510416', 'tblTempUsageDetail_20' ) end [2025-02-19 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:31:25] Production.INFO: ==10808== Releasing lock... [2025-02-19 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:31:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:32:06 [end_date_ymd] => 2025-02-19 12:32:06 [RateCDR] => 1 ) [2025-02-19 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:32:06' and `end` < '2025-02-19 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:32:18] Production.INFO: count ==5431 [2025-02-19 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:32:06 - End Time 2025-02-19 12:32:06 [2025-02-19 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510421', 'tblTempUsageDetail_20' ) start [2025-02-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510421', 'tblTempUsageDetail_20' ) end [2025-02-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510421', 'tblTempVendorCDR_20' ) start [2025-02-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510421', 'tblTempVendorCDR_20' ) end [2025-02-19 12:32:21] Production.INFO: ProcessCDR(1,14510421,1,1,2) [2025-02-19 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510421', 'tblTempUsageDetail_20' ) start [2025-02-19 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510421', 'tblTempUsageDetail_20' ) end [2025-02-19 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:32:26] Production.INFO: ==10917== Releasing lock... [2025-02-19 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:32:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:33:06 [end_date_ymd] => 2025-02-19 12:33:06 [RateCDR] => 1 ) [2025-02-19 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:33:06' and `end` < '2025-02-19 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:33:19] Production.INFO: count ==5459 [2025-02-19 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:33:06 - End Time 2025-02-19 12:33:06 [2025-02-19 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510426', 'tblTempUsageDetail_20' ) start [2025-02-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510426', 'tblTempUsageDetail_20' ) end [2025-02-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510426', 'tblTempVendorCDR_20' ) start [2025-02-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510426', 'tblTempVendorCDR_20' ) end [2025-02-19 12:33:22] Production.INFO: ProcessCDR(1,14510426,1,1,2) [2025-02-19 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510426', 'tblTempUsageDetail_20' ) start [2025-02-19 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510426', 'tblTempUsageDetail_20' ) end [2025-02-19 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:33:27] Production.INFO: ==10989== Releasing lock... [2025-02-19 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:33:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:34:05 [end_date_ymd] => 2025-02-19 12:34:05 [RateCDR] => 1 ) [2025-02-19 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:34:05' and `end` < '2025-02-19 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:34:18] Production.INFO: count ==5475 [2025-02-19 12:34:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:34:05 - End Time 2025-02-19 12:34:05 [2025-02-19 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510431', 'tblTempUsageDetail_20' ) start [2025-02-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510431', 'tblTempUsageDetail_20' ) end [2025-02-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510431', 'tblTempVendorCDR_20' ) start [2025-02-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510431', 'tblTempVendorCDR_20' ) end [2025-02-19 12:34:20] Production.INFO: ProcessCDR(1,14510431,1,1,2) [2025-02-19 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510431', 'tblTempUsageDetail_20' ) start [2025-02-19 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510431', 'tblTempUsageDetail_20' ) end [2025-02-19 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:34:25] Production.INFO: ==11061== Releasing lock... [2025-02-19 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:34:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:35:06 [end_date_ymd] => 2025-02-19 12:35:06 [RateCDR] => 1 ) [2025-02-19 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:35:06' and `end` < '2025-02-19 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:35:18] Production.INFO: count ==5475 [2025-02-19 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:35:06 - End Time 2025-02-19 12:35:06 [2025-02-19 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510436', 'tblTempUsageDetail_20' ) start [2025-02-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510436', 'tblTempUsageDetail_20' ) end [2025-02-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510436', 'tblTempVendorCDR_20' ) start [2025-02-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510436', 'tblTempVendorCDR_20' ) end [2025-02-19 12:35:21] Production.INFO: ProcessCDR(1,14510436,1,1,2) [2025-02-19 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510436', 'tblTempUsageDetail_20' ) start [2025-02-19 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510436', 'tblTempUsageDetail_20' ) end [2025-02-19 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:35:26] Production.INFO: ==11133== Releasing lock... [2025-02-19 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:35:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:36:05 [end_date_ymd] => 2025-02-19 12:36:05 [RateCDR] => 1 ) [2025-02-19 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:36:05' and `end` < '2025-02-19 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:36:17] Production.INFO: count ==5491 [2025-02-19 12:36:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:36:05 - End Time 2025-02-19 12:36:05 [2025-02-19 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510441', 'tblTempUsageDetail_20' ) start [2025-02-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510441', 'tblTempUsageDetail_20' ) end [2025-02-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510441', 'tblTempVendorCDR_20' ) start [2025-02-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510441', 'tblTempVendorCDR_20' ) end [2025-02-19 12:36:20] Production.INFO: ProcessCDR(1,14510441,1,1,2) [2025-02-19 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510441', 'tblTempUsageDetail_20' ) start [2025-02-19 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510441', 'tblTempUsageDetail_20' ) end [2025-02-19 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:36:25] Production.INFO: ==11203== Releasing lock... [2025-02-19 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:36:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:37:05 [end_date_ymd] => 2025-02-19 12:37:05 [RateCDR] => 1 ) [2025-02-19 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:37:05' and `end` < '2025-02-19 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:37:18] Production.INFO: count ==5502 [2025-02-19 12:37:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:37:05 - End Time 2025-02-19 12:37:05 [2025-02-19 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510446', 'tblTempUsageDetail_20' ) start [2025-02-19 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510446', 'tblTempUsageDetail_20' ) end [2025-02-19 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510446', 'tblTempVendorCDR_20' ) start [2025-02-19 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510446', 'tblTempVendorCDR_20' ) end [2025-02-19 12:37:21] Production.INFO: ProcessCDR(1,14510446,1,1,2) [2025-02-19 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510446', 'tblTempUsageDetail_20' ) start [2025-02-19 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510446', 'tblTempUsageDetail_20' ) end [2025-02-19 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:37:26] Production.INFO: ==11273== Releasing lock... [2025-02-19 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:37:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:38:05 [end_date_ymd] => 2025-02-19 12:38:05 [RateCDR] => 1 ) [2025-02-19 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:38:05' and `end` < '2025-02-19 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:38:17] Production.INFO: count ==5491 [2025-02-19 12:38:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:38:05 - End Time 2025-02-19 12:38:05 [2025-02-19 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510451', 'tblTempUsageDetail_20' ) start [2025-02-19 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510451', 'tblTempUsageDetail_20' ) end [2025-02-19 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510451', 'tblTempVendorCDR_20' ) start [2025-02-19 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510451', 'tblTempVendorCDR_20' ) end [2025-02-19 12:38:20] Production.INFO: ProcessCDR(1,14510451,1,1,2) [2025-02-19 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510451', 'tblTempUsageDetail_20' ) start [2025-02-19 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510451', 'tblTempUsageDetail_20' ) end [2025-02-19 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:38:25] Production.INFO: ==11344== Releasing lock... [2025-02-19 12:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:38:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:39:06 [end_date_ymd] => 2025-02-19 12:39:06 [RateCDR] => 1 ) [2025-02-19 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:39:06' and `end` < '2025-02-19 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:39:19] Production.INFO: count ==5485 [2025-02-19 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:39:06 - End Time 2025-02-19 12:39:06 [2025-02-19 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510456', 'tblTempUsageDetail_20' ) start [2025-02-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510456', 'tblTempUsageDetail_20' ) end [2025-02-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510456', 'tblTempVendorCDR_20' ) start [2025-02-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510456', 'tblTempVendorCDR_20' ) end [2025-02-19 12:39:21] Production.INFO: ProcessCDR(1,14510456,1,1,2) [2025-02-19 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510456', 'tblTempUsageDetail_20' ) start [2025-02-19 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510456', 'tblTempUsageDetail_20' ) end [2025-02-19 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:39:26] Production.INFO: ==11415== Releasing lock... [2025-02-19 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:39:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:40:06 [end_date_ymd] => 2025-02-19 12:40:06 [RateCDR] => 1 ) [2025-02-19 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:40:06' and `end` < '2025-02-19 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:40:19] Production.INFO: count ==5479 [2025-02-19 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:40:06 - End Time 2025-02-19 12:40:06 [2025-02-19 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510462', 'tblTempUsageDetail_20' ) start [2025-02-19 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510462', 'tblTempUsageDetail_20' ) end [2025-02-19 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510462', 'tblTempVendorCDR_20' ) start [2025-02-19 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510462', 'tblTempVendorCDR_20' ) end [2025-02-19 12:40:21] Production.INFO: ProcessCDR(1,14510462,1,1,2) [2025-02-19 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510462', 'tblTempUsageDetail_20' ) start [2025-02-19 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510462', 'tblTempUsageDetail_20' ) end [2025-02-19 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:40:26] Production.INFO: ==11489== Releasing lock... [2025-02-19 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:40:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:41:06 [end_date_ymd] => 2025-02-19 12:41:06 [RateCDR] => 1 ) [2025-02-19 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:41:06' and `end` < '2025-02-19 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:41:18] Production.INFO: count ==5470 [2025-02-19 12:41:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:41:06 - End Time 2025-02-19 12:41:06 [2025-02-19 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510467', 'tblTempUsageDetail_20' ) start [2025-02-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510467', 'tblTempUsageDetail_20' ) end [2025-02-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510467', 'tblTempVendorCDR_20' ) start [2025-02-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510467', 'tblTempVendorCDR_20' ) end [2025-02-19 12:41:21] Production.INFO: ProcessCDR(1,14510467,1,1,2) [2025-02-19 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510467', 'tblTempUsageDetail_20' ) start [2025-02-19 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510467', 'tblTempUsageDetail_20' ) end [2025-02-19 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:41:26] Production.INFO: ==11566== Releasing lock... [2025-02-19 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:41:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:42:05 [end_date_ymd] => 2025-02-19 12:42:05 [RateCDR] => 1 ) [2025-02-19 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:42:05' and `end` < '2025-02-19 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:42:18] Production.INFO: count ==5456 [2025-02-19 12:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:42:05 - End Time 2025-02-19 12:42:05 [2025-02-19 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510472', 'tblTempUsageDetail_20' ) start [2025-02-19 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510472', 'tblTempUsageDetail_20' ) end [2025-02-19 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510472', 'tblTempVendorCDR_20' ) start [2025-02-19 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510472', 'tblTempVendorCDR_20' ) end [2025-02-19 12:42:20] Production.INFO: ProcessCDR(1,14510472,1,1,2) [2025-02-19 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510472', 'tblTempUsageDetail_20' ) start [2025-02-19 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510472', 'tblTempUsageDetail_20' ) end [2025-02-19 12:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:42:25] Production.INFO: ==11636== Releasing lock... [2025-02-19 12:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:42:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:43:05 [end_date_ymd] => 2025-02-19 12:43:05 [RateCDR] => 1 ) [2025-02-19 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:43:05' and `end` < '2025-02-19 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:43:18] Production.INFO: count ==5475 [2025-02-19 12:43:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:43:05 - End Time 2025-02-19 12:43:05 [2025-02-19 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510477', 'tblTempUsageDetail_20' ) start [2025-02-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510477', 'tblTempUsageDetail_20' ) end [2025-02-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510477', 'tblTempVendorCDR_20' ) start [2025-02-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510477', 'tblTempVendorCDR_20' ) end [2025-02-19 12:43:21] Production.INFO: ProcessCDR(1,14510477,1,1,2) [2025-02-19 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510477', 'tblTempUsageDetail_20' ) start [2025-02-19 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510477', 'tblTempUsageDetail_20' ) end [2025-02-19 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:43:26] Production.INFO: ==11706== Releasing lock... [2025-02-19 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:43:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:44:05 [end_date_ymd] => 2025-02-19 12:44:05 [RateCDR] => 1 ) [2025-02-19 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:44:05' and `end` < '2025-02-19 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:44:17] Production.INFO: count ==5455 [2025-02-19 12:44:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:44:05 - End Time 2025-02-19 12:44:05 [2025-02-19 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510482', 'tblTempUsageDetail_20' ) start [2025-02-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510482', 'tblTempUsageDetail_20' ) end [2025-02-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510482', 'tblTempVendorCDR_20' ) start [2025-02-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510482', 'tblTempVendorCDR_20' ) end [2025-02-19 12:44:20] Production.INFO: ProcessCDR(1,14510482,1,1,2) [2025-02-19 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510482', 'tblTempUsageDetail_20' ) start [2025-02-19 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510482', 'tblTempUsageDetail_20' ) end [2025-02-19 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:44:25] Production.INFO: ==11776== Releasing lock... [2025-02-19 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:44:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:45:05 [end_date_ymd] => 2025-02-19 12:45:05 [RateCDR] => 1 ) [2025-02-19 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:45:05' and `end` < '2025-02-19 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:45:18] Production.INFO: count ==5463 [2025-02-19 12:45:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:45:05 - End Time 2025-02-19 12:45:05 [2025-02-19 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510487', 'tblTempUsageDetail_20' ) start [2025-02-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510487', 'tblTempUsageDetail_20' ) end [2025-02-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510487', 'tblTempVendorCDR_20' ) start [2025-02-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510487', 'tblTempVendorCDR_20' ) end [2025-02-19 12:45:21] Production.INFO: ProcessCDR(1,14510487,1,1,2) [2025-02-19 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510487', 'tblTempUsageDetail_20' ) start [2025-02-19 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510487', 'tblTempUsageDetail_20' ) end [2025-02-19 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:45:25] Production.INFO: ==11857== Releasing lock... [2025-02-19 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:45:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:46:05 [end_date_ymd] => 2025-02-19 12:46:05 [RateCDR] => 1 ) [2025-02-19 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:46:05' and `end` < '2025-02-19 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:46:18] Production.INFO: count ==5471 [2025-02-19 12:46:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:46:05 - End Time 2025-02-19 12:46:05 [2025-02-19 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510492', 'tblTempUsageDetail_20' ) start [2025-02-19 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510492', 'tblTempUsageDetail_20' ) end [2025-02-19 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510492', 'tblTempVendorCDR_20' ) start [2025-02-19 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510492', 'tblTempVendorCDR_20' ) end [2025-02-19 12:46:20] Production.INFO: ProcessCDR(1,14510492,1,1,2) [2025-02-19 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510492', 'tblTempUsageDetail_20' ) start [2025-02-19 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510492', 'tblTempUsageDetail_20' ) end [2025-02-19 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:46:26] Production.INFO: ==11928== Releasing lock... [2025-02-19 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:46:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:47:05 [end_date_ymd] => 2025-02-19 12:47:05 [RateCDR] => 1 ) [2025-02-19 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:47:05' and `end` < '2025-02-19 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:47:18] Production.INFO: count ==5477 [2025-02-19 12:47:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:47:05 - End Time 2025-02-19 12:47:05 [2025-02-19 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510497', 'tblTempUsageDetail_20' ) start [2025-02-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510497', 'tblTempUsageDetail_20' ) end [2025-02-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510497', 'tblTempVendorCDR_20' ) start [2025-02-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510497', 'tblTempVendorCDR_20' ) end [2025-02-19 12:47:21] Production.INFO: ProcessCDR(1,14510497,1,1,2) [2025-02-19 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510497', 'tblTempUsageDetail_20' ) start [2025-02-19 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510497', 'tblTempUsageDetail_20' ) end [2025-02-19 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:47:26] Production.INFO: ==12002== Releasing lock... [2025-02-19 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:47:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:48:05 [end_date_ymd] => 2025-02-19 12:48:05 [RateCDR] => 1 ) [2025-02-19 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:48:05' and `end` < '2025-02-19 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:48:18] Production.INFO: count ==5473 [2025-02-19 12:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:48:05 - End Time 2025-02-19 12:48:05 [2025-02-19 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510502', 'tblTempUsageDetail_20' ) start [2025-02-19 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510502', 'tblTempUsageDetail_20' ) end [2025-02-19 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510502', 'tblTempVendorCDR_20' ) start [2025-02-19 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510502', 'tblTempVendorCDR_20' ) end [2025-02-19 12:48:20] Production.INFO: ProcessCDR(1,14510502,1,1,2) [2025-02-19 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510502', 'tblTempUsageDetail_20' ) start [2025-02-19 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510502', 'tblTempUsageDetail_20' ) end [2025-02-19 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:48:25] Production.INFO: ==12113== Releasing lock... [2025-02-19 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:48:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:49:05 [end_date_ymd] => 2025-02-19 12:49:05 [RateCDR] => 1 ) [2025-02-19 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:49:05' and `end` < '2025-02-19 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:49:18] Production.INFO: count ==5486 [2025-02-19 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:49:05 - End Time 2025-02-19 12:49:05 [2025-02-19 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510507', 'tblTempUsageDetail_20' ) start [2025-02-19 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510507', 'tblTempUsageDetail_20' ) end [2025-02-19 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510507', 'tblTempVendorCDR_20' ) start [2025-02-19 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510507', 'tblTempVendorCDR_20' ) end [2025-02-19 12:49:20] Production.INFO: ProcessCDR(1,14510507,1,1,2) [2025-02-19 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510507', 'tblTempUsageDetail_20' ) start [2025-02-19 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510507', 'tblTempUsageDetail_20' ) end [2025-02-19 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:49:25] Production.INFO: ==12187== Releasing lock... [2025-02-19 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:49:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:50:05 [end_date_ymd] => 2025-02-19 12:50:05 [RateCDR] => 1 ) [2025-02-19 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:50:05' and `end` < '2025-02-19 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:50:18] Production.INFO: count ==5485 [2025-02-19 12:50:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:50:05 - End Time 2025-02-19 12:50:05 [2025-02-19 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510513', 'tblTempUsageDetail_20' ) start [2025-02-19 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510513', 'tblTempUsageDetail_20' ) end [2025-02-19 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510513', 'tblTempVendorCDR_20' ) start [2025-02-19 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510513', 'tblTempVendorCDR_20' ) end [2025-02-19 12:50:21] Production.INFO: ProcessCDR(1,14510513,1,1,2) [2025-02-19 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510513', 'tblTempUsageDetail_20' ) start [2025-02-19 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510513', 'tblTempUsageDetail_20' ) end [2025-02-19 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:50:26] Production.INFO: ==12260== Releasing lock... [2025-02-19 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:50:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:51:05 [end_date_ymd] => 2025-02-19 12:51:05 [RateCDR] => 1 ) [2025-02-19 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:51:05' and `end` < '2025-02-19 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:51:18] Production.INFO: count ==5488 [2025-02-19 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:51:05 - End Time 2025-02-19 12:51:05 [2025-02-19 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510518', 'tblTempUsageDetail_20' ) start [2025-02-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510518', 'tblTempUsageDetail_20' ) end [2025-02-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510518', 'tblTempVendorCDR_20' ) start [2025-02-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510518', 'tblTempVendorCDR_20' ) end [2025-02-19 12:51:21] Production.INFO: ProcessCDR(1,14510518,1,1,2) [2025-02-19 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510518', 'tblTempUsageDetail_20' ) start [2025-02-19 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510518', 'tblTempUsageDetail_20' ) end [2025-02-19 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:51:26] Production.INFO: ==12335== Releasing lock... [2025-02-19 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:51:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:52:05 [end_date_ymd] => 2025-02-19 12:52:05 [RateCDR] => 1 ) [2025-02-19 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:52:05' and `end` < '2025-02-19 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:52:17] Production.INFO: count ==5458 [2025-02-19 12:52:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:52:05 - End Time 2025-02-19 12:52:05 [2025-02-19 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510522', 'tblTempUsageDetail_20' ) start [2025-02-19 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510522', 'tblTempUsageDetail_20' ) end [2025-02-19 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510522', 'tblTempVendorCDR_20' ) start [2025-02-19 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510522', 'tblTempVendorCDR_20' ) end [2025-02-19 12:52:20] Production.INFO: ProcessCDR(1,14510522,1,1,2) [2025-02-19 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510522', 'tblTempUsageDetail_20' ) start [2025-02-19 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510522', 'tblTempUsageDetail_20' ) end [2025-02-19 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:52:26] Production.INFO: ==12410== Releasing lock... [2025-02-19 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:52:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:53:05 [end_date_ymd] => 2025-02-19 12:53:05 [RateCDR] => 1 ) [2025-02-19 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:53:05' and `end` < '2025-02-19 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:53:18] Production.INFO: count ==5487 [2025-02-19 12:53:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:53:05 - End Time 2025-02-19 12:53:05 [2025-02-19 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510528', 'tblTempUsageDetail_20' ) start [2025-02-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510528', 'tblTempUsageDetail_20' ) end [2025-02-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510528', 'tblTempVendorCDR_20' ) start [2025-02-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510528', 'tblTempVendorCDR_20' ) end [2025-02-19 12:53:20] Production.INFO: ProcessCDR(1,14510528,1,1,2) [2025-02-19 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510528', 'tblTempUsageDetail_20' ) start [2025-02-19 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510528', 'tblTempUsageDetail_20' ) end [2025-02-19 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:53:25] Production.INFO: ==12487== Releasing lock... [2025-02-19 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:53:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:54:06 [end_date_ymd] => 2025-02-19 12:54:06 [RateCDR] => 1 ) [2025-02-19 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:54:06' and `end` < '2025-02-19 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:54:19] Production.INFO: count ==5473 [2025-02-19 12:54:22] Production.ERROR: pbx CDR StartTime 2025-02-19 09:54:06 - End Time 2025-02-19 12:54:06 [2025-02-19 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510533', 'tblTempUsageDetail_20' ) start [2025-02-19 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510533', 'tblTempUsageDetail_20' ) end [2025-02-19 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510533', 'tblTempVendorCDR_20' ) start [2025-02-19 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510533', 'tblTempVendorCDR_20' ) end [2025-02-19 12:54:22] Production.INFO: ProcessCDR(1,14510533,1,1,2) [2025-02-19 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510533', 'tblTempUsageDetail_20' ) start [2025-02-19 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510533', 'tblTempUsageDetail_20' ) end [2025-02-19 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:54:26] Production.INFO: ==12558== Releasing lock... [2025-02-19 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:54:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:55:05 [end_date_ymd] => 2025-02-19 12:55:05 [RateCDR] => 1 ) [2025-02-19 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:55:05' and `end` < '2025-02-19 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:55:18] Production.INFO: count ==5486 [2025-02-19 12:55:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:55:05 - End Time 2025-02-19 12:55:05 [2025-02-19 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510538', 'tblTempUsageDetail_20' ) start [2025-02-19 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510538', 'tblTempUsageDetail_20' ) end [2025-02-19 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510538', 'tblTempVendorCDR_20' ) start [2025-02-19 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510538', 'tblTempVendorCDR_20' ) end [2025-02-19 12:55:20] Production.INFO: ProcessCDR(1,14510538,1,1,2) [2025-02-19 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510538', 'tblTempUsageDetail_20' ) start [2025-02-19 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510538', 'tblTempUsageDetail_20' ) end [2025-02-19 12:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:55:25] Production.INFO: ==12633== Releasing lock... [2025-02-19 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:55:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:56:06 [end_date_ymd] => 2025-02-19 12:56:06 [RateCDR] => 1 ) [2025-02-19 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:56:06' and `end` < '2025-02-19 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:56:18] Production.INFO: count ==5475 [2025-02-19 12:56:21] Production.ERROR: pbx CDR StartTime 2025-02-19 09:56:06 - End Time 2025-02-19 12:56:06 [2025-02-19 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510543', 'tblTempUsageDetail_20' ) start [2025-02-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510543', 'tblTempUsageDetail_20' ) end [2025-02-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510543', 'tblTempVendorCDR_20' ) start [2025-02-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510543', 'tblTempVendorCDR_20' ) end [2025-02-19 12:56:21] Production.INFO: ProcessCDR(1,14510543,1,1,2) [2025-02-19 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510543', 'tblTempUsageDetail_20' ) start [2025-02-19 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510543', 'tblTempUsageDetail_20' ) end [2025-02-19 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:56:26] Production.INFO: ==12710== Releasing lock... [2025-02-19 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:56:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:57:05 [end_date_ymd] => 2025-02-19 12:57:05 [RateCDR] => 1 ) [2025-02-19 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:57:05' and `end` < '2025-02-19 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:57:17] Production.INFO: count ==5468 [2025-02-19 12:57:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:57:05 - End Time 2025-02-19 12:57:05 [2025-02-19 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510548', 'tblTempUsageDetail_20' ) start [2025-02-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510548', 'tblTempUsageDetail_20' ) end [2025-02-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510548', 'tblTempVendorCDR_20' ) start [2025-02-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510548', 'tblTempVendorCDR_20' ) end [2025-02-19 12:57:20] Production.INFO: ProcessCDR(1,14510548,1,1,2) [2025-02-19 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510548', 'tblTempUsageDetail_20' ) start [2025-02-19 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510548', 'tblTempUsageDetail_20' ) end [2025-02-19 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:57:23] Production.INFO: ==12784== Releasing lock... [2025-02-19 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:57:23] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:58:06 [end_date_ymd] => 2025-02-19 12:58:06 [RateCDR] => 1 ) [2025-02-19 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:58:06' and `end` < '2025-02-19 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:58:19] Production.INFO: count ==5463 [2025-02-19 12:58:22] Production.ERROR: pbx CDR StartTime 2025-02-19 09:58:06 - End Time 2025-02-19 12:58:06 [2025-02-19 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510553', 'tblTempUsageDetail_20' ) start [2025-02-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510553', 'tblTempUsageDetail_20' ) end [2025-02-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510553', 'tblTempVendorCDR_20' ) start [2025-02-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510553', 'tblTempVendorCDR_20' ) end [2025-02-19 12:58:22] Production.INFO: ProcessCDR(1,14510553,1,1,2) [2025-02-19 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510553', 'tblTempUsageDetail_20' ) start [2025-02-19 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510553', 'tblTempUsageDetail_20' ) end [2025-02-19 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:58:27] Production.INFO: ==12857== Releasing lock... [2025-02-19 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:58:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 09:59:05 [end_date_ymd] => 2025-02-19 12:59:05 [RateCDR] => 1 ) [2025-02-19 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 09:59:05' and `end` < '2025-02-19 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 12:59:18] Production.INFO: count ==5470 [2025-02-19 12:59:20] Production.ERROR: pbx CDR StartTime 2025-02-19 09:59:05 - End Time 2025-02-19 12:59:05 [2025-02-19 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510558', 'tblTempUsageDetail_20' ) start [2025-02-19 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510558', 'tblTempUsageDetail_20' ) end [2025-02-19 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510558', 'tblTempVendorCDR_20' ) start [2025-02-19 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510558', 'tblTempVendorCDR_20' ) end [2025-02-19 12:59:20] Production.INFO: ProcessCDR(1,14510558,1,1,2) [2025-02-19 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510558', 'tblTempUsageDetail_20' ) start [2025-02-19 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510558', 'tblTempUsageDetail_20' ) end [2025-02-19 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 12:59:25] Production.INFO: ==12931== Releasing lock... [2025-02-19 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 12:59:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:00:07 [end_date_ymd] => 2025-02-19 13:00:07 [RateCDR] => 1 ) [2025-02-19 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:00:07' and `end` < '2025-02-19 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:00:20] Production.INFO: count ==5475 [2025-02-19 13:00:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:00:07 - End Time 2025-02-19 13:00:07 [2025-02-19 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510564', 'tblTempUsageDetail_20' ) start [2025-02-19 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510564', 'tblTempUsageDetail_20' ) end [2025-02-19 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510564', 'tblTempVendorCDR_20' ) start [2025-02-19 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510564', 'tblTempVendorCDR_20' ) end [2025-02-19 13:00:23] Production.INFO: ProcessCDR(1,14510564,1,1,2) [2025-02-19 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510564', 'tblTempUsageDetail_20' ) start [2025-02-19 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510564', 'tblTempUsageDetail_20' ) end [2025-02-19 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:00:28] Production.INFO: ==13019== Releasing lock... [2025-02-19 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:00:28] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:01:06 [end_date_ymd] => 2025-02-19 13:01:06 [RateCDR] => 1 ) [2025-02-19 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:01:06' and `end` < '2025-02-19 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:01:18] Production.INFO: count ==5460 [2025-02-19 13:01:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:01:06 - End Time 2025-02-19 13:01:06 [2025-02-19 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510569', 'tblTempUsageDetail_20' ) start [2025-02-19 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510569', 'tblTempUsageDetail_20' ) end [2025-02-19 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510569', 'tblTempVendorCDR_20' ) start [2025-02-19 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510569', 'tblTempVendorCDR_20' ) end [2025-02-19 13:01:22] Production.INFO: ProcessCDR(1,14510569,1,1,2) [2025-02-19 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510569', 'tblTempUsageDetail_20' ) start [2025-02-19 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510569', 'tblTempUsageDetail_20' ) end [2025-02-19 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:01:27] Production.INFO: ==13119== Releasing lock... [2025-02-19 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:01:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:02:06 [end_date_ymd] => 2025-02-19 13:02:06 [RateCDR] => 1 ) [2025-02-19 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:02:06' and `end` < '2025-02-19 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:02:19] Production.INFO: count ==5448 [2025-02-19 13:02:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:02:06 - End Time 2025-02-19 13:02:06 [2025-02-19 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510574', 'tblTempUsageDetail_20' ) start [2025-02-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510574', 'tblTempUsageDetail_20' ) end [2025-02-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510574', 'tblTempVendorCDR_20' ) start [2025-02-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510574', 'tblTempVendorCDR_20' ) end [2025-02-19 13:02:22] Production.INFO: ProcessCDR(1,14510574,1,1,2) [2025-02-19 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510574', 'tblTempUsageDetail_20' ) start [2025-02-19 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510574', 'tblTempUsageDetail_20' ) end [2025-02-19 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:02:28] Production.INFO: ==13208== Releasing lock... [2025-02-19 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:02:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:03:06 [end_date_ymd] => 2025-02-19 13:03:06 [RateCDR] => 1 ) [2025-02-19 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:03:06' and `end` < '2025-02-19 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:03:18] Production.INFO: count ==5461 [2025-02-19 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:03:06 - End Time 2025-02-19 13:03:06 [2025-02-19 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510579', 'tblTempUsageDetail_20' ) start [2025-02-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510579', 'tblTempUsageDetail_20' ) end [2025-02-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510579', 'tblTempVendorCDR_20' ) start [2025-02-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510579', 'tblTempVendorCDR_20' ) end [2025-02-19 13:03:21] Production.INFO: ProcessCDR(1,14510579,1,1,2) [2025-02-19 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510579', 'tblTempUsageDetail_20' ) start [2025-02-19 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510579', 'tblTempUsageDetail_20' ) end [2025-02-19 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:03:27] Production.INFO: ==13332== Releasing lock... [2025-02-19 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:03:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:04:06 [end_date_ymd] => 2025-02-19 13:04:06 [RateCDR] => 1 ) [2025-02-19 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:04:06' and `end` < '2025-02-19 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:04:18] Production.INFO: count ==5446 [2025-02-19 13:04:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:04:06 - End Time 2025-02-19 13:04:06 [2025-02-19 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510584', 'tblTempUsageDetail_20' ) start [2025-02-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510584', 'tblTempUsageDetail_20' ) end [2025-02-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510584', 'tblTempVendorCDR_20' ) start [2025-02-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510584', 'tblTempVendorCDR_20' ) end [2025-02-19 13:04:21] Production.INFO: ProcessCDR(1,14510584,1,1,2) [2025-02-19 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510584', 'tblTempUsageDetail_20' ) start [2025-02-19 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510584', 'tblTempUsageDetail_20' ) end [2025-02-19 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:04:26] Production.INFO: ==13426== Releasing lock... [2025-02-19 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:04:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:05:05 [end_date_ymd] => 2025-02-19 13:05:05 [RateCDR] => 1 ) [2025-02-19 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:05:05' and `end` < '2025-02-19 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:05:18] Production.INFO: count ==5435 [2025-02-19 13:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:05:05 - End Time 2025-02-19 13:05:05 [2025-02-19 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510589', 'tblTempUsageDetail_20' ) start [2025-02-19 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510589', 'tblTempUsageDetail_20' ) end [2025-02-19 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510589', 'tblTempVendorCDR_20' ) start [2025-02-19 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510589', 'tblTempVendorCDR_20' ) end [2025-02-19 13:05:20] Production.INFO: ProcessCDR(1,14510589,1,1,2) [2025-02-19 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510589', 'tblTempUsageDetail_20' ) start [2025-02-19 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510589', 'tblTempUsageDetail_20' ) end [2025-02-19 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:05:26] Production.INFO: ==13509== Releasing lock... [2025-02-19 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:05:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:06:06 [end_date_ymd] => 2025-02-19 13:06:06 [RateCDR] => 1 ) [2025-02-19 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:06:06' and `end` < '2025-02-19 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:06:19] Production.INFO: count ==5407 [2025-02-19 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:06:06 - End Time 2025-02-19 13:06:06 [2025-02-19 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510594', 'tblTempUsageDetail_20' ) start [2025-02-19 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510594', 'tblTempUsageDetail_20' ) end [2025-02-19 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510594', 'tblTempVendorCDR_20' ) start [2025-02-19 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510594', 'tblTempVendorCDR_20' ) end [2025-02-19 13:06:22] Production.INFO: ProcessCDR(1,14510594,1,1,2) [2025-02-19 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510594', 'tblTempUsageDetail_20' ) start [2025-02-19 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510594', 'tblTempUsageDetail_20' ) end [2025-02-19 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:06:26] Production.INFO: ==13599== Releasing lock... [2025-02-19 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:06:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:07:06 [end_date_ymd] => 2025-02-19 13:07:06 [RateCDR] => 1 ) [2025-02-19 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:07:06' and `end` < '2025-02-19 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:07:18] Production.INFO: count ==5427 [2025-02-19 13:07:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:07:06 - End Time 2025-02-19 13:07:06 [2025-02-19 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510599', 'tblTempUsageDetail_20' ) start [2025-02-19 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510599', 'tblTempUsageDetail_20' ) end [2025-02-19 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510599', 'tblTempVendorCDR_20' ) start [2025-02-19 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510599', 'tblTempVendorCDR_20' ) end [2025-02-19 13:07:21] Production.INFO: ProcessCDR(1,14510599,1,1,2) [2025-02-19 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510599', 'tblTempUsageDetail_20' ) start [2025-02-19 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510599', 'tblTempUsageDetail_20' ) end [2025-02-19 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:07:27] Production.INFO: ==13684== Releasing lock... [2025-02-19 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:07:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:08:06 [end_date_ymd] => 2025-02-19 13:08:06 [RateCDR] => 1 ) [2025-02-19 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:08:06' and `end` < '2025-02-19 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:08:19] Production.INFO: count ==5428 [2025-02-19 13:08:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:08:06 - End Time 2025-02-19 13:08:06 [2025-02-19 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510604', 'tblTempUsageDetail_20' ) start [2025-02-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510604', 'tblTempUsageDetail_20' ) end [2025-02-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510604', 'tblTempVendorCDR_20' ) start [2025-02-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510604', 'tblTempVendorCDR_20' ) end [2025-02-19 13:08:21] Production.INFO: ProcessCDR(1,14510604,1,1,2) [2025-02-19 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510604', 'tblTempUsageDetail_20' ) start [2025-02-19 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510604', 'tblTempUsageDetail_20' ) end [2025-02-19 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:08:26] Production.INFO: ==13775== Releasing lock... [2025-02-19 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:08:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:09:05 [end_date_ymd] => 2025-02-19 13:09:05 [RateCDR] => 1 ) [2025-02-19 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:09:05' and `end` < '2025-02-19 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:09:18] Production.INFO: count ==5460 [2025-02-19 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:09:05 - End Time 2025-02-19 13:09:05 [2025-02-19 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510609', 'tblTempUsageDetail_20' ) start [2025-02-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510609', 'tblTempUsageDetail_20' ) end [2025-02-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510609', 'tblTempVendorCDR_20' ) start [2025-02-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510609', 'tblTempVendorCDR_20' ) end [2025-02-19 13:09:21] Production.INFO: ProcessCDR(1,14510609,1,1,2) [2025-02-19 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510609', 'tblTempUsageDetail_20' ) start [2025-02-19 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510609', 'tblTempUsageDetail_20' ) end [2025-02-19 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:09:26] Production.INFO: ==13866== Releasing lock... [2025-02-19 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:09:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:10:07 [end_date_ymd] => 2025-02-19 13:10:07 [RateCDR] => 1 ) [2025-02-19 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:10:07' and `end` < '2025-02-19 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:10:19] Production.INFO: count ==5445 [2025-02-19 13:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:10:07 - End Time 2025-02-19 13:10:07 [2025-02-19 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510615', 'tblTempUsageDetail_20' ) start [2025-02-19 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510615', 'tblTempUsageDetail_20' ) end [2025-02-19 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510615', 'tblTempVendorCDR_20' ) start [2025-02-19 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510615', 'tblTempVendorCDR_20' ) end [2025-02-19 13:10:22] Production.INFO: ProcessCDR(1,14510615,1,1,2) [2025-02-19 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510615', 'tblTempUsageDetail_20' ) start [2025-02-19 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510615', 'tblTempUsageDetail_20' ) end [2025-02-19 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:10:27] Production.INFO: ==13958== Releasing lock... [2025-02-19 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:10:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:11:05 [end_date_ymd] => 2025-02-19 13:11:05 [RateCDR] => 1 ) [2025-02-19 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:11:05' and `end` < '2025-02-19 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:11:18] Production.INFO: count ==5468 [2025-02-19 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:11:05 - End Time 2025-02-19 13:11:05 [2025-02-19 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510620', 'tblTempUsageDetail_20' ) start [2025-02-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510620', 'tblTempUsageDetail_20' ) end [2025-02-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510620', 'tblTempVendorCDR_20' ) start [2025-02-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510620', 'tblTempVendorCDR_20' ) end [2025-02-19 13:11:21] Production.INFO: ProcessCDR(1,14510620,1,1,2) [2025-02-19 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510620', 'tblTempUsageDetail_20' ) start [2025-02-19 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510620', 'tblTempUsageDetail_20' ) end [2025-02-19 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:11:27] Production.INFO: ==14046== Releasing lock... [2025-02-19 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:11:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:12:06 [end_date_ymd] => 2025-02-19 13:12:06 [RateCDR] => 1 ) [2025-02-19 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:12:06' and `end` < '2025-02-19 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:12:19] Production.INFO: count ==5469 [2025-02-19 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:12:06 - End Time 2025-02-19 13:12:06 [2025-02-19 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510625', 'tblTempUsageDetail_20' ) start [2025-02-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510625', 'tblTempUsageDetail_20' ) end [2025-02-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510625', 'tblTempVendorCDR_20' ) start [2025-02-19 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510625', 'tblTempVendorCDR_20' ) end [2025-02-19 13:12:22] Production.INFO: ProcessCDR(1,14510625,1,1,2) [2025-02-19 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510625', 'tblTempUsageDetail_20' ) start [2025-02-19 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510625', 'tblTempUsageDetail_20' ) end [2025-02-19 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:12:27] Production.INFO: ==14134== Releasing lock... [2025-02-19 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:12:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:13:05 [end_date_ymd] => 2025-02-19 13:13:05 [RateCDR] => 1 ) [2025-02-19 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:13:05' and `end` < '2025-02-19 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:13:18] Production.INFO: count ==5470 [2025-02-19 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:13:05 - End Time 2025-02-19 13:13:05 [2025-02-19 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510630', 'tblTempUsageDetail_20' ) start [2025-02-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510630', 'tblTempUsageDetail_20' ) end [2025-02-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510630', 'tblTempVendorCDR_20' ) start [2025-02-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510630', 'tblTempVendorCDR_20' ) end [2025-02-19 13:13:21] Production.INFO: ProcessCDR(1,14510630,1,1,2) [2025-02-19 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510630', 'tblTempUsageDetail_20' ) start [2025-02-19 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510630', 'tblTempUsageDetail_20' ) end [2025-02-19 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:13:26] Production.INFO: ==14221== Releasing lock... [2025-02-19 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:13:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:14:06 [end_date_ymd] => 2025-02-19 13:14:06 [RateCDR] => 1 ) [2025-02-19 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:14:06' and `end` < '2025-02-19 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:14:19] Production.INFO: count ==5473 [2025-02-19 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:14:06 - End Time 2025-02-19 13:14:06 [2025-02-19 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510635', 'tblTempUsageDetail_20' ) start [2025-02-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510635', 'tblTempUsageDetail_20' ) end [2025-02-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510635', 'tblTempVendorCDR_20' ) start [2025-02-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510635', 'tblTempVendorCDR_20' ) end [2025-02-19 13:14:21] Production.INFO: ProcessCDR(1,14510635,1,1,2) [2025-02-19 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510635', 'tblTempUsageDetail_20' ) start [2025-02-19 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510635', 'tblTempUsageDetail_20' ) end [2025-02-19 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:14:27] Production.INFO: ==14321== Releasing lock... [2025-02-19 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:14:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:15:05 [end_date_ymd] => 2025-02-19 13:15:05 [RateCDR] => 1 ) [2025-02-19 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:15:05' and `end` < '2025-02-19 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:15:18] Production.INFO: count ==5474 [2025-02-19 13:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:15:05 - End Time 2025-02-19 13:15:05 [2025-02-19 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510640', 'tblTempUsageDetail_20' ) start [2025-02-19 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510640', 'tblTempUsageDetail_20' ) end [2025-02-19 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510640', 'tblTempVendorCDR_20' ) start [2025-02-19 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510640', 'tblTempVendorCDR_20' ) end [2025-02-19 13:15:21] Production.INFO: ProcessCDR(1,14510640,1,1,2) [2025-02-19 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510640', 'tblTempUsageDetail_20' ) start [2025-02-19 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510640', 'tblTempUsageDetail_20' ) end [2025-02-19 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:15:26] Production.INFO: ==14417== Releasing lock... [2025-02-19 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:15:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:16:06 [end_date_ymd] => 2025-02-19 13:16:06 [RateCDR] => 1 ) [2025-02-19 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:16:06' and `end` < '2025-02-19 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:16:19] Production.INFO: count ==5478 [2025-02-19 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:16:06 - End Time 2025-02-19 13:16:06 [2025-02-19 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510645', 'tblTempUsageDetail_20' ) start [2025-02-19 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510645', 'tblTempUsageDetail_20' ) end [2025-02-19 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510645', 'tblTempVendorCDR_20' ) start [2025-02-19 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510645', 'tblTempVendorCDR_20' ) end [2025-02-19 13:16:21] Production.INFO: ProcessCDR(1,14510645,1,1,2) [2025-02-19 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510645', 'tblTempUsageDetail_20' ) start [2025-02-19 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510645', 'tblTempUsageDetail_20' ) end [2025-02-19 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:16:27] Production.INFO: ==14509== Releasing lock... [2025-02-19 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:16:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:17:06 [end_date_ymd] => 2025-02-19 13:17:06 [RateCDR] => 1 ) [2025-02-19 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:17:06' and `end` < '2025-02-19 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:17:19] Production.INFO: count ==5461 [2025-02-19 13:17:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:17:06 - End Time 2025-02-19 13:17:06 [2025-02-19 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510650', 'tblTempUsageDetail_20' ) start [2025-02-19 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510650', 'tblTempUsageDetail_20' ) end [2025-02-19 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510650', 'tblTempVendorCDR_20' ) start [2025-02-19 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510650', 'tblTempVendorCDR_20' ) end [2025-02-19 13:17:22] Production.INFO: ProcessCDR(1,14510650,1,1,2) [2025-02-19 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510650', 'tblTempUsageDetail_20' ) start [2025-02-19 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510650', 'tblTempUsageDetail_20' ) end [2025-02-19 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:17:26] Production.INFO: ==14599== Releasing lock... [2025-02-19 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:17:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:18:07 [end_date_ymd] => 2025-02-19 13:18:07 [RateCDR] => 1 ) [2025-02-19 13:18:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:18:07' and `end` < '2025-02-19 13:18:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:18:19] Production.INFO: count ==5462 [2025-02-19 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:18:07 - End Time 2025-02-19 13:18:07 [2025-02-19 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510655', 'tblTempUsageDetail_20' ) start [2025-02-19 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510655', 'tblTempUsageDetail_20' ) end [2025-02-19 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510655', 'tblTempVendorCDR_20' ) start [2025-02-19 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510655', 'tblTempVendorCDR_20' ) end [2025-02-19 13:18:22] Production.INFO: ProcessCDR(1,14510655,1,1,2) [2025-02-19 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510655', 'tblTempUsageDetail_20' ) start [2025-02-19 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510655', 'tblTempUsageDetail_20' ) end [2025-02-19 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:18:28] Production.INFO: ==14702== Releasing lock... [2025-02-19 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:18:28] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:19:05 [end_date_ymd] => 2025-02-19 13:19:05 [RateCDR] => 1 ) [2025-02-19 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:19:05' and `end` < '2025-02-19 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:19:18] Production.INFO: count ==5474 [2025-02-19 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:19:05 - End Time 2025-02-19 13:19:05 [2025-02-19 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510660', 'tblTempUsageDetail_20' ) start [2025-02-19 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510660', 'tblTempUsageDetail_20' ) end [2025-02-19 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510660', 'tblTempVendorCDR_20' ) start [2025-02-19 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510660', 'tblTempVendorCDR_20' ) end [2025-02-19 13:19:21] Production.INFO: ProcessCDR(1,14510660,1,1,2) [2025-02-19 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510660', 'tblTempUsageDetail_20' ) start [2025-02-19 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510660', 'tblTempUsageDetail_20' ) end [2025-02-19 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:19:25] Production.INFO: ==14814== Releasing lock... [2025-02-19 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:19:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:20:07 [end_date_ymd] => 2025-02-19 13:20:07 [RateCDR] => 1 ) [2025-02-19 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:20:07' and `end` < '2025-02-19 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:20:20] Production.INFO: count ==5467 [2025-02-19 13:20:23] Production.ERROR: pbx CDR StartTime 2025-02-19 10:20:07 - End Time 2025-02-19 13:20:07 [2025-02-19 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510665', 'tblTempUsageDetail_20' ) start [2025-02-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510665', 'tblTempUsageDetail_20' ) end [2025-02-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510665', 'tblTempVendorCDR_20' ) start [2025-02-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510665', 'tblTempVendorCDR_20' ) end [2025-02-19 13:20:23] Production.INFO: ProcessCDR(1,14510665,1,1,2) [2025-02-19 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510665', 'tblTempUsageDetail_20' ) start [2025-02-19 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510665', 'tblTempUsageDetail_20' ) end [2025-02-19 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:20:28] Production.INFO: ==14907== Releasing lock... [2025-02-19 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:20:28] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:21:05 [end_date_ymd] => 2025-02-19 13:21:05 [RateCDR] => 1 ) [2025-02-19 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:21:05' and `end` < '2025-02-19 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:21:18] Production.INFO: count ==5504 [2025-02-19 13:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:21:05 - End Time 2025-02-19 13:21:05 [2025-02-19 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510671', 'tblTempUsageDetail_20' ) start [2025-02-19 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510671', 'tblTempUsageDetail_20' ) end [2025-02-19 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510671', 'tblTempVendorCDR_20' ) start [2025-02-19 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510671', 'tblTempVendorCDR_20' ) end [2025-02-19 13:21:20] Production.INFO: ProcessCDR(1,14510671,1,1,2) [2025-02-19 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510671', 'tblTempUsageDetail_20' ) start [2025-02-19 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510671', 'tblTempUsageDetail_20' ) end [2025-02-19 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:21:25] Production.INFO: ==14998== Releasing lock... [2025-02-19 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:21:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:22:05 [end_date_ymd] => 2025-02-19 13:22:05 [RateCDR] => 1 ) [2025-02-19 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:22:05' and `end` < '2025-02-19 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:22:19] Production.INFO: count ==5497 [2025-02-19 13:22:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:22:05 - End Time 2025-02-19 13:22:05 [2025-02-19 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510676', 'tblTempUsageDetail_20' ) start [2025-02-19 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510676', 'tblTempUsageDetail_20' ) end [2025-02-19 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510676', 'tblTempVendorCDR_20' ) start [2025-02-19 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510676', 'tblTempVendorCDR_20' ) end [2025-02-19 13:22:21] Production.INFO: ProcessCDR(1,14510676,1,1,2) [2025-02-19 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510676', 'tblTempUsageDetail_20' ) start [2025-02-19 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510676', 'tblTempUsageDetail_20' ) end [2025-02-19 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:22:26] Production.INFO: ==15087== Releasing lock... [2025-02-19 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:22:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:23:06 [end_date_ymd] => 2025-02-19 13:23:06 [RateCDR] => 1 ) [2025-02-19 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:23:06' and `end` < '2025-02-19 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:23:18] Production.INFO: count ==5498 [2025-02-19 13:23:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:23:06 - End Time 2025-02-19 13:23:06 [2025-02-19 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510681', 'tblTempUsageDetail_20' ) start [2025-02-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510681', 'tblTempUsageDetail_20' ) end [2025-02-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510681', 'tblTempVendorCDR_20' ) start [2025-02-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510681', 'tblTempVendorCDR_20' ) end [2025-02-19 13:23:21] Production.INFO: ProcessCDR(1,14510681,1,1,2) [2025-02-19 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510681', 'tblTempUsageDetail_20' ) start [2025-02-19 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510681', 'tblTempUsageDetail_20' ) end [2025-02-19 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:23:26] Production.INFO: ==15175== Releasing lock... [2025-02-19 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:23:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:24:06 [end_date_ymd] => 2025-02-19 13:24:06 [RateCDR] => 1 ) [2025-02-19 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:24:06' and `end` < '2025-02-19 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:24:19] Production.INFO: count ==5477 [2025-02-19 13:24:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:24:06 - End Time 2025-02-19 13:24:06 [2025-02-19 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510686', 'tblTempUsageDetail_20' ) start [2025-02-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510686', 'tblTempUsageDetail_20' ) end [2025-02-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510686', 'tblTempVendorCDR_20' ) start [2025-02-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510686', 'tblTempVendorCDR_20' ) end [2025-02-19 13:24:22] Production.INFO: ProcessCDR(1,14510686,1,1,2) [2025-02-19 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510686', 'tblTempUsageDetail_20' ) start [2025-02-19 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510686', 'tblTempUsageDetail_20' ) end [2025-02-19 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:24:27] Production.INFO: ==15270== Releasing lock... [2025-02-19 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:24:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:25:05 [end_date_ymd] => 2025-02-19 13:25:05 [RateCDR] => 1 ) [2025-02-19 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:25:05' and `end` < '2025-02-19 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:25:18] Production.INFO: count ==5464 [2025-02-19 13:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:25:05 - End Time 2025-02-19 13:25:05 [2025-02-19 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510691', 'tblTempUsageDetail_20' ) start [2025-02-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510691', 'tblTempUsageDetail_20' ) end [2025-02-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510691', 'tblTempVendorCDR_20' ) start [2025-02-19 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510691', 'tblTempVendorCDR_20' ) end [2025-02-19 13:25:21] Production.INFO: ProcessCDR(1,14510691,1,1,2) [2025-02-19 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510691', 'tblTempUsageDetail_20' ) start [2025-02-19 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510691', 'tblTempUsageDetail_20' ) end [2025-02-19 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:25:26] Production.INFO: ==15358== Releasing lock... [2025-02-19 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:25:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:26:06 [end_date_ymd] => 2025-02-19 13:26:06 [RateCDR] => 1 ) [2025-02-19 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:26:06' and `end` < '2025-02-19 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:26:18] Production.INFO: count ==5460 [2025-02-19 13:26:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:26:06 - End Time 2025-02-19 13:26:06 [2025-02-19 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510696', 'tblTempUsageDetail_20' ) start [2025-02-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510696', 'tblTempUsageDetail_20' ) end [2025-02-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510696', 'tblTempVendorCDR_20' ) start [2025-02-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510696', 'tblTempVendorCDR_20' ) end [2025-02-19 13:26:21] Production.INFO: ProcessCDR(1,14510696,1,1,2) [2025-02-19 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510696', 'tblTempUsageDetail_20' ) start [2025-02-19 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510696', 'tblTempUsageDetail_20' ) end [2025-02-19 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:26:26] Production.INFO: ==15446== Releasing lock... [2025-02-19 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:26:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:27:05 [end_date_ymd] => 2025-02-19 13:27:05 [RateCDR] => 1 ) [2025-02-19 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:27:05' and `end` < '2025-02-19 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:27:18] Production.INFO: count ==5473 [2025-02-19 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:27:05 - End Time 2025-02-19 13:27:05 [2025-02-19 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510701', 'tblTempUsageDetail_20' ) start [2025-02-19 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510701', 'tblTempUsageDetail_20' ) end [2025-02-19 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510701', 'tblTempVendorCDR_20' ) start [2025-02-19 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510701', 'tblTempVendorCDR_20' ) end [2025-02-19 13:27:21] Production.INFO: ProcessCDR(1,14510701,1,1,2) [2025-02-19 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510701', 'tblTempUsageDetail_20' ) start [2025-02-19 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510701', 'tblTempUsageDetail_20' ) end [2025-02-19 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:27:26] Production.INFO: ==15532== Releasing lock... [2025-02-19 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:27:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:28:05 [end_date_ymd] => 2025-02-19 13:28:05 [RateCDR] => 1 ) [2025-02-19 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:28:05' and `end` < '2025-02-19 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:28:18] Production.INFO: count ==5473 [2025-02-19 13:28:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:28:05 - End Time 2025-02-19 13:28:05 [2025-02-19 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510706', 'tblTempUsageDetail_20' ) start [2025-02-19 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510706', 'tblTempUsageDetail_20' ) end [2025-02-19 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510706', 'tblTempVendorCDR_20' ) start [2025-02-19 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510706', 'tblTempVendorCDR_20' ) end [2025-02-19 13:28:21] Production.INFO: ProcessCDR(1,14510706,1,1,2) [2025-02-19 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510706', 'tblTempUsageDetail_20' ) start [2025-02-19 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510706', 'tblTempUsageDetail_20' ) end [2025-02-19 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:28:26] Production.INFO: ==15626== Releasing lock... [2025-02-19 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:28:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:29:06 [end_date_ymd] => 2025-02-19 13:29:06 [RateCDR] => 1 ) [2025-02-19 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:29:06' and `end` < '2025-02-19 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:29:19] Production.INFO: count ==5487 [2025-02-19 13:29:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:29:06 - End Time 2025-02-19 13:29:06 [2025-02-19 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510711', 'tblTempUsageDetail_20' ) start [2025-02-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510711', 'tblTempUsageDetail_20' ) end [2025-02-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510711', 'tblTempVendorCDR_20' ) start [2025-02-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510711', 'tblTempVendorCDR_20' ) end [2025-02-19 13:29:22] Production.INFO: ProcessCDR(1,14510711,1,1,2) [2025-02-19 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510711', 'tblTempUsageDetail_20' ) start [2025-02-19 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510711', 'tblTempUsageDetail_20' ) end [2025-02-19 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:29:27] Production.INFO: ==15721== Releasing lock... [2025-02-19 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:29:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:30:05 [end_date_ymd] => 2025-02-19 13:30:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 10:30:05' and `end` < '2025-02-19 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-02-19 13:30:18] Production.INFO: count ==5518 [2025-02-19 13:30:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:30:05 - End Time 2025-02-19 13:30:05 [2025-02-19 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510716', 'tblTempUsageDetail_20' ) start [2025-02-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510716', 'tblTempUsageDetail_20' ) end [2025-02-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510716', 'tblTempVendorCDR_20' ) start [2025-02-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510716', 'tblTempVendorCDR_20' ) end [2025-02-19 13:30:22] Production.INFO: ProcessCDR(1,14510716,1,1,2) [2025-02-19 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510716', 'tblTempUsageDetail_20' ) start [2025-02-19 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510716', 'tblTempUsageDetail_20' ) end [2025-02-19 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:30:28] Production.INFO: ==15810== Releasing lock... [2025-02-19 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:30:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:31:06 [end_date_ymd] => 2025-02-19 13:31:06 [RateCDR] => 1 ) [2025-02-19 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:31:06' and `end` < '2025-02-19 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:31:19] Production.INFO: count ==5501 [2025-02-19 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:31:06 - End Time 2025-02-19 13:31:06 [2025-02-19 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510722', 'tblTempUsageDetail_20' ) start [2025-02-19 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510722', 'tblTempUsageDetail_20' ) end [2025-02-19 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510722', 'tblTempVendorCDR_20' ) start [2025-02-19 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510722', 'tblTempVendorCDR_20' ) end [2025-02-19 13:31:22] Production.INFO: ProcessCDR(1,14510722,1,1,2) [2025-02-19 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510722', 'tblTempUsageDetail_20' ) start [2025-02-19 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510722', 'tblTempUsageDetail_20' ) end [2025-02-19 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:31:27] Production.INFO: ==15903== Releasing lock... [2025-02-19 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:31:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:32:06 [end_date_ymd] => 2025-02-19 13:32:06 [RateCDR] => 1 ) [2025-02-19 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:32:06' and `end` < '2025-02-19 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:32:19] Production.INFO: count ==5506 [2025-02-19 13:32:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:32:06 - End Time 2025-02-19 13:32:06 [2025-02-19 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510727', 'tblTempUsageDetail_20' ) start [2025-02-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510727', 'tblTempUsageDetail_20' ) end [2025-02-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510727', 'tblTempVendorCDR_20' ) start [2025-02-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510727', 'tblTempVendorCDR_20' ) end [2025-02-19 13:32:22] Production.INFO: ProcessCDR(1,14510727,1,1,2) [2025-02-19 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510727', 'tblTempUsageDetail_20' ) start [2025-02-19 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510727', 'tblTempUsageDetail_20' ) end [2025-02-19 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:32:27] Production.INFO: ==15987== Releasing lock... [2025-02-19 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:32:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:33:06 [end_date_ymd] => 2025-02-19 13:33:06 [RateCDR] => 1 ) [2025-02-19 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:33:06' and `end` < '2025-02-19 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:33:19] Production.INFO: count ==5522 [2025-02-19 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:33:06 - End Time 2025-02-19 13:33:06 [2025-02-19 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510732', 'tblTempUsageDetail_20' ) start [2025-02-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510732', 'tblTempUsageDetail_20' ) end [2025-02-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510732', 'tblTempVendorCDR_20' ) start [2025-02-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510732', 'tblTempVendorCDR_20' ) end [2025-02-19 13:33:22] Production.INFO: ProcessCDR(1,14510732,1,1,2) [2025-02-19 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510732', 'tblTempUsageDetail_20' ) start [2025-02-19 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510732', 'tblTempUsageDetail_20' ) end [2025-02-19 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:33:27] Production.INFO: ==16074== Releasing lock... [2025-02-19 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:33:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:34:05 [end_date_ymd] => 2025-02-19 13:34:05 [RateCDR] => 1 ) [2025-02-19 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:34:05' and `end` < '2025-02-19 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:34:18] Production.INFO: count ==5541 [2025-02-19 13:34:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:34:05 - End Time 2025-02-19 13:34:05 [2025-02-19 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510737', 'tblTempUsageDetail_20' ) start [2025-02-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510737', 'tblTempUsageDetail_20' ) end [2025-02-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510737', 'tblTempVendorCDR_20' ) start [2025-02-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510737', 'tblTempVendorCDR_20' ) end [2025-02-19 13:34:21] Production.INFO: ProcessCDR(1,14510737,1,1,2) [2025-02-19 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510737', 'tblTempUsageDetail_20' ) start [2025-02-19 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510737', 'tblTempUsageDetail_20' ) end [2025-02-19 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:34:27] Production.INFO: ==16196== Releasing lock... [2025-02-19 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:34:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:35:06 [end_date_ymd] => 2025-02-19 13:35:06 [RateCDR] => 1 ) [2025-02-19 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:35:06' and `end` < '2025-02-19 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:35:19] Production.INFO: count ==5539 [2025-02-19 13:35:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:35:06 - End Time 2025-02-19 13:35:06 [2025-02-19 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510742', 'tblTempUsageDetail_20' ) start [2025-02-19 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510742', 'tblTempUsageDetail_20' ) end [2025-02-19 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510742', 'tblTempVendorCDR_20' ) start [2025-02-19 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510742', 'tblTempVendorCDR_20' ) end [2025-02-19 13:35:22] Production.INFO: ProcessCDR(1,14510742,1,1,2) [2025-02-19 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510742', 'tblTempUsageDetail_20' ) start [2025-02-19 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510742', 'tblTempUsageDetail_20' ) end [2025-02-19 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:35:28] Production.INFO: ==16283== Releasing lock... [2025-02-19 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:35:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:36:05 [end_date_ymd] => 2025-02-19 13:36:05 [RateCDR] => 1 ) [2025-02-19 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:36:05' and `end` < '2025-02-19 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:36:18] Production.INFO: count ==5537 [2025-02-19 13:36:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:36:05 - End Time 2025-02-19 13:36:05 [2025-02-19 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510747', 'tblTempUsageDetail_20' ) start [2025-02-19 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510747', 'tblTempUsageDetail_20' ) end [2025-02-19 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510747', 'tblTempVendorCDR_20' ) start [2025-02-19 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510747', 'tblTempVendorCDR_20' ) end [2025-02-19 13:36:21] Production.INFO: ProcessCDR(1,14510747,1,1,2) [2025-02-19 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510747', 'tblTempUsageDetail_20' ) start [2025-02-19 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510747', 'tblTempUsageDetail_20' ) end [2025-02-19 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:36:26] Production.INFO: ==16369== Releasing lock... [2025-02-19 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:36:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:37:06 [end_date_ymd] => 2025-02-19 13:37:06 [RateCDR] => 1 ) [2025-02-19 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:37:06' and `end` < '2025-02-19 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:37:19] Production.INFO: count ==5514 [2025-02-19 13:37:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:37:06 - End Time 2025-02-19 13:37:06 [2025-02-19 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510752', 'tblTempUsageDetail_20' ) start [2025-02-19 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510752', 'tblTempUsageDetail_20' ) end [2025-02-19 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510752', 'tblTempVendorCDR_20' ) start [2025-02-19 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510752', 'tblTempVendorCDR_20' ) end [2025-02-19 13:37:22] Production.INFO: ProcessCDR(1,14510752,1,1,2) [2025-02-19 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510752', 'tblTempUsageDetail_20' ) start [2025-02-19 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510752', 'tblTempUsageDetail_20' ) end [2025-02-19 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:37:27] Production.INFO: ==16453== Releasing lock... [2025-02-19 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:37:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:38:05 [end_date_ymd] => 2025-02-19 13:38:05 [RateCDR] => 1 ) [2025-02-19 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:38:05' and `end` < '2025-02-19 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:38:18] Production.INFO: count ==5501 [2025-02-19 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:38:05 - End Time 2025-02-19 13:38:05 [2025-02-19 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510757', 'tblTempUsageDetail_20' ) start [2025-02-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510757', 'tblTempUsageDetail_20' ) end [2025-02-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510757', 'tblTempVendorCDR_20' ) start [2025-02-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510757', 'tblTempVendorCDR_20' ) end [2025-02-19 13:38:21] Production.INFO: ProcessCDR(1,14510757,1,1,2) [2025-02-19 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510757', 'tblTempUsageDetail_20' ) start [2025-02-19 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510757', 'tblTempUsageDetail_20' ) end [2025-02-19 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:38:26] Production.INFO: ==16541== Releasing lock... [2025-02-19 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:38:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:39:05 [end_date_ymd] => 2025-02-19 13:39:05 [RateCDR] => 1 ) [2025-02-19 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:39:05' and `end` < '2025-02-19 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:39:18] Production.INFO: count ==5507 [2025-02-19 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:39:05 - End Time 2025-02-19 13:39:05 [2025-02-19 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510762', 'tblTempUsageDetail_20' ) start [2025-02-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510762', 'tblTempUsageDetail_20' ) end [2025-02-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510762', 'tblTempVendorCDR_20' ) start [2025-02-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510762', 'tblTempVendorCDR_20' ) end [2025-02-19 13:39:21] Production.INFO: ProcessCDR(1,14510762,1,1,2) [2025-02-19 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510762', 'tblTempUsageDetail_20' ) start [2025-02-19 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510762', 'tblTempUsageDetail_20' ) end [2025-02-19 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:39:27] Production.INFO: ==16624== Releasing lock... [2025-02-19 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:39:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:40:06 [end_date_ymd] => 2025-02-19 13:40:06 [RateCDR] => 1 ) [2025-02-19 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:40:06' and `end` < '2025-02-19 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:40:19] Production.INFO: count ==5524 [2025-02-19 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:40:06 - End Time 2025-02-19 13:40:06 [2025-02-19 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510767', 'tblTempUsageDetail_20' ) start [2025-02-19 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510767', 'tblTempUsageDetail_20' ) end [2025-02-19 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510767', 'tblTempVendorCDR_20' ) start [2025-02-19 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510767', 'tblTempVendorCDR_20' ) end [2025-02-19 13:40:22] Production.INFO: ProcessCDR(1,14510767,1,1,2) [2025-02-19 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510767', 'tblTempUsageDetail_20' ) start [2025-02-19 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510767', 'tblTempUsageDetail_20' ) end [2025-02-19 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:40:28] Production.INFO: ==16712== Releasing lock... [2025-02-19 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:40:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:41:05 [end_date_ymd] => 2025-02-19 13:41:05 [RateCDR] => 1 ) [2025-02-19 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:41:05' and `end` < '2025-02-19 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:41:18] Production.INFO: count ==5538 [2025-02-19 13:41:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:41:05 - End Time 2025-02-19 13:41:05 [2025-02-19 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510773', 'tblTempUsageDetail_20' ) start [2025-02-19 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510773', 'tblTempUsageDetail_20' ) end [2025-02-19 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510773', 'tblTempVendorCDR_20' ) start [2025-02-19 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510773', 'tblTempVendorCDR_20' ) end [2025-02-19 13:41:21] Production.INFO: ProcessCDR(1,14510773,1,1,2) [2025-02-19 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510773', 'tblTempUsageDetail_20' ) start [2025-02-19 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510773', 'tblTempUsageDetail_20' ) end [2025-02-19 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:41:27] Production.INFO: ==16801== Releasing lock... [2025-02-19 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:41:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:42:05 [end_date_ymd] => 2025-02-19 13:42:05 [RateCDR] => 1 ) [2025-02-19 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:42:05' and `end` < '2025-02-19 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:42:18] Production.INFO: count ==5549 [2025-02-19 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:42:05 - End Time 2025-02-19 13:42:05 [2025-02-19 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510778', 'tblTempUsageDetail_20' ) start [2025-02-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510778', 'tblTempUsageDetail_20' ) end [2025-02-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510778', 'tblTempVendorCDR_20' ) start [2025-02-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510778', 'tblTempVendorCDR_20' ) end [2025-02-19 13:42:21] Production.INFO: ProcessCDR(1,14510778,1,1,2) [2025-02-19 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510778', 'tblTempUsageDetail_20' ) start [2025-02-19 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510778', 'tblTempUsageDetail_20' ) end [2025-02-19 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:42:27] Production.INFO: ==16888== Releasing lock... [2025-02-19 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:43:06 [end_date_ymd] => 2025-02-19 13:43:06 [RateCDR] => 1 ) [2025-02-19 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:43:06' and `end` < '2025-02-19 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:43:19] Production.INFO: count ==5564 [2025-02-19 13:43:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:43:06 - End Time 2025-02-19 13:43:06 [2025-02-19 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510783', 'tblTempUsageDetail_20' ) start [2025-02-19 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510783', 'tblTempUsageDetail_20' ) end [2025-02-19 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510783', 'tblTempVendorCDR_20' ) start [2025-02-19 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510783', 'tblTempVendorCDR_20' ) end [2025-02-19 13:43:22] Production.INFO: ProcessCDR(1,14510783,1,1,2) [2025-02-19 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510783', 'tblTempUsageDetail_20' ) start [2025-02-19 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510783', 'tblTempUsageDetail_20' ) end [2025-02-19 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:43:28] Production.INFO: ==16980== Releasing lock... [2025-02-19 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:43:28] Production.INFO: 69.75 MB #Memory Used# [2025-02-19 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:44:05 [end_date_ymd] => 2025-02-19 13:44:05 [RateCDR] => 1 ) [2025-02-19 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:44:05' and `end` < '2025-02-19 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:44:18] Production.INFO: count ==5587 [2025-02-19 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:44:05 - End Time 2025-02-19 13:44:05 [2025-02-19 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510788', 'tblTempUsageDetail_20' ) start [2025-02-19 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510788', 'tblTempUsageDetail_20' ) end [2025-02-19 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510788', 'tblTempVendorCDR_20' ) start [2025-02-19 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510788', 'tblTempVendorCDR_20' ) end [2025-02-19 13:44:21] Production.INFO: ProcessCDR(1,14510788,1,1,2) [2025-02-19 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510788', 'tblTempUsageDetail_20' ) start [2025-02-19 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510788', 'tblTempUsageDetail_20' ) end [2025-02-19 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:44:27] Production.INFO: ==17065== Releasing lock... [2025-02-19 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:44:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-19 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:45:06 [end_date_ymd] => 2025-02-19 13:45:06 [RateCDR] => 1 ) [2025-02-19 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:45:06' and `end` < '2025-02-19 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:45:19] Production.INFO: count ==5558 [2025-02-19 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:45:06 - End Time 2025-02-19 13:45:06 [2025-02-19 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510793', 'tblTempUsageDetail_20' ) start [2025-02-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510793', 'tblTempUsageDetail_20' ) end [2025-02-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510793', 'tblTempVendorCDR_20' ) start [2025-02-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510793', 'tblTempVendorCDR_20' ) end [2025-02-19 13:45:22] Production.INFO: ProcessCDR(1,14510793,1,1,2) [2025-02-19 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510793', 'tblTempUsageDetail_20' ) start [2025-02-19 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510793', 'tblTempUsageDetail_20' ) end [2025-02-19 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:45:27] Production.INFO: ==17149== Releasing lock... [2025-02-19 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:45:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:46:05 [end_date_ymd] => 2025-02-19 13:46:05 [RateCDR] => 1 ) [2025-02-19 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:46:05' and `end` < '2025-02-19 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:46:18] Production.INFO: count ==5525 [2025-02-19 13:46:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:46:05 - End Time 2025-02-19 13:46:05 [2025-02-19 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510798', 'tblTempUsageDetail_20' ) start [2025-02-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510798', 'tblTempUsageDetail_20' ) end [2025-02-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510798', 'tblTempVendorCDR_20' ) start [2025-02-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510798', 'tblTempVendorCDR_20' ) end [2025-02-19 13:46:21] Production.INFO: ProcessCDR(1,14510798,1,1,2) [2025-02-19 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510798', 'tblTempUsageDetail_20' ) start [2025-02-19 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510798', 'tblTempUsageDetail_20' ) end [2025-02-19 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:46:26] Production.INFO: ==17233== Releasing lock... [2025-02-19 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:46:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:47:06 [end_date_ymd] => 2025-02-19 13:47:06 [RateCDR] => 1 ) [2025-02-19 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:47:06' and `end` < '2025-02-19 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:47:19] Production.INFO: count ==5484 [2025-02-19 13:47:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:47:06 - End Time 2025-02-19 13:47:06 [2025-02-19 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510803', 'tblTempUsageDetail_20' ) start [2025-02-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510803', 'tblTempUsageDetail_20' ) end [2025-02-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510803', 'tblTempVendorCDR_20' ) start [2025-02-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510803', 'tblTempVendorCDR_20' ) end [2025-02-19 13:47:22] Production.INFO: ProcessCDR(1,14510803,1,1,2) [2025-02-19 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510803', 'tblTempUsageDetail_20' ) start [2025-02-19 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510803', 'tblTempUsageDetail_20' ) end [2025-02-19 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:47:27] Production.INFO: ==17322== Releasing lock... [2025-02-19 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:47:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:48:05 [end_date_ymd] => 2025-02-19 13:48:05 [RateCDR] => 1 ) [2025-02-19 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:48:05' and `end` < '2025-02-19 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:48:18] Production.INFO: count ==5507 [2025-02-19 13:48:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:48:05 - End Time 2025-02-19 13:48:05 [2025-02-19 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510808', 'tblTempUsageDetail_20' ) start [2025-02-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510808', 'tblTempUsageDetail_20' ) end [2025-02-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510808', 'tblTempVendorCDR_20' ) start [2025-02-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510808', 'tblTempVendorCDR_20' ) end [2025-02-19 13:48:21] Production.INFO: ProcessCDR(1,14510808,1,1,2) [2025-02-19 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510808', 'tblTempUsageDetail_20' ) start [2025-02-19 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510808', 'tblTempUsageDetail_20' ) end [2025-02-19 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:48:27] Production.INFO: ==17409== Releasing lock... [2025-02-19 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:48:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:49:05 [end_date_ymd] => 2025-02-19 13:49:05 [RateCDR] => 1 ) [2025-02-19 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:49:05' and `end` < '2025-02-19 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:49:18] Production.INFO: count ==5516 [2025-02-19 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:49:05 - End Time 2025-02-19 13:49:05 [2025-02-19 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510813', 'tblTempUsageDetail_20' ) start [2025-02-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510813', 'tblTempUsageDetail_20' ) end [2025-02-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510813', 'tblTempVendorCDR_20' ) start [2025-02-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510813', 'tblTempVendorCDR_20' ) end [2025-02-19 13:49:21] Production.INFO: ProcessCDR(1,14510813,1,1,2) [2025-02-19 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510813', 'tblTempUsageDetail_20' ) start [2025-02-19 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510813', 'tblTempUsageDetail_20' ) end [2025-02-19 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:49:26] Production.INFO: ==17532== Releasing lock... [2025-02-19 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:49:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:50:06 [end_date_ymd] => 2025-02-19 13:50:06 [RateCDR] => 1 ) [2025-02-19 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:50:06' and `end` < '2025-02-19 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:50:19] Production.INFO: count ==5500 [2025-02-19 13:50:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:50:06 - End Time 2025-02-19 13:50:06 [2025-02-19 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510819', 'tblTempUsageDetail_20' ) start [2025-02-19 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510819', 'tblTempUsageDetail_20' ) end [2025-02-19 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510819', 'tblTempVendorCDR_20' ) start [2025-02-19 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510819', 'tblTempVendorCDR_20' ) end [2025-02-19 13:50:22] Production.INFO: ProcessCDR(1,14510819,1,1,2) [2025-02-19 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510819', 'tblTempUsageDetail_20' ) start [2025-02-19 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510819', 'tblTempUsageDetail_20' ) end [2025-02-19 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:50:28] Production.INFO: ==17618== Releasing lock... [2025-02-19 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:50:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:51:05 [end_date_ymd] => 2025-02-19 13:51:05 [RateCDR] => 1 ) [2025-02-19 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:51:05' and `end` < '2025-02-19 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:51:18] Production.INFO: count ==5407 [2025-02-19 13:51:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:51:05 - End Time 2025-02-19 13:51:05 [2025-02-19 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510824', 'tblTempUsageDetail_20' ) start [2025-02-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510824', 'tblTempUsageDetail_20' ) end [2025-02-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510824', 'tblTempVendorCDR_20' ) start [2025-02-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510824', 'tblTempVendorCDR_20' ) end [2025-02-19 13:51:21] Production.INFO: ProcessCDR(1,14510824,1,1,2) [2025-02-19 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510824', 'tblTempUsageDetail_20' ) start [2025-02-19 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510824', 'tblTempUsageDetail_20' ) end [2025-02-19 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:51:26] Production.INFO: ==17706== Releasing lock... [2025-02-19 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:51:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:52:06 [end_date_ymd] => 2025-02-19 13:52:06 [RateCDR] => 1 ) [2025-02-19 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:52:06' and `end` < '2025-02-19 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:52:19] Production.INFO: count ==5409 [2025-02-19 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:52:06 - End Time 2025-02-19 13:52:06 [2025-02-19 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510829', 'tblTempUsageDetail_20' ) start [2025-02-19 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510829', 'tblTempUsageDetail_20' ) end [2025-02-19 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510829', 'tblTempVendorCDR_20' ) start [2025-02-19 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510829', 'tblTempVendorCDR_20' ) end [2025-02-19 13:52:22] Production.INFO: ProcessCDR(1,14510829,1,1,2) [2025-02-19 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510829', 'tblTempUsageDetail_20' ) start [2025-02-19 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510829', 'tblTempUsageDetail_20' ) end [2025-02-19 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:52:27] Production.INFO: ==17792== Releasing lock... [2025-02-19 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:52:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:53:05 [end_date_ymd] => 2025-02-19 13:53:05 [RateCDR] => 1 ) [2025-02-19 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:53:05' and `end` < '2025-02-19 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:53:18] Production.INFO: count ==5382 [2025-02-19 13:53:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:53:05 - End Time 2025-02-19 13:53:05 [2025-02-19 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510834', 'tblTempUsageDetail_20' ) start [2025-02-19 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510834', 'tblTempUsageDetail_20' ) end [2025-02-19 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510834', 'tblTempVendorCDR_20' ) start [2025-02-19 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510834', 'tblTempVendorCDR_20' ) end [2025-02-19 13:53:20] Production.INFO: ProcessCDR(1,14510834,1,1,2) [2025-02-19 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510834', 'tblTempUsageDetail_20' ) start [2025-02-19 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510834', 'tblTempUsageDetail_20' ) end [2025-02-19 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:53:26] Production.INFO: ==17881== Releasing lock... [2025-02-19 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:53:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:54:05 [end_date_ymd] => 2025-02-19 13:54:05 [RateCDR] => 1 ) [2025-02-19 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:54:05' and `end` < '2025-02-19 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:54:18] Production.INFO: count ==5370 [2025-02-19 13:54:22] Production.ERROR: pbx CDR StartTime 2025-02-19 10:54:05 - End Time 2025-02-19 13:54:05 [2025-02-19 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510839', 'tblTempUsageDetail_20' ) start [2025-02-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510839', 'tblTempUsageDetail_20' ) end [2025-02-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510839', 'tblTempVendorCDR_20' ) start [2025-02-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510839', 'tblTempVendorCDR_20' ) end [2025-02-19 13:54:22] Production.INFO: ProcessCDR(1,14510839,1,1,2) [2025-02-19 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510839', 'tblTempUsageDetail_20' ) start [2025-02-19 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510839', 'tblTempUsageDetail_20' ) end [2025-02-19 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:54:28] Production.INFO: ==17970== Releasing lock... [2025-02-19 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:54:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:55:05 [end_date_ymd] => 2025-02-19 13:55:05 [RateCDR] => 1 ) [2025-02-19 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:55:05' and `end` < '2025-02-19 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:55:18] Production.INFO: count ==5376 [2025-02-19 13:55:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:55:05 - End Time 2025-02-19 13:55:05 [2025-02-19 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510844', 'tblTempUsageDetail_20' ) start [2025-02-19 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510844', 'tblTempUsageDetail_20' ) end [2025-02-19 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510844', 'tblTempVendorCDR_20' ) start [2025-02-19 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510844', 'tblTempVendorCDR_20' ) end [2025-02-19 13:55:21] Production.INFO: ProcessCDR(1,14510844,1,1,2) [2025-02-19 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510844', 'tblTempUsageDetail_20' ) start [2025-02-19 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510844', 'tblTempUsageDetail_20' ) end [2025-02-19 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:55:28] Production.INFO: ==18057== Releasing lock... [2025-02-19 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:55:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:56:05 [end_date_ymd] => 2025-02-19 13:56:05 [RateCDR] => 1 ) [2025-02-19 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:56:05' and `end` < '2025-02-19 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:56:18] Production.INFO: count ==5376 [2025-02-19 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:56:05 - End Time 2025-02-19 13:56:05 [2025-02-19 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510849', 'tblTempUsageDetail_20' ) start [2025-02-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510849', 'tblTempUsageDetail_20' ) end [2025-02-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510849', 'tblTempVendorCDR_20' ) start [2025-02-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510849', 'tblTempVendorCDR_20' ) end [2025-02-19 13:56:21] Production.INFO: ProcessCDR(1,14510849,1,1,2) [2025-02-19 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510849', 'tblTempUsageDetail_20' ) start [2025-02-19 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510849', 'tblTempUsageDetail_20' ) end [2025-02-19 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:56:26] Production.INFO: ==18155== Releasing lock... [2025-02-19 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:56:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:57:05 [end_date_ymd] => 2025-02-19 13:57:05 [RateCDR] => 1 ) [2025-02-19 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:57:05' and `end` < '2025-02-19 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:57:18] Production.INFO: count ==5381 [2025-02-19 13:57:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:57:05 - End Time 2025-02-19 13:57:05 [2025-02-19 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510854', 'tblTempUsageDetail_20' ) start [2025-02-19 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510854', 'tblTempUsageDetail_20' ) end [2025-02-19 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510854', 'tblTempVendorCDR_20' ) start [2025-02-19 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510854', 'tblTempVendorCDR_20' ) end [2025-02-19 13:57:21] Production.INFO: ProcessCDR(1,14510854,1,1,2) [2025-02-19 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510854', 'tblTempUsageDetail_20' ) start [2025-02-19 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510854', 'tblTempUsageDetail_20' ) end [2025-02-19 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:57:26] Production.INFO: ==18241== Releasing lock... [2025-02-19 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:57:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:58:05 [end_date_ymd] => 2025-02-19 13:58:05 [RateCDR] => 1 ) [2025-02-19 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:58:05' and `end` < '2025-02-19 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:58:18] Production.INFO: count ==5398 [2025-02-19 13:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 10:58:05 - End Time 2025-02-19 13:58:05 [2025-02-19 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510859', 'tblTempUsageDetail_20' ) start [2025-02-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510859', 'tblTempUsageDetail_20' ) end [2025-02-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510859', 'tblTempVendorCDR_20' ) start [2025-02-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510859', 'tblTempVendorCDR_20' ) end [2025-02-19 13:58:21] Production.INFO: ProcessCDR(1,14510859,1,1,2) [2025-02-19 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510859', 'tblTempUsageDetail_20' ) start [2025-02-19 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510859', 'tblTempUsageDetail_20' ) end [2025-02-19 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:58:26] Production.INFO: ==18328== Releasing lock... [2025-02-19 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:58:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 10:59:05 [end_date_ymd] => 2025-02-19 13:59:05 [RateCDR] => 1 ) [2025-02-19 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 10:59:05' and `end` < '2025-02-19 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 13:59:18] Production.INFO: count ==5401 [2025-02-19 13:59:20] Production.ERROR: pbx CDR StartTime 2025-02-19 10:59:05 - End Time 2025-02-19 13:59:05 [2025-02-19 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510864', 'tblTempUsageDetail_20' ) start [2025-02-19 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510864', 'tblTempUsageDetail_20' ) end [2025-02-19 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510864', 'tblTempVendorCDR_20' ) start [2025-02-19 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510864', 'tblTempVendorCDR_20' ) end [2025-02-19 13:59:21] Production.INFO: ProcessCDR(1,14510864,1,1,2) [2025-02-19 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510864', 'tblTempUsageDetail_20' ) start [2025-02-19 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510864', 'tblTempUsageDetail_20' ) end [2025-02-19 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 13:59:26] Production.INFO: ==18420== Releasing lock... [2025-02-19 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 13:59:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:00:06 [end_date_ymd] => 2025-02-19 14:00:06 [RateCDR] => 1 ) [2025-02-19 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:00:06' and `end` < '2025-02-19 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:00:19] Production.INFO: count ==5412 [2025-02-19 14:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:00:06 - End Time 2025-02-19 14:00:06 [2025-02-19 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510869', 'tblTempUsageDetail_20' ) start [2025-02-19 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510869', 'tblTempUsageDetail_20' ) end [2025-02-19 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510869', 'tblTempVendorCDR_20' ) start [2025-02-19 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510869', 'tblTempVendorCDR_20' ) end [2025-02-19 14:00:22] Production.INFO: ProcessCDR(1,14510869,1,1,2) [2025-02-19 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510869', 'tblTempUsageDetail_20' ) start [2025-02-19 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510869', 'tblTempUsageDetail_20' ) end [2025-02-19 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:00:27] Production.INFO: ==18511== Releasing lock... [2025-02-19 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:00:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:01:05 [end_date_ymd] => 2025-02-19 14:01:05 [RateCDR] => 1 ) [2025-02-19 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:01:05' and `end` < '2025-02-19 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:01:18] Production.INFO: count ==5419 [2025-02-19 14:01:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:01:05 - End Time 2025-02-19 14:01:05 [2025-02-19 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510875', 'tblTempUsageDetail_20' ) start [2025-02-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510875', 'tblTempUsageDetail_20' ) end [2025-02-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510875', 'tblTempVendorCDR_20' ) start [2025-02-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510875', 'tblTempVendorCDR_20' ) end [2025-02-19 14:01:21] Production.INFO: ProcessCDR(1,14510875,1,1,2) [2025-02-19 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510875', 'tblTempUsageDetail_20' ) start [2025-02-19 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510875', 'tblTempUsageDetail_20' ) end [2025-02-19 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:01:27] Production.INFO: ==18613== Releasing lock... [2025-02-19 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:01:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:02:05 [end_date_ymd] => 2025-02-19 14:02:05 [RateCDR] => 1 ) [2025-02-19 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:02:05' and `end` < '2025-02-19 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:02:19] Production.INFO: count ==5426 [2025-02-19 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-19 11:02:05 - End Time 2025-02-19 14:02:05 [2025-02-19 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510880', 'tblTempUsageDetail_20' ) start [2025-02-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510880', 'tblTempUsageDetail_20' ) end [2025-02-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510880', 'tblTempVendorCDR_20' ) start [2025-02-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510880', 'tblTempVendorCDR_20' ) end [2025-02-19 14:02:22] Production.INFO: ProcessCDR(1,14510880,1,1,2) [2025-02-19 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510880', 'tblTempUsageDetail_20' ) start [2025-02-19 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510880', 'tblTempUsageDetail_20' ) end [2025-02-19 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:02:26] Production.INFO: ==18706== Releasing lock... [2025-02-19 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:02:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:03:05 [end_date_ymd] => 2025-02-19 14:03:05 [RateCDR] => 1 ) [2025-02-19 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:03:05' and `end` < '2025-02-19 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:03:18] Production.INFO: count ==5421 [2025-02-19 14:03:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:03:05 - End Time 2025-02-19 14:03:05 [2025-02-19 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510885', 'tblTempUsageDetail_20' ) start [2025-02-19 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510885', 'tblTempUsageDetail_20' ) end [2025-02-19 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510885', 'tblTempVendorCDR_20' ) start [2025-02-19 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510885', 'tblTempVendorCDR_20' ) end [2025-02-19 14:03:21] Production.INFO: ProcessCDR(1,14510885,1,1,2) [2025-02-19 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510885', 'tblTempUsageDetail_20' ) start [2025-02-19 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510885', 'tblTempUsageDetail_20' ) end [2025-02-19 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:03:27] Production.INFO: ==18802== Releasing lock... [2025-02-19 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:03:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:04:06 [end_date_ymd] => 2025-02-19 14:04:06 [RateCDR] => 1 ) [2025-02-19 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:04:06' and `end` < '2025-02-19 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:04:18] Production.INFO: count ==5407 [2025-02-19 14:04:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:04:06 - End Time 2025-02-19 14:04:06 [2025-02-19 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510890', 'tblTempUsageDetail_20' ) start [2025-02-19 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510890', 'tblTempUsageDetail_20' ) end [2025-02-19 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510890', 'tblTempVendorCDR_20' ) start [2025-02-19 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510890', 'tblTempVendorCDR_20' ) end [2025-02-19 14:04:21] Production.INFO: ProcessCDR(1,14510890,1,1,2) [2025-02-19 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510890', 'tblTempUsageDetail_20' ) start [2025-02-19 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510890', 'tblTempUsageDetail_20' ) end [2025-02-19 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:04:26] Production.INFO: ==18893== Releasing lock... [2025-02-19 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:04:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:05:05 [end_date_ymd] => 2025-02-19 14:05:05 [RateCDR] => 1 ) [2025-02-19 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:05:05' and `end` < '2025-02-19 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:05:18] Production.INFO: count ==5403 [2025-02-19 14:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:05:05 - End Time 2025-02-19 14:05:05 [2025-02-19 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510895', 'tblTempUsageDetail_20' ) start [2025-02-19 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510895', 'tblTempUsageDetail_20' ) end [2025-02-19 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510895', 'tblTempVendorCDR_20' ) start [2025-02-19 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510895', 'tblTempVendorCDR_20' ) end [2025-02-19 14:05:21] Production.INFO: ProcessCDR(1,14510895,1,1,2) [2025-02-19 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510895', 'tblTempUsageDetail_20' ) start [2025-02-19 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510895', 'tblTempUsageDetail_20' ) end [2025-02-19 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:05:26] Production.INFO: ==19033== Releasing lock... [2025-02-19 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:05:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:06:05 [end_date_ymd] => 2025-02-19 14:06:05 [RateCDR] => 1 ) [2025-02-19 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:06:05' and `end` < '2025-02-19 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:06:18] Production.INFO: count ==5372 [2025-02-19 14:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:06:05 - End Time 2025-02-19 14:06:05 [2025-02-19 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510900', 'tblTempUsageDetail_20' ) start [2025-02-19 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510900', 'tblTempUsageDetail_20' ) end [2025-02-19 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510900', 'tblTempVendorCDR_20' ) start [2025-02-19 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510900', 'tblTempVendorCDR_20' ) end [2025-02-19 14:06:20] Production.INFO: ProcessCDR(1,14510900,1,1,2) [2025-02-19 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510900', 'tblTempUsageDetail_20' ) start [2025-02-19 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510900', 'tblTempUsageDetail_20' ) end [2025-02-19 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:06:25] Production.INFO: ==19129== Releasing lock... [2025-02-19 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:06:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:07:05 [end_date_ymd] => 2025-02-19 14:07:05 [RateCDR] => 1 ) [2025-02-19 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:07:05' and `end` < '2025-02-19 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:07:18] Production.INFO: count ==5348 [2025-02-19 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:07:05 - End Time 2025-02-19 14:07:05 [2025-02-19 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510905', 'tblTempUsageDetail_20' ) start [2025-02-19 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510905', 'tblTempUsageDetail_20' ) end [2025-02-19 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510905', 'tblTempVendorCDR_20' ) start [2025-02-19 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510905', 'tblTempVendorCDR_20' ) end [2025-02-19 14:07:20] Production.INFO: ProcessCDR(1,14510905,1,1,2) [2025-02-19 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510905', 'tblTempUsageDetail_20' ) start [2025-02-19 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510905', 'tblTempUsageDetail_20' ) end [2025-02-19 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:07:25] Production.INFO: ==19217== Releasing lock... [2025-02-19 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:07:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:08:05 [end_date_ymd] => 2025-02-19 14:08:05 [RateCDR] => 1 ) [2025-02-19 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:08:05' and `end` < '2025-02-19 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:08:18] Production.INFO: count ==5342 [2025-02-19 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:08:05 - End Time 2025-02-19 14:08:05 [2025-02-19 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510910', 'tblTempUsageDetail_20' ) start [2025-02-19 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510910', 'tblTempUsageDetail_20' ) end [2025-02-19 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510910', 'tblTempVendorCDR_20' ) start [2025-02-19 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510910', 'tblTempVendorCDR_20' ) end [2025-02-19 14:08:21] Production.INFO: ProcessCDR(1,14510910,1,1,2) [2025-02-19 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510910', 'tblTempUsageDetail_20' ) start [2025-02-19 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510910', 'tblTempUsageDetail_20' ) end [2025-02-19 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:08:26] Production.INFO: ==19308== Releasing lock... [2025-02-19 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:08:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:09:05 [end_date_ymd] => 2025-02-19 14:09:05 [RateCDR] => 1 ) [2025-02-19 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:09:05' and `end` < '2025-02-19 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:09:18] Production.INFO: count ==5355 [2025-02-19 14:09:22] Production.ERROR: pbx CDR StartTime 2025-02-19 11:09:05 - End Time 2025-02-19 14:09:05 [2025-02-19 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510915', 'tblTempUsageDetail_20' ) start [2025-02-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510915', 'tblTempUsageDetail_20' ) end [2025-02-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510915', 'tblTempVendorCDR_20' ) start [2025-02-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510915', 'tblTempVendorCDR_20' ) end [2025-02-19 14:09:22] Production.INFO: ProcessCDR(1,14510915,1,1,2) [2025-02-19 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510915', 'tblTempUsageDetail_20' ) start [2025-02-19 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510915', 'tblTempUsageDetail_20' ) end [2025-02-19 14:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:09:30] Production.INFO: ==19399== Releasing lock... [2025-02-19 14:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:09:30] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:10:06 [end_date_ymd] => 2025-02-19 14:10:06 [RateCDR] => 1 ) [2025-02-19 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:10:06' and `end` < '2025-02-19 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:10:19] Production.INFO: count ==5359 [2025-02-19 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 11:10:06 - End Time 2025-02-19 14:10:06 [2025-02-19 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510921', 'tblTempUsageDetail_20' ) start [2025-02-19 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510921', 'tblTempUsageDetail_20' ) end [2025-02-19 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510921', 'tblTempVendorCDR_20' ) start [2025-02-19 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510921', 'tblTempVendorCDR_20' ) end [2025-02-19 14:10:22] Production.INFO: ProcessCDR(1,14510921,1,1,2) [2025-02-19 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510921', 'tblTempUsageDetail_20' ) start [2025-02-19 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510921', 'tblTempUsageDetail_20' ) end [2025-02-19 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:10:27] Production.INFO: ==19495== Releasing lock... [2025-02-19 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:10:27] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:11:06 [end_date_ymd] => 2025-02-19 14:11:06 [RateCDR] => 1 ) [2025-02-19 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:11:06' and `end` < '2025-02-19 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:11:19] Production.INFO: count ==5351 [2025-02-19 14:11:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:11:06 - End Time 2025-02-19 14:11:06 [2025-02-19 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510926', 'tblTempUsageDetail_20' ) start [2025-02-19 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510926', 'tblTempUsageDetail_20' ) end [2025-02-19 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510926', 'tblTempVendorCDR_20' ) start [2025-02-19 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510926', 'tblTempVendorCDR_20' ) end [2025-02-19 14:11:21] Production.INFO: ProcessCDR(1,14510926,1,1,2) [2025-02-19 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510926', 'tblTempUsageDetail_20' ) start [2025-02-19 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510926', 'tblTempUsageDetail_20' ) end [2025-02-19 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:11:26] Production.INFO: ==19592== Releasing lock... [2025-02-19 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:11:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:12:06 [end_date_ymd] => 2025-02-19 14:12:06 [RateCDR] => 1 ) [2025-02-19 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:12:06' and `end` < '2025-02-19 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:12:19] Production.INFO: count ==5325 [2025-02-19 14:12:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:12:06 - End Time 2025-02-19 14:12:06 [2025-02-19 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510931', 'tblTempUsageDetail_20' ) start [2025-02-19 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510931', 'tblTempUsageDetail_20' ) end [2025-02-19 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510931', 'tblTempVendorCDR_20' ) start [2025-02-19 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510931', 'tblTempVendorCDR_20' ) end [2025-02-19 14:12:21] Production.INFO: ProcessCDR(1,14510931,1,1,2) [2025-02-19 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510931', 'tblTempUsageDetail_20' ) start [2025-02-19 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510931', 'tblTempUsageDetail_20' ) end [2025-02-19 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:12:26] Production.INFO: ==19681== Releasing lock... [2025-02-19 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:12:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:13:05 [end_date_ymd] => 2025-02-19 14:13:05 [RateCDR] => 1 ) [2025-02-19 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:13:05' and `end` < '2025-02-19 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:13:18] Production.INFO: count ==5304 [2025-02-19 14:13:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:13:05 - End Time 2025-02-19 14:13:05 [2025-02-19 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510936', 'tblTempUsageDetail_20' ) start [2025-02-19 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510936', 'tblTempUsageDetail_20' ) end [2025-02-19 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510936', 'tblTempVendorCDR_20' ) start [2025-02-19 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510936', 'tblTempVendorCDR_20' ) end [2025-02-19 14:13:20] Production.INFO: ProcessCDR(1,14510936,1,1,2) [2025-02-19 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510936', 'tblTempUsageDetail_20' ) start [2025-02-19 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510936', 'tblTempUsageDetail_20' ) end [2025-02-19 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:13:25] Production.INFO: ==19767== Releasing lock... [2025-02-19 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:13:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:14:05 [end_date_ymd] => 2025-02-19 14:14:05 [RateCDR] => 1 ) [2025-02-19 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:14:05' and `end` < '2025-02-19 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:14:18] Production.INFO: count ==5304 [2025-02-19 14:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:14:05 - End Time 2025-02-19 14:14:05 [2025-02-19 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510941', 'tblTempUsageDetail_20' ) start [2025-02-19 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510941', 'tblTempUsageDetail_20' ) end [2025-02-19 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510941', 'tblTempVendorCDR_20' ) start [2025-02-19 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510941', 'tblTempVendorCDR_20' ) end [2025-02-19 14:14:20] Production.INFO: ProcessCDR(1,14510941,1,1,2) [2025-02-19 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510941', 'tblTempUsageDetail_20' ) start [2025-02-19 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510941', 'tblTempUsageDetail_20' ) end [2025-02-19 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:14:25] Production.INFO: ==19859== Releasing lock... [2025-02-19 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:14:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:15:05 [end_date_ymd] => 2025-02-19 14:15:05 [RateCDR] => 1 ) [2025-02-19 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:15:05' and `end` < '2025-02-19 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:15:18] Production.INFO: count ==5299 [2025-02-19 14:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:15:05 - End Time 2025-02-19 14:15:05 [2025-02-19 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510946', 'tblTempUsageDetail_20' ) start [2025-02-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510946', 'tblTempUsageDetail_20' ) end [2025-02-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510946', 'tblTempVendorCDR_20' ) start [2025-02-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510946', 'tblTempVendorCDR_20' ) end [2025-02-19 14:15:21] Production.INFO: ProcessCDR(1,14510946,1,1,2) [2025-02-19 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510946', 'tblTempUsageDetail_20' ) start [2025-02-19 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510946', 'tblTempUsageDetail_20' ) end [2025-02-19 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:15:26] Production.INFO: ==19950== Releasing lock... [2025-02-19 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:15:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:16:05 [end_date_ymd] => 2025-02-19 14:16:05 [RateCDR] => 1 ) [2025-02-19 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:16:05' and `end` < '2025-02-19 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:16:19] Production.INFO: count ==5302 [2025-02-19 14:16:23] Production.ERROR: pbx CDR StartTime 2025-02-19 11:16:05 - End Time 2025-02-19 14:16:05 [2025-02-19 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510951', 'tblTempUsageDetail_20' ) start [2025-02-19 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510951', 'tblTempUsageDetail_20' ) end [2025-02-19 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510951', 'tblTempVendorCDR_20' ) start [2025-02-19 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510951', 'tblTempVendorCDR_20' ) end [2025-02-19 14:16:23] Production.INFO: ProcessCDR(1,14510951,1,1,2) [2025-02-19 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510951', 'tblTempUsageDetail_20' ) start [2025-02-19 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510951', 'tblTempUsageDetail_20' ) end [2025-02-19 14:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:16:29] Production.INFO: ==20038== Releasing lock... [2025-02-19 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:16:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:17:06 [end_date_ymd] => 2025-02-19 14:17:06 [RateCDR] => 1 ) [2025-02-19 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:17:06' and `end` < '2025-02-19 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:17:19] Production.INFO: count ==5284 [2025-02-19 14:17:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:17:06 - End Time 2025-02-19 14:17:06 [2025-02-19 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510957', 'tblTempUsageDetail_20' ) start [2025-02-19 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510957', 'tblTempUsageDetail_20' ) end [2025-02-19 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510957', 'tblTempVendorCDR_20' ) start [2025-02-19 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510957', 'tblTempVendorCDR_20' ) end [2025-02-19 14:17:21] Production.INFO: ProcessCDR(1,14510957,1,1,2) [2025-02-19 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510957', 'tblTempUsageDetail_20' ) start [2025-02-19 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510957', 'tblTempUsageDetail_20' ) end [2025-02-19 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:17:27] Production.INFO: ==20131== Releasing lock... [2025-02-19 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:17:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:18:05 [end_date_ymd] => 2025-02-19 14:18:05 [RateCDR] => 1 ) [2025-02-19 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:18:05' and `end` < '2025-02-19 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:18:18] Production.INFO: count ==5297 [2025-02-19 14:18:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:18:05 - End Time 2025-02-19 14:18:05 [2025-02-19 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510962', 'tblTempUsageDetail_20' ) start [2025-02-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510962', 'tblTempUsageDetail_20' ) end [2025-02-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510962', 'tblTempVendorCDR_20' ) start [2025-02-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510962', 'tblTempVendorCDR_20' ) end [2025-02-19 14:18:21] Production.INFO: ProcessCDR(1,14510962,1,1,2) [2025-02-19 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510962', 'tblTempUsageDetail_20' ) start [2025-02-19 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510962', 'tblTempUsageDetail_20' ) end [2025-02-19 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:18:27] Production.INFO: ==20223== Releasing lock... [2025-02-19 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:19:06 [end_date_ymd] => 2025-02-19 14:19:06 [RateCDR] => 1 ) [2025-02-19 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:19:06' and `end` < '2025-02-19 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:19:19] Production.INFO: count ==5303 [2025-02-19 14:19:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:19:06 - End Time 2025-02-19 14:19:06 [2025-02-19 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510967', 'tblTempUsageDetail_20' ) start [2025-02-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510967', 'tblTempUsageDetail_20' ) end [2025-02-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510967', 'tblTempVendorCDR_20' ) start [2025-02-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510967', 'tblTempVendorCDR_20' ) end [2025-02-19 14:19:21] Production.INFO: ProcessCDR(1,14510967,1,1,2) [2025-02-19 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510967', 'tblTempUsageDetail_20' ) start [2025-02-19 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510967', 'tblTempUsageDetail_20' ) end [2025-02-19 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:19:27] Production.INFO: ==20310== Releasing lock... [2025-02-19 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:20:05 [end_date_ymd] => 2025-02-19 14:20:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 11:20:05' and `end` < '2025-02-19 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-02-19 14:20:18] Production.INFO: count ==5292 [2025-02-19 14:20:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:20:05 - End Time 2025-02-19 14:20:05 [2025-02-19 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510973', 'tblTempUsageDetail_20' ) start [2025-02-19 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510973', 'tblTempUsageDetail_20' ) end [2025-02-19 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510973', 'tblTempVendorCDR_20' ) start [2025-02-19 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510973', 'tblTempVendorCDR_20' ) end [2025-02-19 14:20:21] Production.INFO: ProcessCDR(1,14510973,1,1,2) [2025-02-19 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510973', 'tblTempUsageDetail_20' ) start [2025-02-19 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510973', 'tblTempUsageDetail_20' ) end [2025-02-19 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:20:26] Production.INFO: ==20440== Releasing lock... [2025-02-19 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:20:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:21:05 [end_date_ymd] => 2025-02-19 14:21:05 [RateCDR] => 1 ) [2025-02-19 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:21:05' and `end` < '2025-02-19 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:21:18] Production.INFO: count ==5348 [2025-02-19 14:21:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:21:05 - End Time 2025-02-19 14:21:05 [2025-02-19 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510978', 'tblTempUsageDetail_20' ) start [2025-02-19 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510978', 'tblTempUsageDetail_20' ) end [2025-02-19 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510978', 'tblTempVendorCDR_20' ) start [2025-02-19 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510978', 'tblTempVendorCDR_20' ) end [2025-02-19 14:21:21] Production.INFO: ProcessCDR(1,14510978,1,1,2) [2025-02-19 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510978', 'tblTempUsageDetail_20' ) start [2025-02-19 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510978', 'tblTempUsageDetail_20' ) end [2025-02-19 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:21:26] Production.INFO: ==20569== Releasing lock... [2025-02-19 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:21:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:22:06 [end_date_ymd] => 2025-02-19 14:22:06 [RateCDR] => 1 ) [2025-02-19 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:22:06' and `end` < '2025-02-19 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:22:19] Production.INFO: count ==5369 [2025-02-19 14:22:22] Production.ERROR: pbx CDR StartTime 2025-02-19 11:22:06 - End Time 2025-02-19 14:22:06 [2025-02-19 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510983', 'tblTempUsageDetail_20' ) start [2025-02-19 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510983', 'tblTempUsageDetail_20' ) end [2025-02-19 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510983', 'tblTempVendorCDR_20' ) start [2025-02-19 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510983', 'tblTempVendorCDR_20' ) end [2025-02-19 14:22:22] Production.INFO: ProcessCDR(1,14510983,1,1,2) [2025-02-19 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510983', 'tblTempUsageDetail_20' ) start [2025-02-19 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510983', 'tblTempUsageDetail_20' ) end [2025-02-19 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:22:27] Production.INFO: ==20660== Releasing lock... [2025-02-19 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:22:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:23:05 [end_date_ymd] => 2025-02-19 14:23:05 [RateCDR] => 1 ) [2025-02-19 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:23:05' and `end` < '2025-02-19 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:23:18] Production.INFO: count ==5375 [2025-02-19 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:23:05 - End Time 2025-02-19 14:23:05 [2025-02-19 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510988', 'tblTempUsageDetail_20' ) start [2025-02-19 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510988', 'tblTempUsageDetail_20' ) end [2025-02-19 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510988', 'tblTempVendorCDR_20' ) start [2025-02-19 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510988', 'tblTempVendorCDR_20' ) end [2025-02-19 14:23:21] Production.INFO: ProcessCDR(1,14510988,1,1,2) [2025-02-19 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510988', 'tblTempUsageDetail_20' ) start [2025-02-19 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510988', 'tblTempUsageDetail_20' ) end [2025-02-19 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:23:26] Production.INFO: ==20750== Releasing lock... [2025-02-19 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:23:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:24:05 [end_date_ymd] => 2025-02-19 14:24:05 [RateCDR] => 1 ) [2025-02-19 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:24:05' and `end` < '2025-02-19 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:24:18] Production.INFO: count ==5379 [2025-02-19 14:24:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:24:05 - End Time 2025-02-19 14:24:05 [2025-02-19 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510993', 'tblTempUsageDetail_20' ) start [2025-02-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510993', 'tblTempUsageDetail_20' ) end [2025-02-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510993', 'tblTempVendorCDR_20' ) start [2025-02-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510993', 'tblTempVendorCDR_20' ) end [2025-02-19 14:24:21] Production.INFO: ProcessCDR(1,14510993,1,1,2) [2025-02-19 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510993', 'tblTempUsageDetail_20' ) start [2025-02-19 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510993', 'tblTempUsageDetail_20' ) end [2025-02-19 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:24:26] Production.INFO: ==20840== Releasing lock... [2025-02-19 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:24:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:25:05 [end_date_ymd] => 2025-02-19 14:25:05 [RateCDR] => 1 ) [2025-02-19 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:25:05' and `end` < '2025-02-19 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:25:18] Production.INFO: count ==5382 [2025-02-19 14:25:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:25:05 - End Time 2025-02-19 14:25:05 [2025-02-19 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510998', 'tblTempUsageDetail_20' ) start [2025-02-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14510998', 'tblTempUsageDetail_20' ) end [2025-02-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510998', 'tblTempVendorCDR_20' ) start [2025-02-19 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14510998', 'tblTempVendorCDR_20' ) end [2025-02-19 14:25:21] Production.INFO: ProcessCDR(1,14510998,1,1,2) [2025-02-19 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14510998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14510998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14510998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14510998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510998', 'tblTempUsageDetail_20' ) start [2025-02-19 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14510998', 'tblTempUsageDetail_20' ) end [2025-02-19 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:25:26] Production.INFO: ==20927== Releasing lock... [2025-02-19 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:25:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:26:05 [end_date_ymd] => 2025-02-19 14:26:05 [RateCDR] => 1 ) [2025-02-19 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:26:05' and `end` < '2025-02-19 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:26:18] Production.INFO: count ==5373 [2025-02-19 14:26:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:26:05 - End Time 2025-02-19 14:26:05 [2025-02-19 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511003', 'tblTempUsageDetail_20' ) start [2025-02-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511003', 'tblTempUsageDetail_20' ) end [2025-02-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511003', 'tblTempVendorCDR_20' ) start [2025-02-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511003', 'tblTempVendorCDR_20' ) end [2025-02-19 14:26:21] Production.INFO: ProcessCDR(1,14511003,1,1,2) [2025-02-19 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511003', 'tblTempUsageDetail_20' ) start [2025-02-19 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511003', 'tblTempUsageDetail_20' ) end [2025-02-19 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:26:26] Production.INFO: ==21019== Releasing lock... [2025-02-19 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:26:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:27:05 [end_date_ymd] => 2025-02-19 14:27:05 [RateCDR] => 1 ) [2025-02-19 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:27:05' and `end` < '2025-02-19 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:27:18] Production.INFO: count ==5378 [2025-02-19 14:27:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:27:05 - End Time 2025-02-19 14:27:05 [2025-02-19 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511008', 'tblTempUsageDetail_20' ) start [2025-02-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511008', 'tblTempUsageDetail_20' ) end [2025-02-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511008', 'tblTempVendorCDR_20' ) start [2025-02-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511008', 'tblTempVendorCDR_20' ) end [2025-02-19 14:27:21] Production.INFO: ProcessCDR(1,14511008,1,1,2) [2025-02-19 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511008', 'tblTempUsageDetail_20' ) start [2025-02-19 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511008', 'tblTempUsageDetail_20' ) end [2025-02-19 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:27:25] Production.INFO: ==21105== Releasing lock... [2025-02-19 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:27:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:28:05 [end_date_ymd] => 2025-02-19 14:28:05 [RateCDR] => 1 ) [2025-02-19 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:28:05' and `end` < '2025-02-19 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:28:18] Production.INFO: count ==5375 [2025-02-19 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:28:05 - End Time 2025-02-19 14:28:05 [2025-02-19 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511013', 'tblTempUsageDetail_20' ) start [2025-02-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511013', 'tblTempUsageDetail_20' ) end [2025-02-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511013', 'tblTempVendorCDR_20' ) start [2025-02-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511013', 'tblTempVendorCDR_20' ) end [2025-02-19 14:28:21] Production.INFO: ProcessCDR(1,14511013,1,1,2) [2025-02-19 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511013', 'tblTempUsageDetail_20' ) start [2025-02-19 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511013', 'tblTempUsageDetail_20' ) end [2025-02-19 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:28:26] Production.INFO: ==21195== Releasing lock... [2025-02-19 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:28:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:29:05 [end_date_ymd] => 2025-02-19 14:29:05 [RateCDR] => 1 ) [2025-02-19 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:29:05' and `end` < '2025-02-19 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:29:18] Production.INFO: count ==5357 [2025-02-19 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:29:05 - End Time 2025-02-19 14:29:05 [2025-02-19 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511018', 'tblTempUsageDetail_20' ) start [2025-02-19 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511018', 'tblTempUsageDetail_20' ) end [2025-02-19 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511018', 'tblTempVendorCDR_20' ) start [2025-02-19 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511018', 'tblTempVendorCDR_20' ) end [2025-02-19 14:29:20] Production.INFO: ProcessCDR(1,14511018,1,1,2) [2025-02-19 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511018', 'tblTempUsageDetail_20' ) start [2025-02-19 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511018', 'tblTempUsageDetail_20' ) end [2025-02-19 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:29:25] Production.INFO: ==21283== Releasing lock... [2025-02-19 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:29:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:30:06 [end_date_ymd] => 2025-02-19 14:30:06 [RateCDR] => 1 ) [2025-02-19 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:30:06' and `end` < '2025-02-19 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:30:18] Production.INFO: count ==5360 [2025-02-19 14:30:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:30:06 - End Time 2025-02-19 14:30:06 [2025-02-19 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511023', 'tblTempUsageDetail_20' ) start [2025-02-19 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511023', 'tblTempUsageDetail_20' ) end [2025-02-19 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511023', 'tblTempVendorCDR_20' ) start [2025-02-19 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511023', 'tblTempVendorCDR_20' ) end [2025-02-19 14:30:21] Production.INFO: ProcessCDR(1,14511023,1,1,2) [2025-02-19 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511023', 'tblTempUsageDetail_20' ) start [2025-02-19 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511023', 'tblTempUsageDetail_20' ) end [2025-02-19 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:30:26] Production.INFO: ==21375== Releasing lock... [2025-02-19 14:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:30:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:31:05 [end_date_ymd] => 2025-02-19 14:31:05 [RateCDR] => 1 ) [2025-02-19 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:31:05' and `end` < '2025-02-19 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:31:17] Production.INFO: count ==5330 [2025-02-19 14:31:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:31:05 - End Time 2025-02-19 14:31:05 [2025-02-19 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511029', 'tblTempUsageDetail_20' ) start [2025-02-19 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511029', 'tblTempUsageDetail_20' ) end [2025-02-19 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511029', 'tblTempVendorCDR_20' ) start [2025-02-19 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511029', 'tblTempVendorCDR_20' ) end [2025-02-19 14:31:20] Production.INFO: ProcessCDR(1,14511029,1,1,2) [2025-02-19 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511029', 'tblTempUsageDetail_20' ) start [2025-02-19 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511029', 'tblTempUsageDetail_20' ) end [2025-02-19 14:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:31:25] Production.INFO: ==21461== Releasing lock... [2025-02-19 14:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:31:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:32:05 [end_date_ymd] => 2025-02-19 14:32:05 [RateCDR] => 1 ) [2025-02-19 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:32:05' and `end` < '2025-02-19 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:32:18] Production.INFO: count ==5326 [2025-02-19 14:32:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:32:05 - End Time 2025-02-19 14:32:05 [2025-02-19 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511034', 'tblTempUsageDetail_20' ) start [2025-02-19 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511034', 'tblTempUsageDetail_20' ) end [2025-02-19 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511034', 'tblTempVendorCDR_20' ) start [2025-02-19 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511034', 'tblTempVendorCDR_20' ) end [2025-02-19 14:32:21] Production.INFO: ProcessCDR(1,14511034,1,1,2) [2025-02-19 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511034', 'tblTempUsageDetail_20' ) start [2025-02-19 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511034', 'tblTempUsageDetail_20' ) end [2025-02-19 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:32:27] Production.INFO: ==21547== Releasing lock... [2025-02-19 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:32:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:33:06 [end_date_ymd] => 2025-02-19 14:33:06 [RateCDR] => 1 ) [2025-02-19 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:33:06' and `end` < '2025-02-19 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:33:18] Production.INFO: count ==5328 [2025-02-19 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:33:06 - End Time 2025-02-19 14:33:06 [2025-02-19 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511039', 'tblTempUsageDetail_20' ) start [2025-02-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511039', 'tblTempUsageDetail_20' ) end [2025-02-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511039', 'tblTempVendorCDR_20' ) start [2025-02-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511039', 'tblTempVendorCDR_20' ) end [2025-02-19 14:33:21] Production.INFO: ProcessCDR(1,14511039,1,1,2) [2025-02-19 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511039', 'tblTempUsageDetail_20' ) start [2025-02-19 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511039', 'tblTempUsageDetail_20' ) end [2025-02-19 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:33:26] Production.INFO: ==21634== Releasing lock... [2025-02-19 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:33:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:34:05 [end_date_ymd] => 2025-02-19 14:34:05 [RateCDR] => 1 ) [2025-02-19 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:34:05' and `end` < '2025-02-19 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:34:18] Production.INFO: count ==5317 [2025-02-19 14:34:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:34:05 - End Time 2025-02-19 14:34:05 [2025-02-19 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511044', 'tblTempUsageDetail_20' ) start [2025-02-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511044', 'tblTempUsageDetail_20' ) end [2025-02-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511044', 'tblTempVendorCDR_20' ) start [2025-02-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511044', 'tblTempVendorCDR_20' ) end [2025-02-19 14:34:21] Production.INFO: ProcessCDR(1,14511044,1,1,2) [2025-02-19 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511044', 'tblTempUsageDetail_20' ) start [2025-02-19 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511044', 'tblTempUsageDetail_20' ) end [2025-02-19 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:34:26] Production.INFO: ==21714== Releasing lock... [2025-02-19 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:34:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:35:05 [end_date_ymd] => 2025-02-19 14:35:05 [RateCDR] => 1 ) [2025-02-19 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:35:05' and `end` < '2025-02-19 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:35:18] Production.INFO: count ==5312 [2025-02-19 14:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:35:05 - End Time 2025-02-19 14:35:05 [2025-02-19 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511049', 'tblTempUsageDetail_20' ) start [2025-02-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511049', 'tblTempUsageDetail_20' ) end [2025-02-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511049', 'tblTempVendorCDR_20' ) start [2025-02-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511049', 'tblTempVendorCDR_20' ) end [2025-02-19 14:35:21] Production.INFO: ProcessCDR(1,14511049,1,1,2) [2025-02-19 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511049', 'tblTempUsageDetail_20' ) start [2025-02-19 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511049', 'tblTempUsageDetail_20' ) end [2025-02-19 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:35:25] Production.INFO: ==21800== Releasing lock... [2025-02-19 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:35:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:36:05 [end_date_ymd] => 2025-02-19 14:36:05 [RateCDR] => 1 ) [2025-02-19 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:36:05' and `end` < '2025-02-19 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:36:18] Production.INFO: count ==5310 [2025-02-19 14:36:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:36:05 - End Time 2025-02-19 14:36:05 [2025-02-19 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511054', 'tblTempUsageDetail_20' ) start [2025-02-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511054', 'tblTempUsageDetail_20' ) end [2025-02-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511054', 'tblTempVendorCDR_20' ) start [2025-02-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511054', 'tblTempVendorCDR_20' ) end [2025-02-19 14:36:21] Production.INFO: ProcessCDR(1,14511054,1,1,2) [2025-02-19 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511054', 'tblTempUsageDetail_20' ) start [2025-02-19 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511054', 'tblTempUsageDetail_20' ) end [2025-02-19 14:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:36:25] Production.INFO: ==21912== Releasing lock... [2025-02-19 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:36:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:37:05 [end_date_ymd] => 2025-02-19 14:37:05 [RateCDR] => 1 ) [2025-02-19 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:37:05' and `end` < '2025-02-19 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:37:18] Production.INFO: count ==5315 [2025-02-19 14:37:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:37:05 - End Time 2025-02-19 14:37:05 [2025-02-19 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511059', 'tblTempUsageDetail_20' ) start [2025-02-19 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511059', 'tblTempUsageDetail_20' ) end [2025-02-19 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511059', 'tblTempVendorCDR_20' ) start [2025-02-19 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511059', 'tblTempVendorCDR_20' ) end [2025-02-19 14:37:21] Production.INFO: ProcessCDR(1,14511059,1,1,2) [2025-02-19 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511059', 'tblTempUsageDetail_20' ) start [2025-02-19 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511059', 'tblTempUsageDetail_20' ) end [2025-02-19 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:37:26] Production.INFO: ==21987== Releasing lock... [2025-02-19 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:38:05 [end_date_ymd] => 2025-02-19 14:38:05 [RateCDR] => 1 ) [2025-02-19 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:38:05' and `end` < '2025-02-19 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:38:18] Production.INFO: count ==5334 [2025-02-19 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:38:05 - End Time 2025-02-19 14:38:05 [2025-02-19 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511064', 'tblTempUsageDetail_20' ) start [2025-02-19 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511064', 'tblTempUsageDetail_20' ) end [2025-02-19 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511064', 'tblTempVendorCDR_20' ) start [2025-02-19 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511064', 'tblTempVendorCDR_20' ) end [2025-02-19 14:38:20] Production.INFO: ProcessCDR(1,14511064,1,1,2) [2025-02-19 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511064', 'tblTempUsageDetail_20' ) start [2025-02-19 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511064', 'tblTempUsageDetail_20' ) end [2025-02-19 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:38:25] Production.INFO: ==22062== Releasing lock... [2025-02-19 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:38:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:39:05 [end_date_ymd] => 2025-02-19 14:39:05 [RateCDR] => 1 ) [2025-02-19 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:39:05' and `end` < '2025-02-19 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:39:18] Production.INFO: count ==5346 [2025-02-19 14:39:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:39:05 - End Time 2025-02-19 14:39:05 [2025-02-19 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511069', 'tblTempUsageDetail_20' ) start [2025-02-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511069', 'tblTempUsageDetail_20' ) end [2025-02-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511069', 'tblTempVendorCDR_20' ) start [2025-02-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511069', 'tblTempVendorCDR_20' ) end [2025-02-19 14:39:21] Production.INFO: ProcessCDR(1,14511069,1,1,2) [2025-02-19 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511069', 'tblTempUsageDetail_20' ) start [2025-02-19 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511069', 'tblTempUsageDetail_20' ) end [2025-02-19 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:39:26] Production.INFO: ==22135== Releasing lock... [2025-02-19 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:39:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:40:06 [end_date_ymd] => 2025-02-19 14:40:06 [RateCDR] => 1 ) [2025-02-19 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:40:06' and `end` < '2025-02-19 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:40:19] Production.INFO: count ==5370 [2025-02-19 14:40:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:40:06 - End Time 2025-02-19 14:40:06 [2025-02-19 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511075', 'tblTempUsageDetail_20' ) start [2025-02-19 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511075', 'tblTempUsageDetail_20' ) end [2025-02-19 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511075', 'tblTempVendorCDR_20' ) start [2025-02-19 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511075', 'tblTempVendorCDR_20' ) end [2025-02-19 14:40:21] Production.INFO: ProcessCDR(1,14511075,1,1,2) [2025-02-19 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511075', 'tblTempUsageDetail_20' ) start [2025-02-19 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511075', 'tblTempUsageDetail_20' ) end [2025-02-19 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:40:27] Production.INFO: ==22209== Releasing lock... [2025-02-19 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:40:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:41:05 [end_date_ymd] => 2025-02-19 14:41:05 [RateCDR] => 1 ) [2025-02-19 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:41:05' and `end` < '2025-02-19 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:41:18] Production.INFO: count ==5352 [2025-02-19 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:41:05 - End Time 2025-02-19 14:41:05 [2025-02-19 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511080', 'tblTempUsageDetail_20' ) start [2025-02-19 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511080', 'tblTempUsageDetail_20' ) end [2025-02-19 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511080', 'tblTempVendorCDR_20' ) start [2025-02-19 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511080', 'tblTempVendorCDR_20' ) end [2025-02-19 14:41:21] Production.INFO: ProcessCDR(1,14511080,1,1,2) [2025-02-19 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511080', 'tblTempUsageDetail_20' ) start [2025-02-19 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511080', 'tblTempUsageDetail_20' ) end [2025-02-19 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:41:26] Production.INFO: ==22288== Releasing lock... [2025-02-19 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:41:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:42:05 [end_date_ymd] => 2025-02-19 14:42:05 [RateCDR] => 1 ) [2025-02-19 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:42:05' and `end` < '2025-02-19 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:42:18] Production.INFO: count ==5354 [2025-02-19 14:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:42:05 - End Time 2025-02-19 14:42:05 [2025-02-19 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511085', 'tblTempUsageDetail_20' ) start [2025-02-19 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511085', 'tblTempUsageDetail_20' ) end [2025-02-19 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511085', 'tblTempVendorCDR_20' ) start [2025-02-19 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511085', 'tblTempVendorCDR_20' ) end [2025-02-19 14:42:20] Production.INFO: ProcessCDR(1,14511085,1,1,2) [2025-02-19 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511085', 'tblTempUsageDetail_20' ) start [2025-02-19 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511085', 'tblTempUsageDetail_20' ) end [2025-02-19 14:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:42:26] Production.INFO: ==22360== Releasing lock... [2025-02-19 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:42:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:43:06 [end_date_ymd] => 2025-02-19 14:43:06 [RateCDR] => 1 ) [2025-02-19 14:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:43:06' and `end` < '2025-02-19 14:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:43:18] Production.INFO: count ==5345 [2025-02-19 14:43:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:43:06 - End Time 2025-02-19 14:43:06 [2025-02-19 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511090', 'tblTempUsageDetail_20' ) start [2025-02-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511090', 'tblTempUsageDetail_20' ) end [2025-02-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511090', 'tblTempVendorCDR_20' ) start [2025-02-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511090', 'tblTempVendorCDR_20' ) end [2025-02-19 14:43:21] Production.INFO: ProcessCDR(1,14511090,1,1,2) [2025-02-19 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511090', 'tblTempUsageDetail_20' ) start [2025-02-19 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511090', 'tblTempUsageDetail_20' ) end [2025-02-19 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:43:26] Production.INFO: ==22431== Releasing lock... [2025-02-19 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:43:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:44:05 [end_date_ymd] => 2025-02-19 14:44:05 [RateCDR] => 1 ) [2025-02-19 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:44:05' and `end` < '2025-02-19 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:44:18] Production.INFO: count ==5356 [2025-02-19 14:44:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:44:05 - End Time 2025-02-19 14:44:05 [2025-02-19 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511095', 'tblTempUsageDetail_20' ) start [2025-02-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511095', 'tblTempUsageDetail_20' ) end [2025-02-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511095', 'tblTempVendorCDR_20' ) start [2025-02-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511095', 'tblTempVendorCDR_20' ) end [2025-02-19 14:44:21] Production.INFO: ProcessCDR(1,14511095,1,1,2) [2025-02-19 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511095', 'tblTempUsageDetail_20' ) start [2025-02-19 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511095', 'tblTempUsageDetail_20' ) end [2025-02-19 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:44:26] Production.INFO: ==22502== Releasing lock... [2025-02-19 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:44:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:45:05 [end_date_ymd] => 2025-02-19 14:45:05 [RateCDR] => 1 ) [2025-02-19 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:45:05' and `end` < '2025-02-19 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:45:18] Production.INFO: count ==5370 [2025-02-19 14:45:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:45:05 - End Time 2025-02-19 14:45:05 [2025-02-19 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511100', 'tblTempUsageDetail_20' ) start [2025-02-19 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511100', 'tblTempUsageDetail_20' ) end [2025-02-19 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511100', 'tblTempVendorCDR_20' ) start [2025-02-19 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511100', 'tblTempVendorCDR_20' ) end [2025-02-19 14:45:20] Production.INFO: ProcessCDR(1,14511100,1,1,2) [2025-02-19 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511100', 'tblTempUsageDetail_20' ) start [2025-02-19 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511100', 'tblTempUsageDetail_20' ) end [2025-02-19 14:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:45:25] Production.INFO: ==22574== Releasing lock... [2025-02-19 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:45:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:46:05 [end_date_ymd] => 2025-02-19 14:46:05 [RateCDR] => 1 ) [2025-02-19 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:46:05' and `end` < '2025-02-19 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:46:18] Production.INFO: count ==5363 [2025-02-19 14:46:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:46:05 - End Time 2025-02-19 14:46:05 [2025-02-19 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511105', 'tblTempUsageDetail_20' ) start [2025-02-19 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511105', 'tblTempUsageDetail_20' ) end [2025-02-19 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511105', 'tblTempVendorCDR_20' ) start [2025-02-19 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511105', 'tblTempVendorCDR_20' ) end [2025-02-19 14:46:20] Production.INFO: ProcessCDR(1,14511105,1,1,2) [2025-02-19 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511105', 'tblTempUsageDetail_20' ) start [2025-02-19 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511105', 'tblTempUsageDetail_20' ) end [2025-02-19 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:46:25] Production.INFO: ==22644== Releasing lock... [2025-02-19 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:46:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:47:05 [end_date_ymd] => 2025-02-19 14:47:05 [RateCDR] => 1 ) [2025-02-19 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:47:05' and `end` < '2025-02-19 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:47:18] Production.INFO: count ==5358 [2025-02-19 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:47:05 - End Time 2025-02-19 14:47:05 [2025-02-19 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511110', 'tblTempUsageDetail_20' ) start [2025-02-19 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511110', 'tblTempUsageDetail_20' ) end [2025-02-19 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511110', 'tblTempVendorCDR_20' ) start [2025-02-19 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511110', 'tblTempVendorCDR_20' ) end [2025-02-19 14:47:21] Production.INFO: ProcessCDR(1,14511110,1,1,2) [2025-02-19 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511110', 'tblTempUsageDetail_20' ) start [2025-02-19 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511110', 'tblTempUsageDetail_20' ) end [2025-02-19 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:47:24] Production.INFO: ==22715== Releasing lock... [2025-02-19 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:47:24] Production.INFO: 68 MB #Memory Used# [2025-02-19 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:48:05 [end_date_ymd] => 2025-02-19 14:48:05 [RateCDR] => 1 ) [2025-02-19 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:48:05' and `end` < '2025-02-19 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:48:18] Production.INFO: count ==5386 [2025-02-19 14:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 11:48:05 - End Time 2025-02-19 14:48:05 [2025-02-19 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511115', 'tblTempUsageDetail_20' ) start [2025-02-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511115', 'tblTempUsageDetail_20' ) end [2025-02-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511115', 'tblTempVendorCDR_20' ) start [2025-02-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511115', 'tblTempVendorCDR_20' ) end [2025-02-19 14:48:21] Production.INFO: ProcessCDR(1,14511115,1,1,2) [2025-02-19 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511115', 'tblTempUsageDetail_20' ) start [2025-02-19 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511115', 'tblTempUsageDetail_20' ) end [2025-02-19 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:48:26] Production.INFO: ==22785== Releasing lock... [2025-02-19 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:48:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:49:06 [end_date_ymd] => 2025-02-19 14:49:06 [RateCDR] => 1 ) [2025-02-19 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:49:06' and `end` < '2025-02-19 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:49:19] Production.INFO: count ==5398 [2025-02-19 14:49:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:49:06 - End Time 2025-02-19 14:49:06 [2025-02-19 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511120', 'tblTempUsageDetail_20' ) start [2025-02-19 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511120', 'tblTempUsageDetail_20' ) end [2025-02-19 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511120', 'tblTempVendorCDR_20' ) start [2025-02-19 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511120', 'tblTempVendorCDR_20' ) end [2025-02-19 14:49:21] Production.INFO: ProcessCDR(1,14511120,1,1,2) [2025-02-19 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511120', 'tblTempUsageDetail_20' ) start [2025-02-19 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511120', 'tblTempUsageDetail_20' ) end [2025-02-19 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:49:26] Production.INFO: ==22856== Releasing lock... [2025-02-19 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:49:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:50:06 [end_date_ymd] => 2025-02-19 14:50:06 [RateCDR] => 1 ) [2025-02-19 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:50:06' and `end` < '2025-02-19 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:50:19] Production.INFO: count ==5389 [2025-02-19 14:50:22] Production.ERROR: pbx CDR StartTime 2025-02-19 11:50:06 - End Time 2025-02-19 14:50:06 [2025-02-19 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511126', 'tblTempUsageDetail_20' ) start [2025-02-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511126', 'tblTempUsageDetail_20' ) end [2025-02-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511126', 'tblTempVendorCDR_20' ) start [2025-02-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511126', 'tblTempVendorCDR_20' ) end [2025-02-19 14:50:22] Production.INFO: ProcessCDR(1,14511126,1,1,2) [2025-02-19 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511126', 'tblTempUsageDetail_20' ) start [2025-02-19 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511126', 'tblTempUsageDetail_20' ) end [2025-02-19 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:50:27] Production.INFO: ==22930== Releasing lock... [2025-02-19 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:50:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:51:05 [end_date_ymd] => 2025-02-19 14:51:05 [RateCDR] => 1 ) [2025-02-19 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:51:05' and `end` < '2025-02-19 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:51:18] Production.INFO: count ==5438 [2025-02-19 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:51:05 - End Time 2025-02-19 14:51:05 [2025-02-19 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511131', 'tblTempUsageDetail_20' ) start [2025-02-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511131', 'tblTempUsageDetail_20' ) end [2025-02-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511131', 'tblTempVendorCDR_20' ) start [2025-02-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511131', 'tblTempVendorCDR_20' ) end [2025-02-19 14:51:21] Production.INFO: ProcessCDR(1,14511131,1,1,2) [2025-02-19 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511131', 'tblTempUsageDetail_20' ) start [2025-02-19 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511131', 'tblTempUsageDetail_20' ) end [2025-02-19 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:51:26] Production.INFO: ==23047== Releasing lock... [2025-02-19 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:51:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:52:05 [end_date_ymd] => 2025-02-19 14:52:05 [RateCDR] => 1 ) [2025-02-19 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:52:05' and `end` < '2025-02-19 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:52:18] Production.INFO: count ==5454 [2025-02-19 14:52:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:52:05 - End Time 2025-02-19 14:52:05 [2025-02-19 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511136', 'tblTempUsageDetail_20' ) start [2025-02-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511136', 'tblTempUsageDetail_20' ) end [2025-02-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511136', 'tblTempVendorCDR_20' ) start [2025-02-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511136', 'tblTempVendorCDR_20' ) end [2025-02-19 14:52:21] Production.INFO: ProcessCDR(1,14511136,1,1,2) [2025-02-19 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511136', 'tblTempUsageDetail_20' ) start [2025-02-19 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511136', 'tblTempUsageDetail_20' ) end [2025-02-19 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:52:26] Production.INFO: ==23116== Releasing lock... [2025-02-19 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:52:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:53:05 [end_date_ymd] => 2025-02-19 14:53:05 [RateCDR] => 1 ) [2025-02-19 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:53:05' and `end` < '2025-02-19 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:53:18] Production.INFO: count ==5470 [2025-02-19 14:53:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:53:05 - End Time 2025-02-19 14:53:05 [2025-02-19 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511141', 'tblTempUsageDetail_20' ) start [2025-02-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511141', 'tblTempUsageDetail_20' ) end [2025-02-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511141', 'tblTempVendorCDR_20' ) start [2025-02-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511141', 'tblTempVendorCDR_20' ) end [2025-02-19 14:53:21] Production.INFO: ProcessCDR(1,14511141,1,1,2) [2025-02-19 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511141', 'tblTempUsageDetail_20' ) start [2025-02-19 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511141', 'tblTempUsageDetail_20' ) end [2025-02-19 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:53:27] Production.INFO: ==23190== Releasing lock... [2025-02-19 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:53:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:54:06 [end_date_ymd] => 2025-02-19 14:54:06 [RateCDR] => 1 ) [2025-02-19 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:54:06' and `end` < '2025-02-19 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:54:19] Production.INFO: count ==5458 [2025-02-19 14:54:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:54:06 - End Time 2025-02-19 14:54:06 [2025-02-19 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511146', 'tblTempUsageDetail_20' ) start [2025-02-19 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511146', 'tblTempUsageDetail_20' ) end [2025-02-19 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511146', 'tblTempVendorCDR_20' ) start [2025-02-19 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511146', 'tblTempVendorCDR_20' ) end [2025-02-19 14:54:22] Production.INFO: ProcessCDR(1,14511146,1,1,2) [2025-02-19 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511146', 'tblTempUsageDetail_20' ) start [2025-02-19 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511146', 'tblTempUsageDetail_20' ) end [2025-02-19 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:54:27] Production.INFO: ==23262== Releasing lock... [2025-02-19 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:54:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:55:06 [end_date_ymd] => 2025-02-19 14:55:06 [RateCDR] => 1 ) [2025-02-19 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:55:06' and `end` < '2025-02-19 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:55:19] Production.INFO: count ==5449 [2025-02-19 14:55:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:55:06 - End Time 2025-02-19 14:55:06 [2025-02-19 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511151', 'tblTempUsageDetail_20' ) start [2025-02-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511151', 'tblTempUsageDetail_20' ) end [2025-02-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511151', 'tblTempVendorCDR_20' ) start [2025-02-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511151', 'tblTempVendorCDR_20' ) end [2025-02-19 14:55:22] Production.INFO: ProcessCDR(1,14511151,1,1,2) [2025-02-19 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511151', 'tblTempUsageDetail_20' ) start [2025-02-19 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511151', 'tblTempUsageDetail_20' ) end [2025-02-19 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:55:27] Production.INFO: ==23333== Releasing lock... [2025-02-19 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:55:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:56:05 [end_date_ymd] => 2025-02-19 14:56:05 [RateCDR] => 1 ) [2025-02-19 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:56:05' and `end` < '2025-02-19 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:56:18] Production.INFO: count ==5444 [2025-02-19 14:56:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:56:05 - End Time 2025-02-19 14:56:05 [2025-02-19 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511156', 'tblTempUsageDetail_20' ) start [2025-02-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511156', 'tblTempUsageDetail_20' ) end [2025-02-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511156', 'tblTempVendorCDR_20' ) start [2025-02-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511156', 'tblTempVendorCDR_20' ) end [2025-02-19 14:56:21] Production.INFO: ProcessCDR(1,14511156,1,1,2) [2025-02-19 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511156', 'tblTempUsageDetail_20' ) start [2025-02-19 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511156', 'tblTempUsageDetail_20' ) end [2025-02-19 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:56:26] Production.INFO: ==23404== Releasing lock... [2025-02-19 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:56:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:57:05 [end_date_ymd] => 2025-02-19 14:57:05 [RateCDR] => 1 ) [2025-02-19 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:57:05' and `end` < '2025-02-19 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:57:18] Production.INFO: count ==5448 [2025-02-19 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:57:05 - End Time 2025-02-19 14:57:05 [2025-02-19 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511161', 'tblTempUsageDetail_20' ) start [2025-02-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511161', 'tblTempUsageDetail_20' ) end [2025-02-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511161', 'tblTempVendorCDR_20' ) start [2025-02-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511161', 'tblTempVendorCDR_20' ) end [2025-02-19 14:57:21] Production.INFO: ProcessCDR(1,14511161,1,1,2) [2025-02-19 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511161', 'tblTempUsageDetail_20' ) start [2025-02-19 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511161', 'tblTempUsageDetail_20' ) end [2025-02-19 14:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:57:25] Production.INFO: ==23474== Releasing lock... [2025-02-19 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:57:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:58:05 [end_date_ymd] => 2025-02-19 14:58:05 [RateCDR] => 1 ) [2025-02-19 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:58:05' and `end` < '2025-02-19 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:58:18] Production.INFO: count ==5452 [2025-02-19 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:58:05 - End Time 2025-02-19 14:58:05 [2025-02-19 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511166', 'tblTempUsageDetail_20' ) start [2025-02-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511166', 'tblTempUsageDetail_20' ) end [2025-02-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511166', 'tblTempVendorCDR_20' ) start [2025-02-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511166', 'tblTempVendorCDR_20' ) end [2025-02-19 14:58:21] Production.INFO: ProcessCDR(1,14511166,1,1,2) [2025-02-19 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511166', 'tblTempUsageDetail_20' ) start [2025-02-19 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511166', 'tblTempUsageDetail_20' ) end [2025-02-19 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:58:27] Production.INFO: ==23546== Releasing lock... [2025-02-19 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:58:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 11:59:06 [end_date_ymd] => 2025-02-19 14:59:06 [RateCDR] => 1 ) [2025-02-19 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 11:59:06' and `end` < '2025-02-19 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 14:59:19] Production.INFO: count ==5404 [2025-02-19 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-19 11:59:06 - End Time 2025-02-19 14:59:06 [2025-02-19 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511171', 'tblTempUsageDetail_20' ) start [2025-02-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511171', 'tblTempUsageDetail_20' ) end [2025-02-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511171', 'tblTempVendorCDR_20' ) start [2025-02-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511171', 'tblTempVendorCDR_20' ) end [2025-02-19 14:59:22] Production.INFO: ProcessCDR(1,14511171,1,1,2) [2025-02-19 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511171', 'tblTempUsageDetail_20' ) start [2025-02-19 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511171', 'tblTempUsageDetail_20' ) end [2025-02-19 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 14:59:27] Production.INFO: ==23617== Releasing lock... [2025-02-19 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 14:59:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:00:06 [end_date_ymd] => 2025-02-19 15:00:06 [RateCDR] => 1 ) [2025-02-19 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:00:06' and `end` < '2025-02-19 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:00:19] Production.INFO: count ==5375 [2025-02-19 15:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:00:06 - End Time 2025-02-19 15:00:06 [2025-02-19 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511176', 'tblTempUsageDetail_20' ) start [2025-02-19 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511176', 'tblTempUsageDetail_20' ) end [2025-02-19 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511176', 'tblTempVendorCDR_20' ) start [2025-02-19 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511176', 'tblTempVendorCDR_20' ) end [2025-02-19 15:00:21] Production.INFO: ProcessCDR(1,14511176,1,1,2) [2025-02-19 15:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511176', 'tblTempUsageDetail_20' ) start [2025-02-19 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511176', 'tblTempUsageDetail_20' ) end [2025-02-19 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:00:27] Production.INFO: ==23695== Releasing lock... [2025-02-19 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:00:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:01:06 [end_date_ymd] => 2025-02-19 15:01:06 [RateCDR] => 1 ) [2025-02-19 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:01:06' and `end` < '2025-02-19 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:01:18] Production.INFO: count ==5364 [2025-02-19 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:01:06 - End Time 2025-02-19 15:01:06 [2025-02-19 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511182', 'tblTempUsageDetail_20' ) start [2025-02-19 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511182', 'tblTempUsageDetail_20' ) end [2025-02-19 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511182', 'tblTempVendorCDR_20' ) start [2025-02-19 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511182', 'tblTempVendorCDR_20' ) end [2025-02-19 15:01:21] Production.INFO: ProcessCDR(1,14511182,1,1,2) [2025-02-19 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511182', 'tblTempUsageDetail_20' ) start [2025-02-19 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511182', 'tblTempUsageDetail_20' ) end [2025-02-19 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:01:26] Production.INFO: ==23781== Releasing lock... [2025-02-19 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:01:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:02:05 [end_date_ymd] => 2025-02-19 15:02:05 [RateCDR] => 1 ) [2025-02-19 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:02:05' and `end` < '2025-02-19 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:02:18] Production.INFO: count ==5309 [2025-02-19 15:02:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:02:05 - End Time 2025-02-19 15:02:05 [2025-02-19 15:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511187', 'tblTempUsageDetail_20' ) start [2025-02-19 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511187', 'tblTempUsageDetail_20' ) end [2025-02-19 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511187', 'tblTempVendorCDR_20' ) start [2025-02-19 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511187', 'tblTempVendorCDR_20' ) end [2025-02-19 15:02:20] Production.INFO: ProcessCDR(1,14511187,1,1,2) [2025-02-19 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511187', 'tblTempUsageDetail_20' ) start [2025-02-19 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511187', 'tblTempUsageDetail_20' ) end [2025-02-19 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:02:26] Production.INFO: ==23929== Releasing lock... [2025-02-19 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:02:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:03:06 [end_date_ymd] => 2025-02-19 15:03:06 [RateCDR] => 1 ) [2025-02-19 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:03:06' and `end` < '2025-02-19 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:03:19] Production.INFO: count ==5279 [2025-02-19 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:03:06 - End Time 2025-02-19 15:03:06 [2025-02-19 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511192', 'tblTempUsageDetail_20' ) start [2025-02-19 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511192', 'tblTempUsageDetail_20' ) end [2025-02-19 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511192', 'tblTempVendorCDR_20' ) start [2025-02-19 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511192', 'tblTempVendorCDR_20' ) end [2025-02-19 15:03:21] Production.INFO: ProcessCDR(1,14511192,1,1,2) [2025-02-19 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511192', 'tblTempUsageDetail_20' ) start [2025-02-19 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511192', 'tblTempUsageDetail_20' ) end [2025-02-19 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:03:27] Production.INFO: ==23999== Releasing lock... [2025-02-19 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:03:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:04:05 [end_date_ymd] => 2025-02-19 15:04:05 [RateCDR] => 1 ) [2025-02-19 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:04:05' and `end` < '2025-02-19 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:04:18] Production.INFO: count ==5268 [2025-02-19 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:04:05 - End Time 2025-02-19 15:04:05 [2025-02-19 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511197', 'tblTempUsageDetail_20' ) start [2025-02-19 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511197', 'tblTempUsageDetail_20' ) end [2025-02-19 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511197', 'tblTempVendorCDR_20' ) start [2025-02-19 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511197', 'tblTempVendorCDR_20' ) end [2025-02-19 15:04:21] Production.INFO: ProcessCDR(1,14511197,1,1,2) [2025-02-19 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511197', 'tblTempUsageDetail_20' ) start [2025-02-19 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511197', 'tblTempUsageDetail_20' ) end [2025-02-19 15:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:04:26] Production.INFO: ==24076== Releasing lock... [2025-02-19 15:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:04:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:05:06 [end_date_ymd] => 2025-02-19 15:05:06 [RateCDR] => 1 ) [2025-02-19 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:05:06' and `end` < '2025-02-19 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:05:19] Production.INFO: count ==5254 [2025-02-19 15:05:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:05:06 - End Time 2025-02-19 15:05:06 [2025-02-19 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511202', 'tblTempUsageDetail_20' ) start [2025-02-19 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511202', 'tblTempUsageDetail_20' ) end [2025-02-19 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511202', 'tblTempVendorCDR_20' ) start [2025-02-19 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511202', 'tblTempVendorCDR_20' ) end [2025-02-19 15:05:22] Production.INFO: ProcessCDR(1,14511202,1,1,2) [2025-02-19 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511202', 'tblTempUsageDetail_20' ) start [2025-02-19 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511202', 'tblTempUsageDetail_20' ) end [2025-02-19 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:05:27] Production.INFO: ==24228== Releasing lock... [2025-02-19 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:05:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:06:05 [end_date_ymd] => 2025-02-19 15:06:05 [RateCDR] => 1 ) [2025-02-19 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:06:05' and `end` < '2025-02-19 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:06:18] Production.INFO: count ==5260 [2025-02-19 15:06:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:06:05 - End Time 2025-02-19 15:06:05 [2025-02-19 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511207', 'tblTempUsageDetail_20' ) start [2025-02-19 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511207', 'tblTempUsageDetail_20' ) end [2025-02-19 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511207', 'tblTempVendorCDR_20' ) start [2025-02-19 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511207', 'tblTempVendorCDR_20' ) end [2025-02-19 15:06:21] Production.INFO: ProcessCDR(1,14511207,1,1,2) [2025-02-19 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511207', 'tblTempUsageDetail_20' ) start [2025-02-19 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511207', 'tblTempUsageDetail_20' ) end [2025-02-19 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:06:26] Production.INFO: ==24298== Releasing lock... [2025-02-19 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:06:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:07:06 [end_date_ymd] => 2025-02-19 15:07:06 [RateCDR] => 1 ) [2025-02-19 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:07:06' and `end` < '2025-02-19 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:07:19] Production.INFO: count ==5248 [2025-02-19 15:07:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:07:06 - End Time 2025-02-19 15:07:06 [2025-02-19 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511212', 'tblTempUsageDetail_20' ) start [2025-02-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511212', 'tblTempUsageDetail_20' ) end [2025-02-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511212', 'tblTempVendorCDR_20' ) start [2025-02-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511212', 'tblTempVendorCDR_20' ) end [2025-02-19 15:07:22] Production.INFO: ProcessCDR(1,14511212,1,1,2) [2025-02-19 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511212', 'tblTempUsageDetail_20' ) start [2025-02-19 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511212', 'tblTempUsageDetail_20' ) end [2025-02-19 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:07:27] Production.INFO: ==24408== Releasing lock... [2025-02-19 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:07:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:08:05 [end_date_ymd] => 2025-02-19 15:08:05 [RateCDR] => 1 ) [2025-02-19 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:08:05' and `end` < '2025-02-19 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:08:18] Production.INFO: count ==5262 [2025-02-19 15:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:08:05 - End Time 2025-02-19 15:08:05 [2025-02-19 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511217', 'tblTempUsageDetail_20' ) start [2025-02-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511217', 'tblTempUsageDetail_20' ) end [2025-02-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511217', 'tblTempVendorCDR_20' ) start [2025-02-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511217', 'tblTempVendorCDR_20' ) end [2025-02-19 15:08:21] Production.INFO: ProcessCDR(1,14511217,1,1,2) [2025-02-19 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511217', 'tblTempUsageDetail_20' ) start [2025-02-19 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511217', 'tblTempUsageDetail_20' ) end [2025-02-19 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:08:26] Production.INFO: ==24518== Releasing lock... [2025-02-19 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:08:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:09:06 [end_date_ymd] => 2025-02-19 15:09:06 [RateCDR] => 1 ) [2025-02-19 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:09:06' and `end` < '2025-02-19 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:09:19] Production.INFO: count ==5271 [2025-02-19 15:09:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:09:06 - End Time 2025-02-19 15:09:06 [2025-02-19 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511222', 'tblTempUsageDetail_20' ) start [2025-02-19 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511222', 'tblTempUsageDetail_20' ) end [2025-02-19 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511222', 'tblTempVendorCDR_20' ) start [2025-02-19 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511222', 'tblTempVendorCDR_20' ) end [2025-02-19 15:09:22] Production.INFO: ProcessCDR(1,14511222,1,1,2) [2025-02-19 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511222', 'tblTempUsageDetail_20' ) start [2025-02-19 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511222', 'tblTempUsageDetail_20' ) end [2025-02-19 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:09:27] Production.INFO: ==24627== Releasing lock... [2025-02-19 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:09:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:10:06 [end_date_ymd] => 2025-02-19 15:10:06 [RateCDR] => 1 ) [2025-02-19 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:10:06' and `end` < '2025-02-19 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:10:20] Production.INFO: count ==5288 [2025-02-19 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:10:06 - End Time 2025-02-19 15:10:06 [2025-02-19 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511228', 'tblTempUsageDetail_20' ) start [2025-02-19 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511228', 'tblTempUsageDetail_20' ) end [2025-02-19 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511228', 'tblTempVendorCDR_20' ) start [2025-02-19 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511228', 'tblTempVendorCDR_20' ) end [2025-02-19 15:10:23] Production.INFO: ProcessCDR(1,14511228,1,1,2) [2025-02-19 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511228', 'tblTempUsageDetail_20' ) start [2025-02-19 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511228', 'tblTempUsageDetail_20' ) end [2025-02-19 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:10:29] Production.INFO: ==24700== Releasing lock... [2025-02-19 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:10:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:11:06 [end_date_ymd] => 2025-02-19 15:11:06 [RateCDR] => 1 ) [2025-02-19 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:11:06' and `end` < '2025-02-19 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:11:19] Production.INFO: count ==5241 [2025-02-19 15:11:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:11:06 - End Time 2025-02-19 15:11:06 [2025-02-19 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511233', 'tblTempUsageDetail_20' ) start [2025-02-19 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511233', 'tblTempUsageDetail_20' ) end [2025-02-19 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511233', 'tblTempVendorCDR_20' ) start [2025-02-19 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511233', 'tblTempVendorCDR_20' ) end [2025-02-19 15:11:22] Production.INFO: ProcessCDR(1,14511233,1,1,2) [2025-02-19 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511233', 'tblTempUsageDetail_20' ) start [2025-02-19 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511233', 'tblTempUsageDetail_20' ) end [2025-02-19 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:11:28] Production.INFO: ==24775== Releasing lock... [2025-02-19 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:11:28] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:12:05 [end_date_ymd] => 2025-02-19 15:12:05 [RateCDR] => 1 ) [2025-02-19 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:12:05' and `end` < '2025-02-19 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:12:18] Production.INFO: count ==5232 [2025-02-19 15:12:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:12:05 - End Time 2025-02-19 15:12:05 [2025-02-19 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511238', 'tblTempUsageDetail_20' ) start [2025-02-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511238', 'tblTempUsageDetail_20' ) end [2025-02-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511238', 'tblTempVendorCDR_20' ) start [2025-02-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511238', 'tblTempVendorCDR_20' ) end [2025-02-19 15:12:21] Production.INFO: ProcessCDR(1,14511238,1,1,2) [2025-02-19 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511238', 'tblTempUsageDetail_20' ) start [2025-02-19 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511238', 'tblTempUsageDetail_20' ) end [2025-02-19 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:12:24] Production.INFO: ==24923== Releasing lock... [2025-02-19 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:12:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:13:05 [end_date_ymd] => 2025-02-19 15:13:05 [RateCDR] => 1 ) [2025-02-19 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:13:05' and `end` < '2025-02-19 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:13:18] Production.INFO: count ==5212 [2025-02-19 15:13:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:13:05 - End Time 2025-02-19 15:13:05 [2025-02-19 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511243', 'tblTempUsageDetail_20' ) start [2025-02-19 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511243', 'tblTempUsageDetail_20' ) end [2025-02-19 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511243', 'tblTempVendorCDR_20' ) start [2025-02-19 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511243', 'tblTempVendorCDR_20' ) end [2025-02-19 15:13:21] Production.INFO: ProcessCDR(1,14511243,1,1,2) [2025-02-19 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511243', 'tblTempUsageDetail_20' ) start [2025-02-19 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511243', 'tblTempUsageDetail_20' ) end [2025-02-19 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:13:25] Production.INFO: ==24995== Releasing lock... [2025-02-19 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:13:25] Production.INFO: 67 MB #Memory Used# [2025-02-19 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:14:05 [end_date_ymd] => 2025-02-19 15:14:05 [RateCDR] => 1 ) [2025-02-19 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:14:05' and `end` < '2025-02-19 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:14:18] Production.INFO: count ==5167 [2025-02-19 15:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:14:05 - End Time 2025-02-19 15:14:05 [2025-02-19 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511248', 'tblTempUsageDetail_20' ) start [2025-02-19 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511248', 'tblTempUsageDetail_20' ) end [2025-02-19 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511248', 'tblTempVendorCDR_20' ) start [2025-02-19 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511248', 'tblTempVendorCDR_20' ) end [2025-02-19 15:14:20] Production.INFO: ProcessCDR(1,14511248,1,1,2) [2025-02-19 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511248', 'tblTempUsageDetail_20' ) start [2025-02-19 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511248', 'tblTempUsageDetail_20' ) end [2025-02-19 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:14:25] Production.INFO: ==25066== Releasing lock... [2025-02-19 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:14:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-19 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:15:06 [end_date_ymd] => 2025-02-19 15:15:06 [RateCDR] => 1 ) [2025-02-19 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:15:06' and `end` < '2025-02-19 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:15:19] Production.INFO: count ==5140 [2025-02-19 15:15:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:15:06 - End Time 2025-02-19 15:15:06 [2025-02-19 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511253', 'tblTempUsageDetail_20' ) start [2025-02-19 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511253', 'tblTempUsageDetail_20' ) end [2025-02-19 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511253', 'tblTempVendorCDR_20' ) start [2025-02-19 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511253', 'tblTempVendorCDR_20' ) end [2025-02-19 15:15:22] Production.INFO: ProcessCDR(1,14511253,1,1,2) [2025-02-19 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511253', 'tblTempUsageDetail_20' ) start [2025-02-19 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511253', 'tblTempUsageDetail_20' ) end [2025-02-19 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:15:26] Production.INFO: ==25216== Releasing lock... [2025-02-19 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:15:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-19 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:16:05 [end_date_ymd] => 2025-02-19 15:16:05 [RateCDR] => 1 ) [2025-02-19 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:16:05' and `end` < '2025-02-19 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:16:18] Production.INFO: count ==5133 [2025-02-19 15:16:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:16:05 - End Time 2025-02-19 15:16:05 [2025-02-19 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511258', 'tblTempUsageDetail_20' ) start [2025-02-19 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511258', 'tblTempUsageDetail_20' ) end [2025-02-19 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511258', 'tblTempVendorCDR_20' ) start [2025-02-19 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511258', 'tblTempVendorCDR_20' ) end [2025-02-19 15:16:20] Production.INFO: ProcessCDR(1,14511258,1,1,2) [2025-02-19 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511258', 'tblTempUsageDetail_20' ) start [2025-02-19 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511258', 'tblTempUsageDetail_20' ) end [2025-02-19 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:16:25] Production.INFO: ==25287== Releasing lock... [2025-02-19 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:16:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-19 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:17:06 [end_date_ymd] => 2025-02-19 15:17:06 [RateCDR] => 1 ) [2025-02-19 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:17:06' and `end` < '2025-02-19 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:17:19] Production.INFO: count ==5125 [2025-02-19 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:17:06 - End Time 2025-02-19 15:17:06 [2025-02-19 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511263', 'tblTempUsageDetail_20' ) start [2025-02-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511263', 'tblTempUsageDetail_20' ) end [2025-02-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511263', 'tblTempVendorCDR_20' ) start [2025-02-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511263', 'tblTempVendorCDR_20' ) end [2025-02-19 15:17:21] Production.INFO: ProcessCDR(1,14511263,1,1,2) [2025-02-19 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511263', 'tblTempUsageDetail_20' ) start [2025-02-19 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511263', 'tblTempUsageDetail_20' ) end [2025-02-19 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:17:26] Production.INFO: ==25358== Releasing lock... [2025-02-19 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:17:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:18:05 [end_date_ymd] => 2025-02-19 15:18:05 [RateCDR] => 1 ) [2025-02-19 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:18:05' and `end` < '2025-02-19 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:18:17] Production.INFO: count ==5112 [2025-02-19 15:18:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:18:05 - End Time 2025-02-19 15:18:05 [2025-02-19 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511268', 'tblTempUsageDetail_20' ) start [2025-02-19 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511268', 'tblTempUsageDetail_20' ) end [2025-02-19 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511268', 'tblTempVendorCDR_20' ) start [2025-02-19 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511268', 'tblTempVendorCDR_20' ) end [2025-02-19 15:18:20] Production.INFO: ProcessCDR(1,14511268,1,1,2) [2025-02-19 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511268', 'tblTempUsageDetail_20' ) start [2025-02-19 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511268', 'tblTempUsageDetail_20' ) end [2025-02-19 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:18:25] Production.INFO: ==25434== Releasing lock... [2025-02-19 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:18:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:19:05 [end_date_ymd] => 2025-02-19 15:19:05 [RateCDR] => 1 ) [2025-02-19 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:19:05' and `end` < '2025-02-19 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:19:18] Production.INFO: count ==5105 [2025-02-19 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:19:05 - End Time 2025-02-19 15:19:05 [2025-02-19 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511273', 'tblTempUsageDetail_20' ) start [2025-02-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511273', 'tblTempUsageDetail_20' ) end [2025-02-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511273', 'tblTempVendorCDR_20' ) start [2025-02-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511273', 'tblTempVendorCDR_20' ) end [2025-02-19 15:19:21] Production.INFO: ProcessCDR(1,14511273,1,1,2) [2025-02-19 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511273', 'tblTempUsageDetail_20' ) start [2025-02-19 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511273', 'tblTempUsageDetail_20' ) end [2025-02-19 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:19:26] Production.INFO: ==25508== Releasing lock... [2025-02-19 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:20:06 [end_date_ymd] => 2025-02-19 15:20:06 [RateCDR] => 1 ) [2025-02-19 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:20:06' and `end` < '2025-02-19 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:20:20] Production.INFO: count ==5110 [2025-02-19 15:20:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:20:06 - End Time 2025-02-19 15:20:06 [2025-02-19 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511279', 'tblTempUsageDetail_20' ) start [2025-02-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511279', 'tblTempUsageDetail_20' ) end [2025-02-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511279', 'tblTempVendorCDR_20' ) start [2025-02-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511279', 'tblTempVendorCDR_20' ) end [2025-02-19 15:20:22] Production.INFO: ProcessCDR(1,14511279,1,1,2) [2025-02-19 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511279', 'tblTempUsageDetail_20' ) start [2025-02-19 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511279', 'tblTempUsageDetail_20' ) end [2025-02-19 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:20:27] Production.INFO: ==25585== Releasing lock... [2025-02-19 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:21:05 [end_date_ymd] => 2025-02-19 15:21:05 [RateCDR] => 1 ) [2025-02-19 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:21:05' and `end` < '2025-02-19 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:21:18] Production.INFO: count ==5182 [2025-02-19 15:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:21:05 - End Time 2025-02-19 15:21:05 [2025-02-19 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511284', 'tblTempUsageDetail_20' ) start [2025-02-19 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511284', 'tblTempUsageDetail_20' ) end [2025-02-19 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511284', 'tblTempVendorCDR_20' ) start [2025-02-19 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511284', 'tblTempVendorCDR_20' ) end [2025-02-19 15:21:20] Production.INFO: ProcessCDR(1,14511284,1,1,2) [2025-02-19 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511284', 'tblTempUsageDetail_20' ) start [2025-02-19 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511284', 'tblTempUsageDetail_20' ) end [2025-02-19 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:21:26] Production.INFO: ==25658== Releasing lock... [2025-02-19 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:21:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-19 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:22:04 [end_date_ymd] => 2025-02-19 15:22:04 [RateCDR] => 1 ) [2025-02-19 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:22:04' and `end` < '2025-02-19 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:22:19] Production.INFO: count ==5190 [2025-02-19 15:22:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:22:04 - End Time 2025-02-19 15:22:04 [2025-02-19 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511289', 'tblTempUsageDetail_20' ) start [2025-02-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511289', 'tblTempUsageDetail_20' ) end [2025-02-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511289', 'tblTempVendorCDR_20' ) start [2025-02-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511289', 'tblTempVendorCDR_20' ) end [2025-02-19 15:22:21] Production.INFO: ProcessCDR(1,14511289,1,1,2) [2025-02-19 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511289', 'tblTempUsageDetail_20' ) start [2025-02-19 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511289', 'tblTempUsageDetail_20' ) end [2025-02-19 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:22:26] Production.INFO: ==25771== Releasing lock... [2025-02-19 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:22:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-19 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:23:05 [end_date_ymd] => 2025-02-19 15:23:05 [RateCDR] => 1 ) [2025-02-19 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:23:05' and `end` < '2025-02-19 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:23:19] Production.INFO: count ==5223 [2025-02-19 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:23:05 - End Time 2025-02-19 15:23:05 [2025-02-19 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511294', 'tblTempUsageDetail_20' ) start [2025-02-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511294', 'tblTempUsageDetail_20' ) end [2025-02-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511294', 'tblTempVendorCDR_20' ) start [2025-02-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511294', 'tblTempVendorCDR_20' ) end [2025-02-19 15:23:21] Production.INFO: ProcessCDR(1,14511294,1,1,2) [2025-02-19 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511294', 'tblTempUsageDetail_20' ) start [2025-02-19 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511294', 'tblTempUsageDetail_20' ) end [2025-02-19 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:23:27] Production.INFO: ==25846== Releasing lock... [2025-02-19 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:23:27] Production.INFO: 67 MB #Memory Used# [2025-02-19 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:24:06 [end_date_ymd] => 2025-02-19 15:24:06 [RateCDR] => 1 ) [2025-02-19 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:24:06' and `end` < '2025-02-19 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:24:19] Production.INFO: count ==5248 [2025-02-19 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:24:06 - End Time 2025-02-19 15:24:06 [2025-02-19 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511299', 'tblTempUsageDetail_20' ) start [2025-02-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511299', 'tblTempUsageDetail_20' ) end [2025-02-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511299', 'tblTempVendorCDR_20' ) start [2025-02-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511299', 'tblTempVendorCDR_20' ) end [2025-02-19 15:24:21] Production.INFO: ProcessCDR(1,14511299,1,1,2) [2025-02-19 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511299', 'tblTempUsageDetail_20' ) start [2025-02-19 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511299', 'tblTempUsageDetail_20' ) end [2025-02-19 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:24:26] Production.INFO: ==25917== Releasing lock... [2025-02-19 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:24:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:25:05 [end_date_ymd] => 2025-02-19 15:25:05 [RateCDR] => 1 ) [2025-02-19 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:25:05' and `end` < '2025-02-19 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:25:18] Production.INFO: count ==5251 [2025-02-19 15:25:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:25:05 - End Time 2025-02-19 15:25:05 [2025-02-19 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511304', 'tblTempUsageDetail_20' ) start [2025-02-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511304', 'tblTempUsageDetail_20' ) end [2025-02-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511304', 'tblTempVendorCDR_20' ) start [2025-02-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511304', 'tblTempVendorCDR_20' ) end [2025-02-19 15:25:21] Production.INFO: ProcessCDR(1,14511304,1,1,2) [2025-02-19 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511304', 'tblTempUsageDetail_20' ) start [2025-02-19 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511304', 'tblTempUsageDetail_20' ) end [2025-02-19 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:25:25] Production.INFO: ==25986== Releasing lock... [2025-02-19 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:25:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:26:06 [end_date_ymd] => 2025-02-19 15:26:06 [RateCDR] => 1 ) [2025-02-19 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:26:06' and `end` < '2025-02-19 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:26:18] Production.INFO: count ==5263 [2025-02-19 15:26:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:26:06 - End Time 2025-02-19 15:26:06 [2025-02-19 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511309', 'tblTempUsageDetail_20' ) start [2025-02-19 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511309', 'tblTempUsageDetail_20' ) end [2025-02-19 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511309', 'tblTempVendorCDR_20' ) start [2025-02-19 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511309', 'tblTempVendorCDR_20' ) end [2025-02-19 15:26:21] Production.INFO: ProcessCDR(1,14511309,1,1,2) [2025-02-19 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511309', 'tblTempUsageDetail_20' ) start [2025-02-19 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511309', 'tblTempUsageDetail_20' ) end [2025-02-19 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:26:25] Production.INFO: ==26059== Releasing lock... [2025-02-19 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:26:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:27:05 [end_date_ymd] => 2025-02-19 15:27:05 [RateCDR] => 1 ) [2025-02-19 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:27:05' and `end` < '2025-02-19 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:27:18] Production.INFO: count ==5279 [2025-02-19 15:27:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:27:05 - End Time 2025-02-19 15:27:05 [2025-02-19 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511314', 'tblTempUsageDetail_20' ) start [2025-02-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511314', 'tblTempUsageDetail_20' ) end [2025-02-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511314', 'tblTempVendorCDR_20' ) start [2025-02-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511314', 'tblTempVendorCDR_20' ) end [2025-02-19 15:27:21] Production.INFO: ProcessCDR(1,14511314,1,1,2) [2025-02-19 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511314', 'tblTempUsageDetail_20' ) start [2025-02-19 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511314', 'tblTempUsageDetail_20' ) end [2025-02-19 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:27:25] Production.INFO: ==26130== Releasing lock... [2025-02-19 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:27:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:28:05 [end_date_ymd] => 2025-02-19 15:28:05 [RateCDR] => 1 ) [2025-02-19 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:28:05' and `end` < '2025-02-19 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:28:18] Production.INFO: count ==5285 [2025-02-19 15:28:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:28:05 - End Time 2025-02-19 15:28:05 [2025-02-19 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511319', 'tblTempUsageDetail_20' ) start [2025-02-19 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511319', 'tblTempUsageDetail_20' ) end [2025-02-19 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511319', 'tblTempVendorCDR_20' ) start [2025-02-19 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511319', 'tblTempVendorCDR_20' ) end [2025-02-19 15:28:21] Production.INFO: ProcessCDR(1,14511319,1,1,2) [2025-02-19 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511319', 'tblTempUsageDetail_20' ) start [2025-02-19 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511319', 'tblTempUsageDetail_20' ) end [2025-02-19 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:28:26] Production.INFO: ==26203== Releasing lock... [2025-02-19 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:28:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:29:05 [end_date_ymd] => 2025-02-19 15:29:05 [RateCDR] => 1 ) [2025-02-19 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:29:05' and `end` < '2025-02-19 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:29:18] Production.INFO: count ==5320 [2025-02-19 15:29:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:29:05 - End Time 2025-02-19 15:29:05 [2025-02-19 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511324', 'tblTempUsageDetail_20' ) start [2025-02-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511324', 'tblTempUsageDetail_20' ) end [2025-02-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511324', 'tblTempVendorCDR_20' ) start [2025-02-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511324', 'tblTempVendorCDR_20' ) end [2025-02-19 15:29:21] Production.INFO: ProcessCDR(1,14511324,1,1,2) [2025-02-19 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511324', 'tblTempUsageDetail_20' ) start [2025-02-19 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511324', 'tblTempUsageDetail_20' ) end [2025-02-19 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:29:26] Production.INFO: ==26275== Releasing lock... [2025-02-19 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:29:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:30:06 [end_date_ymd] => 2025-02-19 15:30:06 [RateCDR] => 1 ) [2025-02-19 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:30:06' and `end` < '2025-02-19 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:30:19] Production.INFO: count ==5338 [2025-02-19 15:30:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:30:06 - End Time 2025-02-19 15:30:06 [2025-02-19 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511330', 'tblTempUsageDetail_20' ) start [2025-02-19 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511330', 'tblTempUsageDetail_20' ) end [2025-02-19 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511330', 'tblTempVendorCDR_20' ) start [2025-02-19 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511330', 'tblTempVendorCDR_20' ) end [2025-02-19 15:30:22] Production.INFO: ProcessCDR(1,14511330,1,1,2) [2025-02-19 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511330', 'tblTempUsageDetail_20' ) start [2025-02-19 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511330', 'tblTempUsageDetail_20' ) end [2025-02-19 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:30:27] Production.INFO: ==26348== Releasing lock... [2025-02-19 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:30:27] Production.INFO: 68 MB #Memory Used# [2025-02-19 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:31:04 [end_date_ymd] => 2025-02-19 15:31:04 [RateCDR] => 1 ) [2025-02-19 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:31:04' and `end` < '2025-02-19 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:31:17] Production.INFO: count ==5377 [2025-02-19 15:31:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:31:04 - End Time 2025-02-19 15:31:04 [2025-02-19 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511334', 'tblTempUsageDetail_20' ) start [2025-02-19 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511334', 'tblTempUsageDetail_20' ) end [2025-02-19 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511334', 'tblTempVendorCDR_20' ) start [2025-02-19 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511334', 'tblTempVendorCDR_20' ) end [2025-02-19 15:31:20] Production.INFO: ProcessCDR(1,14511334,1,1,2) [2025-02-19 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511334', 'tblTempUsageDetail_20' ) start [2025-02-19 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511334', 'tblTempUsageDetail_20' ) end [2025-02-19 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:31:25] Production.INFO: ==26442== Releasing lock... [2025-02-19 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:31:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:32:06 [end_date_ymd] => 2025-02-19 15:32:06 [RateCDR] => 1 ) [2025-02-19 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:32:06' and `end` < '2025-02-19 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:32:18] Production.INFO: count ==5376 [2025-02-19 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:32:06 - End Time 2025-02-19 15:32:06 [2025-02-19 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511340', 'tblTempUsageDetail_20' ) start [2025-02-19 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511340', 'tblTempUsageDetail_20' ) end [2025-02-19 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511340', 'tblTempVendorCDR_20' ) start [2025-02-19 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511340', 'tblTempVendorCDR_20' ) end [2025-02-19 15:32:21] Production.INFO: ProcessCDR(1,14511340,1,1,2) [2025-02-19 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511340', 'tblTempUsageDetail_20' ) start [2025-02-19 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511340', 'tblTempUsageDetail_20' ) end [2025-02-19 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:32:27] Production.INFO: ==26520== Releasing lock... [2025-02-19 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:32:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:33:05 [end_date_ymd] => 2025-02-19 15:33:05 [RateCDR] => 1 ) [2025-02-19 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:33:05' and `end` < '2025-02-19 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:33:18] Production.INFO: count ==5349 [2025-02-19 15:33:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:33:05 - End Time 2025-02-19 15:33:05 [2025-02-19 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511345', 'tblTempUsageDetail_20' ) start [2025-02-19 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511345', 'tblTempUsageDetail_20' ) end [2025-02-19 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511345', 'tblTempVendorCDR_20' ) start [2025-02-19 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511345', 'tblTempVendorCDR_20' ) end [2025-02-19 15:33:20] Production.INFO: ProcessCDR(1,14511345,1,1,2) [2025-02-19 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511345', 'tblTempUsageDetail_20' ) start [2025-02-19 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511345', 'tblTempUsageDetail_20' ) end [2025-02-19 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:33:25] Production.INFO: ==26592== Releasing lock... [2025-02-19 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:33:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:34:06 [end_date_ymd] => 2025-02-19 15:34:06 [RateCDR] => 1 ) [2025-02-19 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:34:06' and `end` < '2025-02-19 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:34:19] Production.INFO: count ==5365 [2025-02-19 15:34:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:34:06 - End Time 2025-02-19 15:34:06 [2025-02-19 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511350', 'tblTempUsageDetail_20' ) start [2025-02-19 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511350', 'tblTempUsageDetail_20' ) end [2025-02-19 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511350', 'tblTempVendorCDR_20' ) start [2025-02-19 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511350', 'tblTempVendorCDR_20' ) end [2025-02-19 15:34:21] Production.INFO: ProcessCDR(1,14511350,1,1,2) [2025-02-19 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511350', 'tblTempUsageDetail_20' ) start [2025-02-19 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511350', 'tblTempUsageDetail_20' ) end [2025-02-19 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:34:26] Production.INFO: ==26667== Releasing lock... [2025-02-19 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:34:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:35:05 [end_date_ymd] => 2025-02-19 15:35:05 [RateCDR] => 1 ) [2025-02-19 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:35:05' and `end` < '2025-02-19 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:35:18] Production.INFO: count ==5402 [2025-02-19 15:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 12:35:05 - End Time 2025-02-19 15:35:05 [2025-02-19 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511355', 'tblTempUsageDetail_20' ) start [2025-02-19 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511355', 'tblTempUsageDetail_20' ) end [2025-02-19 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511355', 'tblTempVendorCDR_20' ) start [2025-02-19 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511355', 'tblTempVendorCDR_20' ) end [2025-02-19 15:35:20] Production.INFO: ProcessCDR(1,14511355,1,1,2) [2025-02-19 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511355', 'tblTempUsageDetail_20' ) start [2025-02-19 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511355', 'tblTempUsageDetail_20' ) end [2025-02-19 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:35:25] Production.INFO: ==26738== Releasing lock... [2025-02-19 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:35:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:36:06 [end_date_ymd] => 2025-02-19 15:36:06 [RateCDR] => 1 ) [2025-02-19 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:36:06' and `end` < '2025-02-19 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:36:18] Production.INFO: count ==5393 [2025-02-19 15:36:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:36:06 - End Time 2025-02-19 15:36:06 [2025-02-19 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511360', 'tblTempUsageDetail_20' ) start [2025-02-19 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511360', 'tblTempUsageDetail_20' ) end [2025-02-19 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511360', 'tblTempVendorCDR_20' ) start [2025-02-19 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511360', 'tblTempVendorCDR_20' ) end [2025-02-19 15:36:21] Production.INFO: ProcessCDR(1,14511360,1,1,2) [2025-02-19 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511360', 'tblTempUsageDetail_20' ) start [2025-02-19 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511360', 'tblTempUsageDetail_20' ) end [2025-02-19 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:36:26] Production.INFO: ==26808== Releasing lock... [2025-02-19 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:36:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:37:05 [end_date_ymd] => 2025-02-19 15:37:05 [RateCDR] => 1 ) [2025-02-19 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:37:05' and `end` < '2025-02-19 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:37:18] Production.INFO: count ==5389 [2025-02-19 15:37:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:37:05 - End Time 2025-02-19 15:37:05 [2025-02-19 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511365', 'tblTempUsageDetail_20' ) start [2025-02-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511365', 'tblTempUsageDetail_20' ) end [2025-02-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511365', 'tblTempVendorCDR_20' ) start [2025-02-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511365', 'tblTempVendorCDR_20' ) end [2025-02-19 15:37:21] Production.INFO: ProcessCDR(1,14511365,1,1,2) [2025-02-19 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511365', 'tblTempUsageDetail_20' ) start [2025-02-19 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511365', 'tblTempUsageDetail_20' ) end [2025-02-19 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:37:26] Production.INFO: ==26879== Releasing lock... [2025-02-19 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:37:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:38:06 [end_date_ymd] => 2025-02-19 15:38:06 [RateCDR] => 1 ) [2025-02-19 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:38:06' and `end` < '2025-02-19 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:38:19] Production.INFO: count ==5376 [2025-02-19 15:38:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:38:06 - End Time 2025-02-19 15:38:06 [2025-02-19 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511370', 'tblTempUsageDetail_20' ) start [2025-02-19 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511370', 'tblTempUsageDetail_20' ) end [2025-02-19 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511370', 'tblTempVendorCDR_20' ) start [2025-02-19 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511370', 'tblTempVendorCDR_20' ) end [2025-02-19 15:38:22] Production.INFO: ProcessCDR(1,14511370,1,1,2) [2025-02-19 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511370', 'tblTempUsageDetail_20' ) start [2025-02-19 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511370', 'tblTempUsageDetail_20' ) end [2025-02-19 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:38:27] Production.INFO: ==26990== Releasing lock... [2025-02-19 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:38:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:39:06 [end_date_ymd] => 2025-02-19 15:39:06 [RateCDR] => 1 ) [2025-02-19 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:39:06' and `end` < '2025-02-19 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:39:19] Production.INFO: count ==5395 [2025-02-19 15:39:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:39:06 - End Time 2025-02-19 15:39:06 [2025-02-19 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511375', 'tblTempUsageDetail_20' ) start [2025-02-19 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511375', 'tblTempUsageDetail_20' ) end [2025-02-19 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511375', 'tblTempVendorCDR_20' ) start [2025-02-19 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511375', 'tblTempVendorCDR_20' ) end [2025-02-19 15:39:22] Production.INFO: ProcessCDR(1,14511375,1,1,2) [2025-02-19 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511375', 'tblTempUsageDetail_20' ) start [2025-02-19 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511375', 'tblTempUsageDetail_20' ) end [2025-02-19 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:39:27] Production.INFO: ==27067== Releasing lock... [2025-02-19 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:39:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:40:06 [end_date_ymd] => 2025-02-19 15:40:06 [RateCDR] => 1 ) [2025-02-19 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:40:06' and `end` < '2025-02-19 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:40:19] Production.INFO: count ==5398 [2025-02-19 15:40:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:40:06 - End Time 2025-02-19 15:40:06 [2025-02-19 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511381', 'tblTempUsageDetail_20' ) start [2025-02-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511381', 'tblTempUsageDetail_20' ) end [2025-02-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511381', 'tblTempVendorCDR_20' ) start [2025-02-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511381', 'tblTempVendorCDR_20' ) end [2025-02-19 15:40:22] Production.INFO: ProcessCDR(1,14511381,1,1,2) [2025-02-19 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511381', 'tblTempUsageDetail_20' ) start [2025-02-19 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511381', 'tblTempUsageDetail_20' ) end [2025-02-19 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:40:28] Production.INFO: ==27140== Releasing lock... [2025-02-19 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:40:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:41:05 [end_date_ymd] => 2025-02-19 15:41:05 [RateCDR] => 1 ) [2025-02-19 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:41:05' and `end` < '2025-02-19 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:41:18] Production.INFO: count ==5448 [2025-02-19 15:41:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:41:05 - End Time 2025-02-19 15:41:05 [2025-02-19 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511386', 'tblTempUsageDetail_20' ) start [2025-02-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511386', 'tblTempUsageDetail_20' ) end [2025-02-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511386', 'tblTempVendorCDR_20' ) start [2025-02-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511386', 'tblTempVendorCDR_20' ) end [2025-02-19 15:41:21] Production.INFO: ProcessCDR(1,14511386,1,1,2) [2025-02-19 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511386', 'tblTempUsageDetail_20' ) start [2025-02-19 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511386', 'tblTempUsageDetail_20' ) end [2025-02-19 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:41:27] Production.INFO: ==27213== Releasing lock... [2025-02-19 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:41:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:42:05 [end_date_ymd] => 2025-02-19 15:42:05 [RateCDR] => 1 ) [2025-02-19 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:42:05' and `end` < '2025-02-19 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:42:18] Production.INFO: count ==5472 [2025-02-19 15:42:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:42:05 - End Time 2025-02-19 15:42:05 [2025-02-19 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511391', 'tblTempUsageDetail_20' ) start [2025-02-19 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511391', 'tblTempUsageDetail_20' ) end [2025-02-19 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511391', 'tblTempVendorCDR_20' ) start [2025-02-19 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511391', 'tblTempVendorCDR_20' ) end [2025-02-19 15:42:21] Production.INFO: ProcessCDR(1,14511391,1,1,2) [2025-02-19 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511391', 'tblTempUsageDetail_20' ) start [2025-02-19 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511391', 'tblTempUsageDetail_20' ) end [2025-02-19 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:42:27] Production.INFO: ==27287== Releasing lock... [2025-02-19 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:42:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:43:05 [end_date_ymd] => 2025-02-19 15:43:05 [RateCDR] => 1 ) [2025-02-19 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:43:05' and `end` < '2025-02-19 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:43:18] Production.INFO: count ==5467 [2025-02-19 15:43:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:43:05 - End Time 2025-02-19 15:43:05 [2025-02-19 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511396', 'tblTempUsageDetail_20' ) start [2025-02-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511396', 'tblTempUsageDetail_20' ) end [2025-02-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511396', 'tblTempVendorCDR_20' ) start [2025-02-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511396', 'tblTempVendorCDR_20' ) end [2025-02-19 15:43:21] Production.INFO: ProcessCDR(1,14511396,1,1,2) [2025-02-19 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511396', 'tblTempUsageDetail_20' ) start [2025-02-19 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511396', 'tblTempUsageDetail_20' ) end [2025-02-19 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:43:26] Production.INFO: ==27359== Releasing lock... [2025-02-19 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:43:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:44:06 [end_date_ymd] => 2025-02-19 15:44:06 [RateCDR] => 1 ) [2025-02-19 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:44:06' and `end` < '2025-02-19 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:44:19] Production.INFO: count ==5471 [2025-02-19 15:44:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:44:06 - End Time 2025-02-19 15:44:06 [2025-02-19 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511401', 'tblTempUsageDetail_20' ) start [2025-02-19 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511401', 'tblTempUsageDetail_20' ) end [2025-02-19 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511401', 'tblTempVendorCDR_20' ) start [2025-02-19 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511401', 'tblTempVendorCDR_20' ) end [2025-02-19 15:44:22] Production.INFO: ProcessCDR(1,14511401,1,1,2) [2025-02-19 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511401', 'tblTempUsageDetail_20' ) start [2025-02-19 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511401', 'tblTempUsageDetail_20' ) end [2025-02-19 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:44:27] Production.INFO: ==27432== Releasing lock... [2025-02-19 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:44:27] Production.INFO: 69 MB #Memory Used# [2025-02-19 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:45:06 [end_date_ymd] => 2025-02-19 15:45:06 [RateCDR] => 1 ) [2025-02-19 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:45:06' and `end` < '2025-02-19 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:45:19] Production.INFO: count ==5507 [2025-02-19 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:45:06 - End Time 2025-02-19 15:45:06 [2025-02-19 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511406', 'tblTempUsageDetail_20' ) start [2025-02-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511406', 'tblTempUsageDetail_20' ) end [2025-02-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511406', 'tblTempVendorCDR_20' ) start [2025-02-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511406', 'tblTempVendorCDR_20' ) end [2025-02-19 15:45:21] Production.INFO: ProcessCDR(1,14511406,1,1,2) [2025-02-19 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511406', 'tblTempUsageDetail_20' ) start [2025-02-19 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511406', 'tblTempUsageDetail_20' ) end [2025-02-19 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:45:27] Production.INFO: ==27507== Releasing lock... [2025-02-19 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:45:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:46:06 [end_date_ymd] => 2025-02-19 15:46:06 [RateCDR] => 1 ) [2025-02-19 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:46:06' and `end` < '2025-02-19 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:46:19] Production.INFO: count ==5499 [2025-02-19 15:46:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:46:06 - End Time 2025-02-19 15:46:06 [2025-02-19 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511411', 'tblTempUsageDetail_20' ) start [2025-02-19 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511411', 'tblTempUsageDetail_20' ) end [2025-02-19 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511411', 'tblTempVendorCDR_20' ) start [2025-02-19 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511411', 'tblTempVendorCDR_20' ) end [2025-02-19 15:46:22] Production.INFO: ProcessCDR(1,14511411,1,1,2) [2025-02-19 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511411', 'tblTempUsageDetail_20' ) start [2025-02-19 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511411', 'tblTempUsageDetail_20' ) end [2025-02-19 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:46:27] Production.INFO: ==27582== Releasing lock... [2025-02-19 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:46:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:47:05 [end_date_ymd] => 2025-02-19 15:47:05 [RateCDR] => 1 ) [2025-02-19 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:47:05' and `end` < '2025-02-19 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:47:18] Production.INFO: count ==5506 [2025-02-19 15:47:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:47:05 - End Time 2025-02-19 15:47:05 [2025-02-19 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511416', 'tblTempUsageDetail_20' ) start [2025-02-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511416', 'tblTempUsageDetail_20' ) end [2025-02-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511416', 'tblTempVendorCDR_20' ) start [2025-02-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511416', 'tblTempVendorCDR_20' ) end [2025-02-19 15:47:21] Production.INFO: ProcessCDR(1,14511416,1,1,2) [2025-02-19 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511416', 'tblTempUsageDetail_20' ) start [2025-02-19 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511416', 'tblTempUsageDetail_20' ) end [2025-02-19 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:47:27] Production.INFO: ==27655== Releasing lock... [2025-02-19 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:47:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:48:06 [end_date_ymd] => 2025-02-19 15:48:06 [RateCDR] => 1 ) [2025-02-19 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:48:06' and `end` < '2025-02-19 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:48:19] Production.INFO: count ==5505 [2025-02-19 15:48:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:48:06 - End Time 2025-02-19 15:48:06 [2025-02-19 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511421', 'tblTempUsageDetail_20' ) start [2025-02-19 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511421', 'tblTempUsageDetail_20' ) end [2025-02-19 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511421', 'tblTempVendorCDR_20' ) start [2025-02-19 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511421', 'tblTempVendorCDR_20' ) end [2025-02-19 15:48:22] Production.INFO: ProcessCDR(1,14511421,1,1,2) [2025-02-19 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511421', 'tblTempUsageDetail_20' ) start [2025-02-19 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511421', 'tblTempUsageDetail_20' ) end [2025-02-19 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:48:28] Production.INFO: ==27728== Releasing lock... [2025-02-19 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:48:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:49:05 [end_date_ymd] => 2025-02-19 15:49:05 [RateCDR] => 1 ) [2025-02-19 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:49:05' and `end` < '2025-02-19 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:49:18] Production.INFO: count ==5484 [2025-02-19 15:49:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:49:05 - End Time 2025-02-19 15:49:05 [2025-02-19 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511426', 'tblTempUsageDetail_20' ) start [2025-02-19 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511426', 'tblTempUsageDetail_20' ) end [2025-02-19 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511426', 'tblTempVendorCDR_20' ) start [2025-02-19 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511426', 'tblTempVendorCDR_20' ) end [2025-02-19 15:49:21] Production.INFO: ProcessCDR(1,14511426,1,1,2) [2025-02-19 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511426', 'tblTempUsageDetail_20' ) start [2025-02-19 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511426', 'tblTempUsageDetail_20' ) end [2025-02-19 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:49:26] Production.INFO: ==27798== Releasing lock... [2025-02-19 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:49:26] Production.INFO: 69 MB #Memory Used# [2025-02-19 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:50:06 [end_date_ymd] => 2025-02-19 15:50:06 [RateCDR] => 1 ) [2025-02-19 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:50:06' and `end` < '2025-02-19 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:50:19] Production.INFO: count ==5556 [2025-02-19 15:50:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:50:06 - End Time 2025-02-19 15:50:06 [2025-02-19 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511431', 'tblTempUsageDetail_20' ) start [2025-02-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511431', 'tblTempUsageDetail_20' ) end [2025-02-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511431', 'tblTempVendorCDR_20' ) start [2025-02-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511431', 'tblTempVendorCDR_20' ) end [2025-02-19 15:50:22] Production.INFO: ProcessCDR(1,14511431,1,1,2) [2025-02-19 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511431', 'tblTempUsageDetail_20' ) start [2025-02-19 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511431', 'tblTempUsageDetail_20' ) end [2025-02-19 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:50:28] Production.INFO: ==27871== Releasing lock... [2025-02-19 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:51:05 [end_date_ymd] => 2025-02-19 15:51:05 [RateCDR] => 1 ) [2025-02-19 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:51:05' and `end` < '2025-02-19 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:51:18] Production.INFO: count ==5580 [2025-02-19 15:51:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:51:05 - End Time 2025-02-19 15:51:05 [2025-02-19 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511437', 'tblTempUsageDetail_20' ) start [2025-02-19 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511437', 'tblTempUsageDetail_20' ) end [2025-02-19 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511437', 'tblTempVendorCDR_20' ) start [2025-02-19 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511437', 'tblTempVendorCDR_20' ) end [2025-02-19 15:51:21] Production.INFO: ProcessCDR(1,14511437,1,1,2) [2025-02-19 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511437', 'tblTempUsageDetail_20' ) start [2025-02-19 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511437', 'tblTempUsageDetail_20' ) end [2025-02-19 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:51:26] Production.INFO: ==27941== Releasing lock... [2025-02-19 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:51:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-19 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:52:06 [end_date_ymd] => 2025-02-19 15:52:06 [RateCDR] => 1 ) [2025-02-19 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:52:06' and `end` < '2025-02-19 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:52:19] Production.INFO: count ==5595 [2025-02-19 15:52:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:52:06 - End Time 2025-02-19 15:52:06 [2025-02-19 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511442', 'tblTempUsageDetail_20' ) start [2025-02-19 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511442', 'tblTempUsageDetail_20' ) end [2025-02-19 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511442', 'tblTempVendorCDR_20' ) start [2025-02-19 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511442', 'tblTempVendorCDR_20' ) end [2025-02-19 15:52:22] Production.INFO: ProcessCDR(1,14511442,1,1,2) [2025-02-19 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511442', 'tblTempUsageDetail_20' ) start [2025-02-19 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511442', 'tblTempUsageDetail_20' ) end [2025-02-19 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:52:27] Production.INFO: ==28012== Releasing lock... [2025-02-19 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-19 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:53:05 [end_date_ymd] => 2025-02-19 15:53:05 [RateCDR] => 1 ) [2025-02-19 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:53:05' and `end` < '2025-02-19 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:53:18] Production.INFO: count ==5619 [2025-02-19 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:53:05 - End Time 2025-02-19 15:53:05 [2025-02-19 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511447', 'tblTempUsageDetail_20' ) start [2025-02-19 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511447', 'tblTempUsageDetail_20' ) end [2025-02-19 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511447', 'tblTempVendorCDR_20' ) start [2025-02-19 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511447', 'tblTempVendorCDR_20' ) end [2025-02-19 15:53:21] Production.INFO: ProcessCDR(1,14511447,1,1,2) [2025-02-19 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511447', 'tblTempUsageDetail_20' ) start [2025-02-19 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511447', 'tblTempUsageDetail_20' ) end [2025-02-19 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:53:26] Production.INFO: ==28123== Releasing lock... [2025-02-19 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:53:26] Production.INFO: 70 MB #Memory Used# [2025-02-19 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:54:06 [end_date_ymd] => 2025-02-19 15:54:06 [RateCDR] => 1 ) [2025-02-19 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:54:06' and `end` < '2025-02-19 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:54:19] Production.INFO: count ==5650 [2025-02-19 15:54:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:54:06 - End Time 2025-02-19 15:54:06 [2025-02-19 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511452', 'tblTempUsageDetail_20' ) start [2025-02-19 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511452', 'tblTempUsageDetail_20' ) end [2025-02-19 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511452', 'tblTempVendorCDR_20' ) start [2025-02-19 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511452', 'tblTempVendorCDR_20' ) end [2025-02-19 15:54:22] Production.INFO: ProcessCDR(1,14511452,1,1,2) [2025-02-19 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511452', 'tblTempUsageDetail_20' ) start [2025-02-19 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511452', 'tblTempUsageDetail_20' ) end [2025-02-19 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:54:27] Production.INFO: ==28195== Releasing lock... [2025-02-19 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:54:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:55:05 [end_date_ymd] => 2025-02-19 15:55:05 [RateCDR] => 1 ) [2025-02-19 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:55:05' and `end` < '2025-02-19 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:55:19] Production.INFO: count ==5674 [2025-02-19 15:55:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:55:05 - End Time 2025-02-19 15:55:05 [2025-02-19 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511457', 'tblTempUsageDetail_20' ) start [2025-02-19 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511457', 'tblTempUsageDetail_20' ) end [2025-02-19 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511457', 'tblTempVendorCDR_20' ) start [2025-02-19 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511457', 'tblTempVendorCDR_20' ) end [2025-02-19 15:55:22] Production.INFO: ProcessCDR(1,14511457,1,1,2) [2025-02-19 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511457', 'tblTempUsageDetail_20' ) start [2025-02-19 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511457', 'tblTempUsageDetail_20' ) end [2025-02-19 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:55:27] Production.INFO: ==28266== Releasing lock... [2025-02-19 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:55:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:56:05 [end_date_ymd] => 2025-02-19 15:56:05 [RateCDR] => 1 ) [2025-02-19 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:56:05' and `end` < '2025-02-19 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:56:19] Production.INFO: count ==5679 [2025-02-19 15:56:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:56:05 - End Time 2025-02-19 15:56:05 [2025-02-19 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511462', 'tblTempUsageDetail_20' ) start [2025-02-19 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511462', 'tblTempUsageDetail_20' ) end [2025-02-19 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511462', 'tblTempVendorCDR_20' ) start [2025-02-19 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511462', 'tblTempVendorCDR_20' ) end [2025-02-19 15:56:22] Production.INFO: ProcessCDR(1,14511462,1,1,2) [2025-02-19 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511462', 'tblTempUsageDetail_20' ) start [2025-02-19 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511462', 'tblTempUsageDetail_20' ) end [2025-02-19 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:56:28] Production.INFO: ==28338== Releasing lock... [2025-02-19 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:56:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:57:06 [end_date_ymd] => 2025-02-19 15:57:06 [RateCDR] => 1 ) [2025-02-19 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:57:06' and `end` < '2025-02-19 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:57:19] Production.INFO: count ==5681 [2025-02-19 15:57:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:57:06 - End Time 2025-02-19 15:57:06 [2025-02-19 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511467', 'tblTempUsageDetail_20' ) start [2025-02-19 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511467', 'tblTempUsageDetail_20' ) end [2025-02-19 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511467', 'tblTempVendorCDR_20' ) start [2025-02-19 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511467', 'tblTempVendorCDR_20' ) end [2025-02-19 15:57:22] Production.INFO: ProcessCDR(1,14511467,1,1,2) [2025-02-19 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511467', 'tblTempUsageDetail_20' ) start [2025-02-19 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511467', 'tblTempUsageDetail_20' ) end [2025-02-19 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:57:27] Production.INFO: ==28410== Releasing lock... [2025-02-19 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:57:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:58:05 [end_date_ymd] => 2025-02-19 15:58:05 [RateCDR] => 1 ) [2025-02-19 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:58:05' and `end` < '2025-02-19 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:58:18] Production.INFO: count ==5679 [2025-02-19 15:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 12:58:05 - End Time 2025-02-19 15:58:05 [2025-02-19 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511472', 'tblTempUsageDetail_20' ) start [2025-02-19 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511472', 'tblTempUsageDetail_20' ) end [2025-02-19 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511472', 'tblTempVendorCDR_20' ) start [2025-02-19 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511472', 'tblTempVendorCDR_20' ) end [2025-02-19 15:58:21] Production.INFO: ProcessCDR(1,14511472,1,1,2) [2025-02-19 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511472', 'tblTempUsageDetail_20' ) start [2025-02-19 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511472', 'tblTempUsageDetail_20' ) end [2025-02-19 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:58:27] Production.INFO: ==28484== Releasing lock... [2025-02-19 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:58:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 12:59:06 [end_date_ymd] => 2025-02-19 15:59:06 [RateCDR] => 1 ) [2025-02-19 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 12:59:06' and `end` < '2025-02-19 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 15:59:19] Production.INFO: count ==5669 [2025-02-19 15:59:22] Production.ERROR: pbx CDR StartTime 2025-02-19 12:59:06 - End Time 2025-02-19 15:59:06 [2025-02-19 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511477', 'tblTempUsageDetail_20' ) start [2025-02-19 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511477', 'tblTempUsageDetail_20' ) end [2025-02-19 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511477', 'tblTempVendorCDR_20' ) start [2025-02-19 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511477', 'tblTempVendorCDR_20' ) end [2025-02-19 15:59:22] Production.INFO: ProcessCDR(1,14511477,1,1,2) [2025-02-19 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511477', 'tblTempUsageDetail_20' ) start [2025-02-19 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511477', 'tblTempUsageDetail_20' ) end [2025-02-19 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 15:59:27] Production.INFO: ==28569== Releasing lock... [2025-02-19 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 15:59:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:00:06 [end_date_ymd] => 2025-02-19 16:00:06 [RateCDR] => 1 ) [2025-02-19 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:00:06' and `end` < '2025-02-19 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:00:19] Production.INFO: count ==5673 [2025-02-19 16:00:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:00:06 - End Time 2025-02-19 16:00:06 [2025-02-19 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511483', 'tblTempUsageDetail_20' ) start [2025-02-19 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511483', 'tblTempUsageDetail_20' ) end [2025-02-19 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511483', 'tblTempVendorCDR_20' ) start [2025-02-19 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511483', 'tblTempVendorCDR_20' ) end [2025-02-19 16:00:22] Production.INFO: ProcessCDR(1,14511483,1,1,2) [2025-02-19 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511483', 'tblTempUsageDetail_20' ) start [2025-02-19 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511483', 'tblTempUsageDetail_20' ) end [2025-02-19 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:00:27] Production.INFO: ==28643== Releasing lock... [2025-02-19 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:00:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:01:05 [end_date_ymd] => 2025-02-19 16:01:05 [RateCDR] => 1 ) [2025-02-19 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:01:05' and `end` < '2025-02-19 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:01:18] Production.INFO: count ==5704 [2025-02-19 16:01:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:01:05 - End Time 2025-02-19 16:01:05 [2025-02-19 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511488', 'tblTempUsageDetail_20' ) start [2025-02-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511488', 'tblTempUsageDetail_20' ) end [2025-02-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511488', 'tblTempVendorCDR_20' ) start [2025-02-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511488', 'tblTempVendorCDR_20' ) end [2025-02-19 16:01:21] Production.INFO: ProcessCDR(1,14511488,1,1,2) [2025-02-19 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511488', 'tblTempUsageDetail_20' ) start [2025-02-19 16:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511488', 'tblTempUsageDetail_20' ) end [2025-02-19 16:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:01:24] Production.INFO: ==28730== Releasing lock... [2025-02-19 16:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:01:24] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:02:05 [end_date_ymd] => 2025-02-19 16:02:05 [RateCDR] => 1 ) [2025-02-19 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:02:05' and `end` < '2025-02-19 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:02:18] Production.INFO: count ==5702 [2025-02-19 16:02:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:02:05 - End Time 2025-02-19 16:02:05 [2025-02-19 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511493', 'tblTempUsageDetail_20' ) start [2025-02-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511493', 'tblTempUsageDetail_20' ) end [2025-02-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511493', 'tblTempVendorCDR_20' ) start [2025-02-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511493', 'tblTempVendorCDR_20' ) end [2025-02-19 16:02:21] Production.INFO: ProcessCDR(1,14511493,1,1,2) [2025-02-19 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511493', 'tblTempUsageDetail_20' ) start [2025-02-19 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511493', 'tblTempUsageDetail_20' ) end [2025-02-19 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:02:27] Production.INFO: ==28804== Releasing lock... [2025-02-19 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:02:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:03:05 [end_date_ymd] => 2025-02-19 16:03:05 [RateCDR] => 1 ) [2025-02-19 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:03:05' and `end` < '2025-02-19 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:03:18] Production.INFO: count ==5673 [2025-02-19 16:03:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:03:05 - End Time 2025-02-19 16:03:05 [2025-02-19 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511498', 'tblTempUsageDetail_20' ) start [2025-02-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511498', 'tblTempUsageDetail_20' ) end [2025-02-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511498', 'tblTempVendorCDR_20' ) start [2025-02-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511498', 'tblTempVendorCDR_20' ) end [2025-02-19 16:03:21] Production.INFO: ProcessCDR(1,14511498,1,1,2) [2025-02-19 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511498', 'tblTempUsageDetail_20' ) start [2025-02-19 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511498', 'tblTempUsageDetail_20' ) end [2025-02-19 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:03:26] Production.INFO: ==28877== Releasing lock... [2025-02-19 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:03:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:04:05 [end_date_ymd] => 2025-02-19 16:04:05 [RateCDR] => 1 ) [2025-02-19 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:04:05' and `end` < '2025-02-19 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:04:19] Production.INFO: count ==5693 [2025-02-19 16:04:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:04:05 - End Time 2025-02-19 16:04:05 [2025-02-19 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511503', 'tblTempUsageDetail_20' ) start [2025-02-19 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511503', 'tblTempUsageDetail_20' ) end [2025-02-19 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511503', 'tblTempVendorCDR_20' ) start [2025-02-19 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511503', 'tblTempVendorCDR_20' ) end [2025-02-19 16:04:21] Production.INFO: ProcessCDR(1,14511503,1,1,2) [2025-02-19 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511503', 'tblTempUsageDetail_20' ) start [2025-02-19 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511503', 'tblTempUsageDetail_20' ) end [2025-02-19 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:04:26] Production.INFO: ==28951== Releasing lock... [2025-02-19 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:04:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:05:05 [end_date_ymd] => 2025-02-19 16:05:05 [RateCDR] => 1 ) [2025-02-19 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:05:05' and `end` < '2025-02-19 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:05:18] Production.INFO: count ==5712 [2025-02-19 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:05:05 - End Time 2025-02-19 16:05:05 [2025-02-19 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511508', 'tblTempUsageDetail_20' ) start [2025-02-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511508', 'tblTempUsageDetail_20' ) end [2025-02-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511508', 'tblTempVendorCDR_20' ) start [2025-02-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511508', 'tblTempVendorCDR_20' ) end [2025-02-19 16:05:21] Production.INFO: ProcessCDR(1,14511508,1,1,2) [2025-02-19 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511508', 'tblTempUsageDetail_20' ) start [2025-02-19 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511508', 'tblTempUsageDetail_20' ) end [2025-02-19 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:05:26] Production.INFO: ==29026== Releasing lock... [2025-02-19 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:05:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:06:04 [end_date_ymd] => 2025-02-19 16:06:04 [RateCDR] => 1 ) [2025-02-19 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:06:04' and `end` < '2025-02-19 16:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:06:17] Production.INFO: count ==5698 [2025-02-19 16:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:06:04 - End Time 2025-02-19 16:06:04 [2025-02-19 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511513', 'tblTempUsageDetail_20' ) start [2025-02-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511513', 'tblTempUsageDetail_20' ) end [2025-02-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511513', 'tblTempVendorCDR_20' ) start [2025-02-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511513', 'tblTempVendorCDR_20' ) end [2025-02-19 16:06:20] Production.INFO: ProcessCDR(1,14511513,1,1,2) [2025-02-19 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511513', 'tblTempUsageDetail_20' ) start [2025-02-19 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511513', 'tblTempUsageDetail_20' ) end [2025-02-19 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:06:25] Production.INFO: ==29099== Releasing lock... [2025-02-19 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:06:25] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:07:05 [end_date_ymd] => 2025-02-19 16:07:05 [RateCDR] => 1 ) [2025-02-19 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:07:05' and `end` < '2025-02-19 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:07:18] Production.INFO: count ==5683 [2025-02-19 16:07:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:07:05 - End Time 2025-02-19 16:07:05 [2025-02-19 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511518', 'tblTempUsageDetail_20' ) start [2025-02-19 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511518', 'tblTempUsageDetail_20' ) end [2025-02-19 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511518', 'tblTempVendorCDR_20' ) start [2025-02-19 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511518', 'tblTempVendorCDR_20' ) end [2025-02-19 16:07:20] Production.INFO: ProcessCDR(1,14511518,1,1,2) [2025-02-19 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511518', 'tblTempUsageDetail_20' ) start [2025-02-19 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511518', 'tblTempUsageDetail_20' ) end [2025-02-19 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:07:25] Production.INFO: ==29174== Releasing lock... [2025-02-19 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:07:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:08:04 [end_date_ymd] => 2025-02-19 16:08:04 [RateCDR] => 1 ) [2025-02-19 16:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:08:04' and `end` < '2025-02-19 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:08:17] Production.INFO: count ==5660 [2025-02-19 16:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:08:04 - End Time 2025-02-19 16:08:04 [2025-02-19 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511522', 'tblTempUsageDetail_20' ) start [2025-02-19 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511522', 'tblTempUsageDetail_20' ) end [2025-02-19 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511522', 'tblTempVendorCDR_20' ) start [2025-02-19 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511522', 'tblTempVendorCDR_20' ) end [2025-02-19 16:08:20] Production.INFO: ProcessCDR(1,14511522,1,1,2) [2025-02-19 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511522', 'tblTempUsageDetail_20' ) start [2025-02-19 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511522', 'tblTempUsageDetail_20' ) end [2025-02-19 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:08:24] Production.INFO: ==29264== Releasing lock... [2025-02-19 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:08:24] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:09:05 [end_date_ymd] => 2025-02-19 16:09:05 [RateCDR] => 1 ) [2025-02-19 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:09:05' and `end` < '2025-02-19 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:09:18] Production.INFO: count ==5660 [2025-02-19 16:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:09:05 - End Time 2025-02-19 16:09:05 [2025-02-19 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511528', 'tblTempUsageDetail_20' ) start [2025-02-19 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511528', 'tblTempUsageDetail_20' ) end [2025-02-19 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511528', 'tblTempVendorCDR_20' ) start [2025-02-19 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511528', 'tblTempVendorCDR_20' ) end [2025-02-19 16:09:20] Production.INFO: ProcessCDR(1,14511528,1,1,2) [2025-02-19 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511528', 'tblTempUsageDetail_20' ) start [2025-02-19 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511528', 'tblTempUsageDetail_20' ) end [2025-02-19 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:09:25] Production.INFO: ==29366== Releasing lock... [2025-02-19 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:09:25] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:10:06 [end_date_ymd] => 2025-02-19 16:10:06 [RateCDR] => 1 ) [2025-02-19 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:10:06' and `end` < '2025-02-19 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:10:19] Production.INFO: count ==5677 [2025-02-19 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:10:06 - End Time 2025-02-19 16:10:06 [2025-02-19 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511534', 'tblTempUsageDetail_20' ) start [2025-02-19 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511534', 'tblTempUsageDetail_20' ) end [2025-02-19 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511534', 'tblTempVendorCDR_20' ) start [2025-02-19 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511534', 'tblTempVendorCDR_20' ) end [2025-02-19 16:10:22] Production.INFO: ProcessCDR(1,14511534,1,1,2) [2025-02-19 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511534', 'tblTempUsageDetail_20' ) start [2025-02-19 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511534', 'tblTempUsageDetail_20' ) end [2025-02-19 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:10:28] Production.INFO: ==29446== Releasing lock... [2025-02-19 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:10:28] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:11:05 [end_date_ymd] => 2025-02-19 16:11:05 [RateCDR] => 1 ) [2025-02-19 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:11:05' and `end` < '2025-02-19 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:11:18] Production.INFO: count ==5743 [2025-02-19 16:11:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:11:05 - End Time 2025-02-19 16:11:05 [2025-02-19 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511539', 'tblTempUsageDetail_20' ) start [2025-02-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511539', 'tblTempUsageDetail_20' ) end [2025-02-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511539', 'tblTempVendorCDR_20' ) start [2025-02-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511539', 'tblTempVendorCDR_20' ) end [2025-02-19 16:11:21] Production.INFO: ProcessCDR(1,14511539,1,1,2) [2025-02-19 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511539', 'tblTempUsageDetail_20' ) start [2025-02-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511539', 'tblTempUsageDetail_20' ) end [2025-02-19 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:11:26] Production.INFO: ==29531== Releasing lock... [2025-02-19 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:11:26] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:12:05 [end_date_ymd] => 2025-02-19 16:12:05 [RateCDR] => 1 ) [2025-02-19 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:12:05' and `end` < '2025-02-19 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:12:18] Production.INFO: count ==5757 [2025-02-19 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:12:05 - End Time 2025-02-19 16:12:05 [2025-02-19 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511544', 'tblTempUsageDetail_20' ) start [2025-02-19 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511544', 'tblTempUsageDetail_20' ) end [2025-02-19 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511544', 'tblTempVendorCDR_20' ) start [2025-02-19 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511544', 'tblTempVendorCDR_20' ) end [2025-02-19 16:12:21] Production.INFO: ProcessCDR(1,14511544,1,1,2) [2025-02-19 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511544', 'tblTempUsageDetail_20' ) start [2025-02-19 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511544', 'tblTempUsageDetail_20' ) end [2025-02-19 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:12:26] Production.INFO: ==29607== Releasing lock... [2025-02-19 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:12:26] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:13:05 [end_date_ymd] => 2025-02-19 16:13:05 [RateCDR] => 1 ) [2025-02-19 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:13:05' and `end` < '2025-02-19 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:13:18] Production.INFO: count ==5763 [2025-02-19 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:13:05 - End Time 2025-02-19 16:13:05 [2025-02-19 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511549', 'tblTempUsageDetail_20' ) start [2025-02-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511549', 'tblTempUsageDetail_20' ) end [2025-02-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511549', 'tblTempVendorCDR_20' ) start [2025-02-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511549', 'tblTempVendorCDR_20' ) end [2025-02-19 16:13:21] Production.INFO: ProcessCDR(1,14511549,1,1,2) [2025-02-19 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511549', 'tblTempUsageDetail_20' ) start [2025-02-19 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511549', 'tblTempUsageDetail_20' ) end [2025-02-19 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:13:26] Production.INFO: ==29690== Releasing lock... [2025-02-19 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:13:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-19 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:14:06 [end_date_ymd] => 2025-02-19 16:14:06 [RateCDR] => 1 ) [2025-02-19 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:14:06' and `end` < '2025-02-19 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:14:19] Production.INFO: count ==5769 [2025-02-19 16:14:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:14:06 - End Time 2025-02-19 16:14:06 [2025-02-19 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511554', 'tblTempUsageDetail_20' ) start [2025-02-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511554', 'tblTempUsageDetail_20' ) end [2025-02-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511554', 'tblTempVendorCDR_20' ) start [2025-02-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511554', 'tblTempVendorCDR_20' ) end [2025-02-19 16:14:22] Production.INFO: ProcessCDR(1,14511554,1,1,2) [2025-02-19 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511554', 'tblTempUsageDetail_20' ) start [2025-02-19 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511554', 'tblTempUsageDetail_20' ) end [2025-02-19 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:14:27] Production.INFO: ==29774== Releasing lock... [2025-02-19 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:14:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-19 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:15:05 [end_date_ymd] => 2025-02-19 16:15:05 [RateCDR] => 1 ) [2025-02-19 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:15:05' and `end` < '2025-02-19 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:15:18] Production.INFO: count ==5754 [2025-02-19 16:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:15:05 - End Time 2025-02-19 16:15:05 [2025-02-19 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511559', 'tblTempUsageDetail_20' ) start [2025-02-19 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511559', 'tblTempUsageDetail_20' ) end [2025-02-19 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511559', 'tblTempVendorCDR_20' ) start [2025-02-19 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511559', 'tblTempVendorCDR_20' ) end [2025-02-19 16:15:20] Production.INFO: ProcessCDR(1,14511559,1,1,2) [2025-02-19 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511559', 'tblTempUsageDetail_20' ) start [2025-02-19 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511559', 'tblTempUsageDetail_20' ) end [2025-02-19 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:15:25] Production.INFO: ==29851== Releasing lock... [2025-02-19 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:15:25] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:16:06 [end_date_ymd] => 2025-02-19 16:16:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 13:16:06' and `end` < '2025-02-19 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-02-19 16:16:19] Production.INFO: count ==5754 [2025-02-19 16:16:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:16:06 - End Time 2025-02-19 16:16:06 [2025-02-19 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511564', 'tblTempUsageDetail_20' ) start [2025-02-19 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511564', 'tblTempUsageDetail_20' ) end [2025-02-19 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511564', 'tblTempVendorCDR_20' ) start [2025-02-19 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511564', 'tblTempVendorCDR_20' ) end [2025-02-19 16:16:22] Production.INFO: ProcessCDR(1,14511564,1,1,2) [2025-02-19 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511564', 'tblTempUsageDetail_20' ) start [2025-02-19 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511564', 'tblTempUsageDetail_20' ) end [2025-02-19 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:16:28] Production.INFO: ==29930== Releasing lock... [2025-02-19 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:16:28] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:17:05 [end_date_ymd] => 2025-02-19 16:17:05 [RateCDR] => 1 ) [2025-02-19 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:17:05' and `end` < '2025-02-19 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:17:18] Production.INFO: count ==5751 [2025-02-19 16:17:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:17:05 - End Time 2025-02-19 16:17:05 [2025-02-19 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511569', 'tblTempUsageDetail_20' ) start [2025-02-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511569', 'tblTempUsageDetail_20' ) end [2025-02-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511569', 'tblTempVendorCDR_20' ) start [2025-02-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511569', 'tblTempVendorCDR_20' ) end [2025-02-19 16:17:20] Production.INFO: ProcessCDR(1,14511569,1,1,2) [2025-02-19 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511569', 'tblTempUsageDetail_20' ) start [2025-02-19 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511569', 'tblTempUsageDetail_20' ) end [2025-02-19 16:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:17:25] Production.INFO: ==30016== Releasing lock... [2025-02-19 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:17:25] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:18:05 [end_date_ymd] => 2025-02-19 16:18:05 [RateCDR] => 1 ) [2025-02-19 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:18:05' and `end` < '2025-02-19 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:18:18] Production.INFO: count ==5742 [2025-02-19 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:18:05 - End Time 2025-02-19 16:18:05 [2025-02-19 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511574', 'tblTempUsageDetail_20' ) start [2025-02-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511574', 'tblTempUsageDetail_20' ) end [2025-02-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511574', 'tblTempVendorCDR_20' ) start [2025-02-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511574', 'tblTempVendorCDR_20' ) end [2025-02-19 16:18:21] Production.INFO: ProcessCDR(1,14511574,1,1,2) [2025-02-19 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511574', 'tblTempUsageDetail_20' ) start [2025-02-19 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511574', 'tblTempUsageDetail_20' ) end [2025-02-19 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:18:26] Production.INFO: ==30117== Releasing lock... [2025-02-19 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:18:26] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:19:04 [end_date_ymd] => 2025-02-19 16:19:04 [RateCDR] => 1 ) [2025-02-19 16:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:19:04' and `end` < '2025-02-19 16:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:19:17] Production.INFO: count ==5728 [2025-02-19 16:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:19:04 - End Time 2025-02-19 16:19:04 [2025-02-19 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511579', 'tblTempUsageDetail_20' ) start [2025-02-19 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511579', 'tblTempUsageDetail_20' ) end [2025-02-19 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511579', 'tblTempVendorCDR_20' ) start [2025-02-19 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511579', 'tblTempVendorCDR_20' ) end [2025-02-19 16:19:20] Production.INFO: ProcessCDR(1,14511579,1,1,2) [2025-02-19 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511579', 'tblTempUsageDetail_20' ) start [2025-02-19 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511579', 'tblTempUsageDetail_20' ) end [2025-02-19 16:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:19:25] Production.INFO: ==30201== Releasing lock... [2025-02-19 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:19:25] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:20:06 [end_date_ymd] => 2025-02-19 16:20:06 [RateCDR] => 1 ) [2025-02-19 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:20:06' and `end` < '2025-02-19 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:20:19] Production.INFO: count ==5727 [2025-02-19 16:20:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:20:06 - End Time 2025-02-19 16:20:06 [2025-02-19 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511585', 'tblTempUsageDetail_20' ) start [2025-02-19 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511585', 'tblTempUsageDetail_20' ) end [2025-02-19 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511585', 'tblTempVendorCDR_20' ) start [2025-02-19 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511585', 'tblTempVendorCDR_20' ) end [2025-02-19 16:20:22] Production.INFO: ProcessCDR(1,14511585,1,1,2) [2025-02-19 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511585', 'tblTempUsageDetail_20' ) start [2025-02-19 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511585', 'tblTempUsageDetail_20' ) end [2025-02-19 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:20:27] Production.INFO: ==30287== Releasing lock... [2025-02-19 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:20:27] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:21:04 [end_date_ymd] => 2025-02-19 16:21:04 [RateCDR] => 1 ) [2025-02-19 16:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:21:04' and `end` < '2025-02-19 16:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:21:17] Production.INFO: count ==5730 [2025-02-19 16:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:21:04 - End Time 2025-02-19 16:21:04 [2025-02-19 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511590', 'tblTempUsageDetail_20' ) start [2025-02-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511590', 'tblTempUsageDetail_20' ) end [2025-02-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511590', 'tblTempVendorCDR_20' ) start [2025-02-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511590', 'tblTempVendorCDR_20' ) end [2025-02-19 16:21:20] Production.INFO: ProcessCDR(1,14511590,1,1,2) [2025-02-19 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511590', 'tblTempUsageDetail_20' ) start [2025-02-19 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511590', 'tblTempUsageDetail_20' ) end [2025-02-19 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:21:25] Production.INFO: ==30371== Releasing lock... [2025-02-19 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:21:25] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:22:05 [end_date_ymd] => 2025-02-19 16:22:05 [RateCDR] => 1 ) [2025-02-19 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:22:05' and `end` < '2025-02-19 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:22:18] Production.INFO: count ==5725 [2025-02-19 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:22:05 - End Time 2025-02-19 16:22:05 [2025-02-19 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511595', 'tblTempUsageDetail_20' ) start [2025-02-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511595', 'tblTempUsageDetail_20' ) end [2025-02-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511595', 'tblTempVendorCDR_20' ) start [2025-02-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511595', 'tblTempVendorCDR_20' ) end [2025-02-19 16:22:21] Production.INFO: ProcessCDR(1,14511595,1,1,2) [2025-02-19 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511595', 'tblTempUsageDetail_20' ) start [2025-02-19 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511595', 'tblTempUsageDetail_20' ) end [2025-02-19 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:22:26] Production.INFO: ==30455== Releasing lock... [2025-02-19 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:22:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:23:06 [end_date_ymd] => 2025-02-19 16:23:06 [RateCDR] => 1 ) [2025-02-19 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:23:06' and `end` < '2025-02-19 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:23:19] Production.INFO: count ==5726 [2025-02-19 16:23:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:23:06 - End Time 2025-02-19 16:23:06 [2025-02-19 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511600', 'tblTempUsageDetail_20' ) start [2025-02-19 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511600', 'tblTempUsageDetail_20' ) end [2025-02-19 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511600', 'tblTempVendorCDR_20' ) start [2025-02-19 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511600', 'tblTempVendorCDR_20' ) end [2025-02-19 16:23:22] Production.INFO: ProcessCDR(1,14511600,1,1,2) [2025-02-19 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511600', 'tblTempUsageDetail_20' ) start [2025-02-19 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511600', 'tblTempUsageDetail_20' ) end [2025-02-19 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:23:26] Production.INFO: ==30541== Releasing lock... [2025-02-19 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:23:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:24:05 [end_date_ymd] => 2025-02-19 16:24:05 [RateCDR] => 1 ) [2025-02-19 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:24:05' and `end` < '2025-02-19 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:24:18] Production.INFO: count ==5740 [2025-02-19 16:24:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:24:05 - End Time 2025-02-19 16:24:05 [2025-02-19 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511605', 'tblTempUsageDetail_20' ) start [2025-02-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511605', 'tblTempUsageDetail_20' ) end [2025-02-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511605', 'tblTempVendorCDR_20' ) start [2025-02-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511605', 'tblTempVendorCDR_20' ) end [2025-02-19 16:24:21] Production.INFO: ProcessCDR(1,14511605,1,1,2) [2025-02-19 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511605', 'tblTempUsageDetail_20' ) start [2025-02-19 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511605', 'tblTempUsageDetail_20' ) end [2025-02-19 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:24:26] Production.INFO: ==30660== Releasing lock... [2025-02-19 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:24:26] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:25:06 [end_date_ymd] => 2025-02-19 16:25:06 [RateCDR] => 1 ) [2025-02-19 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:25:06' and `end` < '2025-02-19 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:25:19] Production.INFO: count ==5737 [2025-02-19 16:25:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:25:06 - End Time 2025-02-19 16:25:06 [2025-02-19 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511610', 'tblTempUsageDetail_20' ) start [2025-02-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511610', 'tblTempUsageDetail_20' ) end [2025-02-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511610', 'tblTempVendorCDR_20' ) start [2025-02-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511610', 'tblTempVendorCDR_20' ) end [2025-02-19 16:25:21] Production.INFO: ProcessCDR(1,14511610,1,1,2) [2025-02-19 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511610', 'tblTempUsageDetail_20' ) start [2025-02-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511610', 'tblTempUsageDetail_20' ) end [2025-02-19 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:25:26] Production.INFO: ==30742== Releasing lock... [2025-02-19 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:25:26] Production.INFO: 71 MB #Memory Used# [2025-02-19 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:26:05 [end_date_ymd] => 2025-02-19 16:26:05 [RateCDR] => 1 ) [2025-02-19 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:26:05' and `end` < '2025-02-19 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:26:18] Production.INFO: count ==5724 [2025-02-19 16:26:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:26:05 - End Time 2025-02-19 16:26:05 [2025-02-19 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511615', 'tblTempUsageDetail_20' ) start [2025-02-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511615', 'tblTempUsageDetail_20' ) end [2025-02-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511615', 'tblTempVendorCDR_20' ) start [2025-02-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511615', 'tblTempVendorCDR_20' ) end [2025-02-19 16:26:21] Production.INFO: ProcessCDR(1,14511615,1,1,2) [2025-02-19 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511615', 'tblTempUsageDetail_20' ) start [2025-02-19 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511615', 'tblTempUsageDetail_20' ) end [2025-02-19 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:26:26] Production.INFO: ==30820== Releasing lock... [2025-02-19 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:26:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:27:06 [end_date_ymd] => 2025-02-19 16:27:06 [RateCDR] => 1 ) [2025-02-19 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:27:06' and `end` < '2025-02-19 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:27:19] Production.INFO: count ==5708 [2025-02-19 16:27:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:27:06 - End Time 2025-02-19 16:27:06 [2025-02-19 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511620', 'tblTempUsageDetail_20' ) start [2025-02-19 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511620', 'tblTempUsageDetail_20' ) end [2025-02-19 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511620', 'tblTempVendorCDR_20' ) start [2025-02-19 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511620', 'tblTempVendorCDR_20' ) end [2025-02-19 16:27:21] Production.INFO: ProcessCDR(1,14511620,1,1,2) [2025-02-19 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511620', 'tblTempUsageDetail_20' ) start [2025-02-19 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511620', 'tblTempUsageDetail_20' ) end [2025-02-19 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:27:26] Production.INFO: ==30903== Releasing lock... [2025-02-19 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:27:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:28:05 [end_date_ymd] => 2025-02-19 16:28:05 [RateCDR] => 1 ) [2025-02-19 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:28:05' and `end` < '2025-02-19 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:28:18] Production.INFO: count ==5709 [2025-02-19 16:28:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:28:05 - End Time 2025-02-19 16:28:05 [2025-02-19 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511625', 'tblTempUsageDetail_20' ) start [2025-02-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511625', 'tblTempUsageDetail_20' ) end [2025-02-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511625', 'tblTempVendorCDR_20' ) start [2025-02-19 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511625', 'tblTempVendorCDR_20' ) end [2025-02-19 16:28:21] Production.INFO: ProcessCDR(1,14511625,1,1,2) [2025-02-19 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511625', 'tblTempUsageDetail_20' ) start [2025-02-19 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511625', 'tblTempUsageDetail_20' ) end [2025-02-19 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:28:26] Production.INFO: ==30985== Releasing lock... [2025-02-19 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:28:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:29:05 [end_date_ymd] => 2025-02-19 16:29:05 [RateCDR] => 1 ) [2025-02-19 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:29:05' and `end` < '2025-02-19 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:29:18] Production.INFO: count ==5689 [2025-02-19 16:29:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:29:05 - End Time 2025-02-19 16:29:05 [2025-02-19 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511630', 'tblTempUsageDetail_20' ) start [2025-02-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511630', 'tblTempUsageDetail_20' ) end [2025-02-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511630', 'tblTempVendorCDR_20' ) start [2025-02-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511630', 'tblTempVendorCDR_20' ) end [2025-02-19 16:29:21] Production.INFO: ProcessCDR(1,14511630,1,1,2) [2025-02-19 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511630', 'tblTempUsageDetail_20' ) start [2025-02-19 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511630', 'tblTempUsageDetail_20' ) end [2025-02-19 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:29:26] Production.INFO: ==31064== Releasing lock... [2025-02-19 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:29:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:30:05 [end_date_ymd] => 2025-02-19 16:30:05 [RateCDR] => 1 ) [2025-02-19 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:30:05' and `end` < '2025-02-19 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:30:18] Production.INFO: count ==5684 [2025-02-19 16:30:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:30:05 - End Time 2025-02-19 16:30:05 [2025-02-19 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511635', 'tblTempUsageDetail_20' ) start [2025-02-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511635', 'tblTempUsageDetail_20' ) end [2025-02-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511635', 'tblTempVendorCDR_20' ) start [2025-02-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511635', 'tblTempVendorCDR_20' ) end [2025-02-19 16:30:21] Production.INFO: ProcessCDR(1,14511635,1,1,2) [2025-02-19 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511635', 'tblTempUsageDetail_20' ) start [2025-02-19 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511635', 'tblTempUsageDetail_20' ) end [2025-02-19 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:30:26] Production.INFO: ==31144== Releasing lock... [2025-02-19 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:30:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:31:05 [end_date_ymd] => 2025-02-19 16:31:05 [RateCDR] => 1 ) [2025-02-19 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:31:05' and `end` < '2025-02-19 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:31:18] Production.INFO: count ==5709 [2025-02-19 16:31:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:31:05 - End Time 2025-02-19 16:31:05 [2025-02-19 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511641', 'tblTempUsageDetail_20' ) start [2025-02-19 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511641', 'tblTempUsageDetail_20' ) end [2025-02-19 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511641', 'tblTempVendorCDR_20' ) start [2025-02-19 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511641', 'tblTempVendorCDR_20' ) end [2025-02-19 16:31:21] Production.INFO: ProcessCDR(1,14511641,1,1,2) [2025-02-19 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511641', 'tblTempUsageDetail_20' ) start [2025-02-19 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511641', 'tblTempUsageDetail_20' ) end [2025-02-19 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:31:26] Production.INFO: ==31228== Releasing lock... [2025-02-19 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:31:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:32:05 [end_date_ymd] => 2025-02-19 16:32:05 [RateCDR] => 1 ) [2025-02-19 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:32:05' and `end` < '2025-02-19 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:32:18] Production.INFO: count ==5724 [2025-02-19 16:32:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:32:05 - End Time 2025-02-19 16:32:05 [2025-02-19 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511646', 'tblTempUsageDetail_20' ) start [2025-02-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511646', 'tblTempUsageDetail_20' ) end [2025-02-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511646', 'tblTempVendorCDR_20' ) start [2025-02-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511646', 'tblTempVendorCDR_20' ) end [2025-02-19 16:32:21] Production.INFO: ProcessCDR(1,14511646,1,1,2) [2025-02-19 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511646', 'tblTempUsageDetail_20' ) start [2025-02-19 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511646', 'tblTempUsageDetail_20' ) end [2025-02-19 16:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:32:24] Production.INFO: ==31308== Releasing lock... [2025-02-19 16:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:32:24] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:33:05 [end_date_ymd] => 2025-02-19 16:33:05 [RateCDR] => 1 ) [2025-02-19 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:33:05' and `end` < '2025-02-19 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:33:18] Production.INFO: count ==5696 [2025-02-19 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:33:05 - End Time 2025-02-19 16:33:05 [2025-02-19 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511651', 'tblTempUsageDetail_20' ) start [2025-02-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511651', 'tblTempUsageDetail_20' ) end [2025-02-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511651', 'tblTempVendorCDR_20' ) start [2025-02-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511651', 'tblTempVendorCDR_20' ) end [2025-02-19 16:33:21] Production.INFO: ProcessCDR(1,14511651,1,1,2) [2025-02-19 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511651', 'tblTempUsageDetail_20' ) start [2025-02-19 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511651', 'tblTempUsageDetail_20' ) end [2025-02-19 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:33:26] Production.INFO: ==31394== Releasing lock... [2025-02-19 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:33:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-19 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:34:05 [end_date_ymd] => 2025-02-19 16:34:05 [RateCDR] => 1 ) [2025-02-19 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:34:05' and `end` < '2025-02-19 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:34:18] Production.INFO: count ==5666 [2025-02-19 16:34:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:34:05 - End Time 2025-02-19 16:34:05 [2025-02-19 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511656', 'tblTempUsageDetail_20' ) start [2025-02-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511656', 'tblTempUsageDetail_20' ) end [2025-02-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511656', 'tblTempVendorCDR_20' ) start [2025-02-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511656', 'tblTempVendorCDR_20' ) end [2025-02-19 16:34:21] Production.INFO: ProcessCDR(1,14511656,1,1,2) [2025-02-19 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511656', 'tblTempUsageDetail_20' ) start [2025-02-19 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511656', 'tblTempUsageDetail_20' ) end [2025-02-19 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:34:26] Production.INFO: ==31508== Releasing lock... [2025-02-19 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:34:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:35:05 [end_date_ymd] => 2025-02-19 16:35:05 [RateCDR] => 1 ) [2025-02-19 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:35:05' and `end` < '2025-02-19 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:35:18] Production.INFO: count ==5683 [2025-02-19 16:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:35:05 - End Time 2025-02-19 16:35:05 [2025-02-19 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511661', 'tblTempUsageDetail_20' ) start [2025-02-19 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511661', 'tblTempUsageDetail_20' ) end [2025-02-19 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511661', 'tblTempVendorCDR_20' ) start [2025-02-19 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511661', 'tblTempVendorCDR_20' ) end [2025-02-19 16:35:20] Production.INFO: ProcessCDR(1,14511661,1,1,2) [2025-02-19 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511661', 'tblTempUsageDetail_20' ) start [2025-02-19 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511661', 'tblTempUsageDetail_20' ) end [2025-02-19 16:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:35:25] Production.INFO: ==31623== Releasing lock... [2025-02-19 16:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:35:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:36:04 [end_date_ymd] => 2025-02-19 16:36:04 [RateCDR] => 1 ) [2025-02-19 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:36:04' and `end` < '2025-02-19 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:36:17] Production.INFO: count ==5669 [2025-02-19 16:36:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:36:04 - End Time 2025-02-19 16:36:04 [2025-02-19 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511666', 'tblTempUsageDetail_20' ) start [2025-02-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511666', 'tblTempUsageDetail_20' ) end [2025-02-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511666', 'tblTempVendorCDR_20' ) start [2025-02-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511666', 'tblTempVendorCDR_20' ) end [2025-02-19 16:36:20] Production.INFO: ProcessCDR(1,14511666,1,1,2) [2025-02-19 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511666', 'tblTempUsageDetail_20' ) start [2025-02-19 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511666', 'tblTempUsageDetail_20' ) end [2025-02-19 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:36:25] Production.INFO: ==31712== Releasing lock... [2025-02-19 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:36:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:37:05 [end_date_ymd] => 2025-02-19 16:37:05 [RateCDR] => 1 ) [2025-02-19 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:37:05' and `end` < '2025-02-19 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:37:18] Production.INFO: count ==5673 [2025-02-19 16:37:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:37:05 - End Time 2025-02-19 16:37:05 [2025-02-19 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511671', 'tblTempUsageDetail_20' ) start [2025-02-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511671', 'tblTempUsageDetail_20' ) end [2025-02-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511671', 'tblTempVendorCDR_20' ) start [2025-02-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511671', 'tblTempVendorCDR_20' ) end [2025-02-19 16:37:21] Production.INFO: ProcessCDR(1,14511671,1,1,2) [2025-02-19 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511671', 'tblTempUsageDetail_20' ) start [2025-02-19 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511671', 'tblTempUsageDetail_20' ) end [2025-02-19 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:37:26] Production.INFO: ==31797== Releasing lock... [2025-02-19 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:37:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:38:05 [end_date_ymd] => 2025-02-19 16:38:05 [RateCDR] => 1 ) [2025-02-19 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:38:05' and `end` < '2025-02-19 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:38:18] Production.INFO: count ==5673 [2025-02-19 16:38:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:38:05 - End Time 2025-02-19 16:38:05 [2025-02-19 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511676', 'tblTempUsageDetail_20' ) start [2025-02-19 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511676', 'tblTempUsageDetail_20' ) end [2025-02-19 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511676', 'tblTempVendorCDR_20' ) start [2025-02-19 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511676', 'tblTempVendorCDR_20' ) end [2025-02-19 16:38:20] Production.INFO: ProcessCDR(1,14511676,1,1,2) [2025-02-19 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511676', 'tblTempUsageDetail_20' ) start [2025-02-19 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511676', 'tblTempUsageDetail_20' ) end [2025-02-19 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:38:26] Production.INFO: ==31879== Releasing lock... [2025-02-19 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:38:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-19 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:39:06 [end_date_ymd] => 2025-02-19 16:39:06 [RateCDR] => 1 ) [2025-02-19 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:39:06' and `end` < '2025-02-19 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:39:18] Production.INFO: count ==5655 [2025-02-19 16:39:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:39:06 - End Time 2025-02-19 16:39:06 [2025-02-19 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511681', 'tblTempUsageDetail_20' ) start [2025-02-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511681', 'tblTempUsageDetail_20' ) end [2025-02-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511681', 'tblTempVendorCDR_20' ) start [2025-02-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511681', 'tblTempVendorCDR_20' ) end [2025-02-19 16:39:21] Production.INFO: ProcessCDR(1,14511681,1,1,2) [2025-02-19 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511681', 'tblTempUsageDetail_20' ) start [2025-02-19 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511681', 'tblTempUsageDetail_20' ) end [2025-02-19 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:39:26] Production.INFO: ==31997== Releasing lock... [2025-02-19 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:39:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:40:06 [end_date_ymd] => 2025-02-19 16:40:06 [RateCDR] => 1 ) [2025-02-19 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:40:06' and `end` < '2025-02-19 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:40:19] Production.INFO: count ==5653 [2025-02-19 16:40:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:40:06 - End Time 2025-02-19 16:40:06 [2025-02-19 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511686', 'tblTempUsageDetail_20' ) start [2025-02-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511686', 'tblTempUsageDetail_20' ) end [2025-02-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511686', 'tblTempVendorCDR_20' ) start [2025-02-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511686', 'tblTempVendorCDR_20' ) end [2025-02-19 16:40:21] Production.INFO: ProcessCDR(1,14511686,1,1,2) [2025-02-19 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511686', 'tblTempUsageDetail_20' ) start [2025-02-19 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511686', 'tblTempUsageDetail_20' ) end [2025-02-19 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:40:26] Production.INFO: ==32076== Releasing lock... [2025-02-19 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:40:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:41:05 [end_date_ymd] => 2025-02-19 16:41:05 [RateCDR] => 1 ) [2025-02-19 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:41:05' and `end` < '2025-02-19 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:41:18] Production.INFO: count ==5660 [2025-02-19 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:41:05 - End Time 2025-02-19 16:41:05 [2025-02-19 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511692', 'tblTempUsageDetail_20' ) start [2025-02-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511692', 'tblTempUsageDetail_20' ) end [2025-02-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511692', 'tblTempVendorCDR_20' ) start [2025-02-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511692', 'tblTempVendorCDR_20' ) end [2025-02-19 16:41:21] Production.INFO: ProcessCDR(1,14511692,1,1,2) [2025-02-19 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511692', 'tblTempUsageDetail_20' ) start [2025-02-19 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511692', 'tblTempUsageDetail_20' ) end [2025-02-19 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:41:26] Production.INFO: ==32157== Releasing lock... [2025-02-19 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:41:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:42:05 [end_date_ymd] => 2025-02-19 16:42:05 [RateCDR] => 1 ) [2025-02-19 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:42:05' and `end` < '2025-02-19 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:42:17] Production.INFO: count ==5629 [2025-02-19 16:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:42:05 - End Time 2025-02-19 16:42:05 [2025-02-19 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511697', 'tblTempUsageDetail_20' ) start [2025-02-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511697', 'tblTempUsageDetail_20' ) end [2025-02-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511697', 'tblTempVendorCDR_20' ) start [2025-02-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511697', 'tblTempVendorCDR_20' ) end [2025-02-19 16:42:20] Production.INFO: ProcessCDR(1,14511697,1,1,2) [2025-02-19 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511697', 'tblTempUsageDetail_20' ) start [2025-02-19 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511697', 'tblTempUsageDetail_20' ) end [2025-02-19 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:42:25] Production.INFO: ==32234== Releasing lock... [2025-02-19 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:42:25] Production.INFO: 70.25 MB #Memory Used# [2025-02-19 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:43:05 [end_date_ymd] => 2025-02-19 16:43:05 [RateCDR] => 1 ) [2025-02-19 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:43:05' and `end` < '2025-02-19 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:43:18] Production.INFO: count ==5618 [2025-02-19 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:43:05 - End Time 2025-02-19 16:43:05 [2025-02-19 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511701', 'tblTempUsageDetail_20' ) start [2025-02-19 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511701', 'tblTempUsageDetail_20' ) end [2025-02-19 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511701', 'tblTempVendorCDR_20' ) start [2025-02-19 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511701', 'tblTempVendorCDR_20' ) end [2025-02-19 16:43:20] Production.INFO: ProcessCDR(1,14511701,1,1,2) [2025-02-19 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511701', 'tblTempUsageDetail_20' ) start [2025-02-19 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511701', 'tblTempUsageDetail_20' ) end [2025-02-19 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:43:24] Production.INFO: ==32310== Releasing lock... [2025-02-19 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:43:24] Production.INFO: 70 MB #Memory Used# [2025-02-19 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:44:05 [end_date_ymd] => 2025-02-19 16:44:05 [RateCDR] => 1 ) [2025-02-19 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:44:05' and `end` < '2025-02-19 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:44:19] Production.INFO: count ==5613 [2025-02-19 16:44:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:44:05 - End Time 2025-02-19 16:44:05 [2025-02-19 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511707', 'tblTempUsageDetail_20' ) start [2025-02-19 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511707', 'tblTempUsageDetail_20' ) end [2025-02-19 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511707', 'tblTempVendorCDR_20' ) start [2025-02-19 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511707', 'tblTempVendorCDR_20' ) end [2025-02-19 16:44:22] Production.INFO: ProcessCDR(1,14511707,1,1,2) [2025-02-19 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511707', 'tblTempUsageDetail_20' ) start [2025-02-19 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511707', 'tblTempUsageDetail_20' ) end [2025-02-19 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:44:27] Production.INFO: ==32386== Releasing lock... [2025-02-19 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:44:27] Production.INFO: 70 MB #Memory Used# [2025-02-19 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:45:05 [end_date_ymd] => 2025-02-19 16:45:05 [RateCDR] => 1 ) [2025-02-19 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:45:05' and `end` < '2025-02-19 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:45:19] Production.INFO: count ==5615 [2025-02-19 16:45:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:45:05 - End Time 2025-02-19 16:45:05 [2025-02-19 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511712', 'tblTempUsageDetail_20' ) start [2025-02-19 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511712', 'tblTempUsageDetail_20' ) end [2025-02-19 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511712', 'tblTempVendorCDR_20' ) start [2025-02-19 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511712', 'tblTempVendorCDR_20' ) end [2025-02-19 16:45:21] Production.INFO: ProcessCDR(1,14511712,1,1,2) [2025-02-19 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511712', 'tblTempUsageDetail_20' ) start [2025-02-19 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511712', 'tblTempUsageDetail_20' ) end [2025-02-19 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:45:26] Production.INFO: ==32463== Releasing lock... [2025-02-19 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:45:26] Production.INFO: 70 MB #Memory Used# [2025-02-19 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:46:06 [end_date_ymd] => 2025-02-19 16:46:06 [RateCDR] => 1 ) [2025-02-19 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:46:06' and `end` < '2025-02-19 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:46:19] Production.INFO: count ==5596 [2025-02-19 16:46:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:46:06 - End Time 2025-02-19 16:46:06 [2025-02-19 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511717', 'tblTempUsageDetail_20' ) start [2025-02-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511717', 'tblTempUsageDetail_20' ) end [2025-02-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511717', 'tblTempVendorCDR_20' ) start [2025-02-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511717', 'tblTempVendorCDR_20' ) end [2025-02-19 16:46:21] Production.INFO: ProcessCDR(1,14511717,1,1,2) [2025-02-19 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511717', 'tblTempUsageDetail_20' ) start [2025-02-19 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511717', 'tblTempUsageDetail_20' ) end [2025-02-19 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:46:26] Production.INFO: ==32545== Releasing lock... [2025-02-19 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:46:26] Production.INFO: 70 MB #Memory Used# [2025-02-19 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:47:05 [end_date_ymd] => 2025-02-19 16:47:05 [RateCDR] => 1 ) [2025-02-19 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:47:05' and `end` < '2025-02-19 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:47:18] Production.INFO: count ==5579 [2025-02-19 16:47:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:47:05 - End Time 2025-02-19 16:47:05 [2025-02-19 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511722', 'tblTempUsageDetail_20' ) start [2025-02-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511722', 'tblTempUsageDetail_20' ) end [2025-02-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511722', 'tblTempVendorCDR_20' ) start [2025-02-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511722', 'tblTempVendorCDR_20' ) end [2025-02-19 16:47:20] Production.INFO: ProcessCDR(1,14511722,1,1,2) [2025-02-19 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511722', 'tblTempUsageDetail_20' ) start [2025-02-19 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511722', 'tblTempUsageDetail_20' ) end [2025-02-19 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:47:25] Production.INFO: ==32616== Releasing lock... [2025-02-19 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:47:25] Production.INFO: 69.75 MB #Memory Used# [2025-02-19 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:48:05 [end_date_ymd] => 2025-02-19 16:48:05 [RateCDR] => 1 ) [2025-02-19 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:48:05' and `end` < '2025-02-19 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:48:18] Production.INFO: count ==5539 [2025-02-19 16:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:48:05 - End Time 2025-02-19 16:48:05 [2025-02-19 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511726', 'tblTempUsageDetail_20' ) start [2025-02-19 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511726', 'tblTempUsageDetail_20' ) end [2025-02-19 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511726', 'tblTempVendorCDR_20' ) start [2025-02-19 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511726', 'tblTempVendorCDR_20' ) end [2025-02-19 16:48:20] Production.INFO: ProcessCDR(1,14511726,1,1,2) [2025-02-19 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511726', 'tblTempUsageDetail_20' ) start [2025-02-19 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511726', 'tblTempUsageDetail_20' ) end [2025-02-19 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:48:25] Production.INFO: ==32696== Releasing lock... [2025-02-19 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:48:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:49:05 [end_date_ymd] => 2025-02-19 16:49:05 [RateCDR] => 1 ) [2025-02-19 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:49:05' and `end` < '2025-02-19 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:49:18] Production.INFO: count ==5522 [2025-02-19 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:49:05 - End Time 2025-02-19 16:49:05 [2025-02-19 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511732', 'tblTempUsageDetail_20' ) start [2025-02-19 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511732', 'tblTempUsageDetail_20' ) end [2025-02-19 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511732', 'tblTempVendorCDR_20' ) start [2025-02-19 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511732', 'tblTempVendorCDR_20' ) end [2025-02-19 16:49:21] Production.INFO: ProcessCDR(1,14511732,1,1,2) [2025-02-19 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511732', 'tblTempUsageDetail_20' ) start [2025-02-19 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511732', 'tblTempUsageDetail_20' ) end [2025-02-19 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:49:25] Production.INFO: ==307== Releasing lock... [2025-02-19 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:49:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:50:06 [end_date_ymd] => 2025-02-19 16:50:06 [RateCDR] => 1 ) [2025-02-19 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:50:06' and `end` < '2025-02-19 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:50:19] Production.INFO: count ==5505 [2025-02-19 16:50:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:50:06 - End Time 2025-02-19 16:50:06 [2025-02-19 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511738', 'tblTempUsageDetail_20' ) start [2025-02-19 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511738', 'tblTempUsageDetail_20' ) end [2025-02-19 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511738', 'tblTempVendorCDR_20' ) start [2025-02-19 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511738', 'tblTempVendorCDR_20' ) end [2025-02-19 16:50:22] Production.INFO: ProcessCDR(1,14511738,1,1,2) [2025-02-19 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511738', 'tblTempUsageDetail_20' ) start [2025-02-19 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511738', 'tblTempUsageDetail_20' ) end [2025-02-19 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:50:27] Production.INFO: ==399== Releasing lock... [2025-02-19 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:50:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:51:05 [end_date_ymd] => 2025-02-19 16:51:05 [RateCDR] => 1 ) [2025-02-19 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:51:05' and `end` < '2025-02-19 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:51:18] Production.INFO: count ==5496 [2025-02-19 16:51:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:51:05 - End Time 2025-02-19 16:51:05 [2025-02-19 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511743', 'tblTempUsageDetail_20' ) start [2025-02-19 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511743', 'tblTempUsageDetail_20' ) end [2025-02-19 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511743', 'tblTempVendorCDR_20' ) start [2025-02-19 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511743', 'tblTempVendorCDR_20' ) end [2025-02-19 16:51:21] Production.INFO: ProcessCDR(1,14511743,1,1,2) [2025-02-19 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511743', 'tblTempUsageDetail_20' ) start [2025-02-19 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511743', 'tblTempUsageDetail_20' ) end [2025-02-19 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:51:25] Production.INFO: ==478== Releasing lock... [2025-02-19 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:51:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-19 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:52:05 [end_date_ymd] => 2025-02-19 16:52:05 [RateCDR] => 1 ) [2025-02-19 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:52:05' and `end` < '2025-02-19 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:52:18] Production.INFO: count ==5498 [2025-02-19 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:52:05 - End Time 2025-02-19 16:52:05 [2025-02-19 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511748', 'tblTempUsageDetail_20' ) start [2025-02-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511748', 'tblTempUsageDetail_20' ) end [2025-02-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511748', 'tblTempVendorCDR_20' ) start [2025-02-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511748', 'tblTempVendorCDR_20' ) end [2025-02-19 16:52:21] Production.INFO: ProcessCDR(1,14511748,1,1,2) [2025-02-19 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511748', 'tblTempUsageDetail_20' ) start [2025-02-19 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511748', 'tblTempUsageDetail_20' ) end [2025-02-19 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:52:26] Production.INFO: ==560== Releasing lock... [2025-02-19 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:52:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:53:04 [end_date_ymd] => 2025-02-19 16:53:04 [RateCDR] => 1 ) [2025-02-19 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:53:04' and `end` < '2025-02-19 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:53:19] Production.INFO: count ==5509 [2025-02-19 16:53:22] Production.ERROR: pbx CDR StartTime 2025-02-19 13:53:04 - End Time 2025-02-19 16:53:04 [2025-02-19 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511753', 'tblTempUsageDetail_20' ) start [2025-02-19 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511753', 'tblTempUsageDetail_20' ) end [2025-02-19 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511753', 'tblTempVendorCDR_20' ) start [2025-02-19 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511753', 'tblTempVendorCDR_20' ) end [2025-02-19 16:53:22] Production.INFO: ProcessCDR(1,14511753,1,1,2) [2025-02-19 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511753', 'tblTempUsageDetail_20' ) start [2025-02-19 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511753', 'tblTempUsageDetail_20' ) end [2025-02-19 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:53:27] Production.INFO: ==642== Releasing lock... [2025-02-19 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:53:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:54:05 [end_date_ymd] => 2025-02-19 16:54:05 [RateCDR] => 1 ) [2025-02-19 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:54:05' and `end` < '2025-02-19 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:54:18] Production.INFO: count ==5510 [2025-02-19 16:54:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:54:05 - End Time 2025-02-19 16:54:05 [2025-02-19 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511758', 'tblTempUsageDetail_20' ) start [2025-02-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511758', 'tblTempUsageDetail_20' ) end [2025-02-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511758', 'tblTempVendorCDR_20' ) start [2025-02-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511758', 'tblTempVendorCDR_20' ) end [2025-02-19 16:54:21] Production.INFO: ProcessCDR(1,14511758,1,1,2) [2025-02-19 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511758', 'tblTempUsageDetail_20' ) start [2025-02-19 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511758', 'tblTempUsageDetail_20' ) end [2025-02-19 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:54:25] Production.INFO: ==747== Releasing lock... [2025-02-19 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:54:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:55:05 [end_date_ymd] => 2025-02-19 16:55:05 [RateCDR] => 1 ) [2025-02-19 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:55:05' and `end` < '2025-02-19 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:55:18] Production.INFO: count ==5507 [2025-02-19 16:55:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:55:05 - End Time 2025-02-19 16:55:05 [2025-02-19 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511763', 'tblTempUsageDetail_20' ) start [2025-02-19 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511763', 'tblTempUsageDetail_20' ) end [2025-02-19 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511763', 'tblTempVendorCDR_20' ) start [2025-02-19 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511763', 'tblTempVendorCDR_20' ) end [2025-02-19 16:55:21] Production.INFO: ProcessCDR(1,14511763,1,1,2) [2025-02-19 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511763', 'tblTempUsageDetail_20' ) start [2025-02-19 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511763', 'tblTempUsageDetail_20' ) end [2025-02-19 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:55:25] Production.INFO: ==862== Releasing lock... [2025-02-19 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:55:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:56:05 [end_date_ymd] => 2025-02-19 16:56:05 [RateCDR] => 1 ) [2025-02-19 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:56:05' and `end` < '2025-02-19 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:56:18] Production.INFO: count ==5510 [2025-02-19 16:56:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:56:05 - End Time 2025-02-19 16:56:05 [2025-02-19 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511768', 'tblTempUsageDetail_20' ) start [2025-02-19 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511768', 'tblTempUsageDetail_20' ) end [2025-02-19 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511768', 'tblTempVendorCDR_20' ) start [2025-02-19 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511768', 'tblTempVendorCDR_20' ) end [2025-02-19 16:56:21] Production.INFO: ProcessCDR(1,14511768,1,1,2) [2025-02-19 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511768', 'tblTempUsageDetail_20' ) start [2025-02-19 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511768', 'tblTempUsageDetail_20' ) end [2025-02-19 16:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:56:25] Production.INFO: ==940== Releasing lock... [2025-02-19 16:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:56:25] Production.INFO: 69.25 MB #Memory Used# [2025-02-19 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:57:05 [end_date_ymd] => 2025-02-19 16:57:05 [RateCDR] => 1 ) [2025-02-19 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:57:05' and `end` < '2025-02-19 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:57:17] Production.INFO: count ==5484 [2025-02-19 16:57:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:57:05 - End Time 2025-02-19 16:57:05 [2025-02-19 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511773', 'tblTempUsageDetail_20' ) start [2025-02-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511773', 'tblTempUsageDetail_20' ) end [2025-02-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511773', 'tblTempVendorCDR_20' ) start [2025-02-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511773', 'tblTempVendorCDR_20' ) end [2025-02-19 16:57:20] Production.INFO: ProcessCDR(1,14511773,1,1,2) [2025-02-19 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511773', 'tblTempUsageDetail_20' ) start [2025-02-19 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511773', 'tblTempUsageDetail_20' ) end [2025-02-19 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:57:25] Production.INFO: ==1018== Releasing lock... [2025-02-19 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:57:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:58:05 [end_date_ymd] => 2025-02-19 16:58:05 [RateCDR] => 1 ) [2025-02-19 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:58:05' and `end` < '2025-02-19 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:58:18] Production.INFO: count ==5464 [2025-02-19 16:58:20] Production.ERROR: pbx CDR StartTime 2025-02-19 13:58:05 - End Time 2025-02-19 16:58:05 [2025-02-19 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511778', 'tblTempUsageDetail_20' ) start [2025-02-19 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511778', 'tblTempUsageDetail_20' ) end [2025-02-19 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511778', 'tblTempVendorCDR_20' ) start [2025-02-19 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511778', 'tblTempVendorCDR_20' ) end [2025-02-19 16:58:20] Production.INFO: ProcessCDR(1,14511778,1,1,2) [2025-02-19 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511778', 'tblTempUsageDetail_20' ) start [2025-02-19 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511778', 'tblTempUsageDetail_20' ) end [2025-02-19 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:58:25] Production.INFO: ==1089== Releasing lock... [2025-02-19 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:58:25] Production.INFO: 69 MB #Memory Used# [2025-02-19 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 13:59:05 [end_date_ymd] => 2025-02-19 16:59:05 [RateCDR] => 1 ) [2025-02-19 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 13:59:05' and `end` < '2025-02-19 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 16:59:19] Production.INFO: count ==5433 [2025-02-19 16:59:21] Production.ERROR: pbx CDR StartTime 2025-02-19 13:59:05 - End Time 2025-02-19 16:59:05 [2025-02-19 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511783', 'tblTempUsageDetail_20' ) start [2025-02-19 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511783', 'tblTempUsageDetail_20' ) end [2025-02-19 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511783', 'tblTempVendorCDR_20' ) start [2025-02-19 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511783', 'tblTempVendorCDR_20' ) end [2025-02-19 16:59:21] Production.INFO: ProcessCDR(1,14511783,1,1,2) [2025-02-19 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511783', 'tblTempUsageDetail_20' ) start [2025-02-19 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511783', 'tblTempUsageDetail_20' ) end [2025-02-19 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 16:59:26] Production.INFO: ==1168== Releasing lock... [2025-02-19 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 16:59:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-19 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:00:05 [end_date_ymd] => 2025-02-19 17:00:05 [RateCDR] => 1 ) [2025-02-19 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:00:05' and `end` < '2025-02-19 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:00:18] Production.INFO: count ==5410 [2025-02-19 17:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:00:05 - End Time 2025-02-19 17:00:05 [2025-02-19 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511789', 'tblTempUsageDetail_20' ) start [2025-02-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511789', 'tblTempUsageDetail_20' ) end [2025-02-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511789', 'tblTempVendorCDR_20' ) start [2025-02-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511789', 'tblTempVendorCDR_20' ) end [2025-02-19 17:00:21] Production.INFO: ProcessCDR(1,14511789,1,1,2) [2025-02-19 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511789', 'tblTempUsageDetail_20' ) start [2025-02-19 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511789', 'tblTempUsageDetail_20' ) end [2025-02-19 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:00:25] Production.INFO: ==1248== Releasing lock... [2025-02-19 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:00:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-19 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:01:06 [end_date_ymd] => 2025-02-19 17:01:06 [RateCDR] => 1 ) [2025-02-19 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:01:06' and `end` < '2025-02-19 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:01:19] Production.INFO: count ==5375 [2025-02-19 17:01:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:01:06 - End Time 2025-02-19 17:01:06 [2025-02-19 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511794', 'tblTempUsageDetail_20' ) start [2025-02-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511794', 'tblTempUsageDetail_20' ) end [2025-02-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511794', 'tblTempVendorCDR_20' ) start [2025-02-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511794', 'tblTempVendorCDR_20' ) end [2025-02-19 17:01:21] Production.INFO: ProcessCDR(1,14511794,1,1,2) [2025-02-19 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511794', 'tblTempUsageDetail_20' ) start [2025-02-19 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511794', 'tblTempUsageDetail_20' ) end [2025-02-19 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:01:26] Production.INFO: ==1344== Releasing lock... [2025-02-19 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:01:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:02:05 [end_date_ymd] => 2025-02-19 17:02:05 [RateCDR] => 1 ) [2025-02-19 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:02:05' and `end` < '2025-02-19 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:02:18] Production.INFO: count ==5369 [2025-02-19 17:02:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:02:05 - End Time 2025-02-19 17:02:05 [2025-02-19 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511799', 'tblTempUsageDetail_20' ) start [2025-02-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511799', 'tblTempUsageDetail_20' ) end [2025-02-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511799', 'tblTempVendorCDR_20' ) start [2025-02-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511799', 'tblTempVendorCDR_20' ) end [2025-02-19 17:02:21] Production.INFO: ProcessCDR(1,14511799,1,1,2) [2025-02-19 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511799', 'tblTempUsageDetail_20' ) start [2025-02-19 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511799', 'tblTempUsageDetail_20' ) end [2025-02-19 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:02:26] Production.INFO: ==1414== Releasing lock... [2025-02-19 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:02:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-19 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:03:06 [end_date_ymd] => 2025-02-19 17:03:06 [RateCDR] => 1 ) [2025-02-19 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:03:06' and `end` < '2025-02-19 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:03:19] Production.INFO: count ==5356 [2025-02-19 17:03:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:03:06 - End Time 2025-02-19 17:03:06 [2025-02-19 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511804', 'tblTempUsageDetail_20' ) start [2025-02-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511804', 'tblTempUsageDetail_20' ) end [2025-02-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511804', 'tblTempVendorCDR_20' ) start [2025-02-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511804', 'tblTempVendorCDR_20' ) end [2025-02-19 17:03:21] Production.INFO: ProcessCDR(1,14511804,1,1,2) [2025-02-19 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511804', 'tblTempUsageDetail_20' ) start [2025-02-19 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511804', 'tblTempUsageDetail_20' ) end [2025-02-19 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:03:26] Production.INFO: ==1489== Releasing lock... [2025-02-19 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:03:26] Production.INFO: 68 MB #Memory Used# [2025-02-19 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:04:05 [end_date_ymd] => 2025-02-19 17:04:05 [RateCDR] => 1 ) [2025-02-19 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:04:05' and `end` < '2025-02-19 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:04:18] Production.INFO: count ==5338 [2025-02-19 17:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:04:05 - End Time 2025-02-19 17:04:05 [2025-02-19 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511809', 'tblTempUsageDetail_20' ) start [2025-02-19 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511809', 'tblTempUsageDetail_20' ) end [2025-02-19 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511809', 'tblTempVendorCDR_20' ) start [2025-02-19 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511809', 'tblTempVendorCDR_20' ) end [2025-02-19 17:04:20] Production.INFO: ProcessCDR(1,14511809,1,1,2) [2025-02-19 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511809', 'tblTempUsageDetail_20' ) start [2025-02-19 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511809', 'tblTempUsageDetail_20' ) end [2025-02-19 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:04:25] Production.INFO: ==1601== Releasing lock... [2025-02-19 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:04:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:05:05 [end_date_ymd] => 2025-02-19 17:05:05 [RateCDR] => 1 ) [2025-02-19 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:05:05' and `end` < '2025-02-19 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:05:18] Production.INFO: count ==5335 [2025-02-19 17:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:05:05 - End Time 2025-02-19 17:05:05 [2025-02-19 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511814', 'tblTempUsageDetail_20' ) start [2025-02-19 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511814', 'tblTempUsageDetail_20' ) end [2025-02-19 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511814', 'tblTempVendorCDR_20' ) start [2025-02-19 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511814', 'tblTempVendorCDR_20' ) end [2025-02-19 17:05:20] Production.INFO: ProcessCDR(1,14511814,1,1,2) [2025-02-19 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511814', 'tblTempUsageDetail_20' ) start [2025-02-19 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511814', 'tblTempUsageDetail_20' ) end [2025-02-19 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:05:25] Production.INFO: ==1676== Releasing lock... [2025-02-19 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:05:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:06:05 [end_date_ymd] => 2025-02-19 17:06:05 [RateCDR] => 1 ) [2025-02-19 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:06:05' and `end` < '2025-02-19 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:06:18] Production.INFO: count ==5339 [2025-02-19 17:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:06:05 - End Time 2025-02-19 17:06:05 [2025-02-19 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511819', 'tblTempUsageDetail_20' ) start [2025-02-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511819', 'tblTempUsageDetail_20' ) end [2025-02-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511819', 'tblTempVendorCDR_20' ) start [2025-02-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511819', 'tblTempVendorCDR_20' ) end [2025-02-19 17:06:20] Production.INFO: ProcessCDR(1,14511819,1,1,2) [2025-02-19 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511819', 'tblTempUsageDetail_20' ) start [2025-02-19 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511819', 'tblTempUsageDetail_20' ) end [2025-02-19 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:06:25] Production.INFO: ==1749== Releasing lock... [2025-02-19 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:06:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:07:06 [end_date_ymd] => 2025-02-19 17:07:06 [RateCDR] => 1 ) [2025-02-19 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:07:06' and `end` < '2025-02-19 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:07:19] Production.INFO: count ==5330 [2025-02-19 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:07:06 - End Time 2025-02-19 17:07:06 [2025-02-19 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511824', 'tblTempUsageDetail_20' ) start [2025-02-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511824', 'tblTempUsageDetail_20' ) end [2025-02-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511824', 'tblTempVendorCDR_20' ) start [2025-02-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511824', 'tblTempVendorCDR_20' ) end [2025-02-19 17:07:21] Production.INFO: ProcessCDR(1,14511824,1,1,2) [2025-02-19 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511824', 'tblTempUsageDetail_20' ) start [2025-02-19 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511824', 'tblTempUsageDetail_20' ) end [2025-02-19 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:07:25] Production.INFO: ==1832== Releasing lock... [2025-02-19 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:07:25] Production.INFO: 68 MB #Memory Used# [2025-02-19 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:08:05 [end_date_ymd] => 2025-02-19 17:08:05 [RateCDR] => 1 ) [2025-02-19 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:08:05' and `end` < '2025-02-19 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:08:18] Production.INFO: count ==5305 [2025-02-19 17:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:08:05 - End Time 2025-02-19 17:08:05 [2025-02-19 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511829', 'tblTempUsageDetail_20' ) start [2025-02-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511829', 'tblTempUsageDetail_20' ) end [2025-02-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511829', 'tblTempVendorCDR_20' ) start [2025-02-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511829', 'tblTempVendorCDR_20' ) end [2025-02-19 17:08:20] Production.INFO: ProcessCDR(1,14511829,1,1,2) [2025-02-19 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511829', 'tblTempUsageDetail_20' ) start [2025-02-19 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511829', 'tblTempUsageDetail_20' ) end [2025-02-19 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:08:24] Production.INFO: ==1914== Releasing lock... [2025-02-19 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:08:24] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:09:06 [end_date_ymd] => 2025-02-19 17:09:06 [RateCDR] => 1 ) [2025-02-19 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:09:06' and `end` < '2025-02-19 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:09:18] Production.INFO: count ==5298 [2025-02-19 17:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:09:06 - End Time 2025-02-19 17:09:06 [2025-02-19 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511834', 'tblTempUsageDetail_20' ) start [2025-02-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511834', 'tblTempUsageDetail_20' ) end [2025-02-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511834', 'tblTempVendorCDR_20' ) start [2025-02-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511834', 'tblTempVendorCDR_20' ) end [2025-02-19 17:09:21] Production.INFO: ProcessCDR(1,14511834,1,1,2) [2025-02-19 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511834', 'tblTempUsageDetail_20' ) start [2025-02-19 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511834', 'tblTempUsageDetail_20' ) end [2025-02-19 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:09:25] Production.INFO: ==1991== Releasing lock... [2025-02-19 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:09:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-19 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:10:06 [end_date_ymd] => 2025-02-19 17:10:06 [RateCDR] => 1 ) [2025-02-19 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:10:06' and `end` < '2025-02-19 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:10:19] Production.INFO: count ==5287 [2025-02-19 17:10:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:10:06 - End Time 2025-02-19 17:10:06 [2025-02-19 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511840', 'tblTempUsageDetail_20' ) start [2025-02-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511840', 'tblTempUsageDetail_20' ) end [2025-02-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511840', 'tblTempVendorCDR_20' ) start [2025-02-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511840', 'tblTempVendorCDR_20' ) end [2025-02-19 17:10:21] Production.INFO: ProcessCDR(1,14511840,1,1,2) [2025-02-19 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511840', 'tblTempUsageDetail_20' ) start [2025-02-19 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511840', 'tblTempUsageDetail_20' ) end [2025-02-19 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:10:26] Production.INFO: ==2114== Releasing lock... [2025-02-19 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:10:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:11:05 [end_date_ymd] => 2025-02-19 17:11:05 [RateCDR] => 1 ) [2025-02-19 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:11:05' and `end` < '2025-02-19 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:11:18] Production.INFO: count ==5273 [2025-02-19 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:11:05 - End Time 2025-02-19 17:11:05 [2025-02-19 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511845', 'tblTempUsageDetail_20' ) start [2025-02-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511845', 'tblTempUsageDetail_20' ) end [2025-02-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511845', 'tblTempVendorCDR_20' ) start [2025-02-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511845', 'tblTempVendorCDR_20' ) end [2025-02-19 17:11:21] Production.INFO: ProcessCDR(1,14511845,1,1,2) [2025-02-19 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511845', 'tblTempUsageDetail_20' ) start [2025-02-19 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511845', 'tblTempUsageDetail_20' ) end [2025-02-19 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:11:25] Production.INFO: ==2201== Releasing lock... [2025-02-19 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:11:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-19 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:12:05 [end_date_ymd] => 2025-02-19 17:12:05 [RateCDR] => 1 ) [2025-02-19 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:12:05' and `end` < '2025-02-19 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:12:18] Production.INFO: count ==5259 [2025-02-19 17:12:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:12:05 - End Time 2025-02-19 17:12:05 [2025-02-19 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511850', 'tblTempUsageDetail_20' ) start [2025-02-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511850', 'tblTempUsageDetail_20' ) end [2025-02-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511850', 'tblTempVendorCDR_20' ) start [2025-02-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511850', 'tblTempVendorCDR_20' ) end [2025-02-19 17:12:20] Production.INFO: ProcessCDR(1,14511850,1,1,2) [2025-02-19 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511850', 'tblTempUsageDetail_20' ) start [2025-02-19 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511850', 'tblTempUsageDetail_20' ) end [2025-02-19 17:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:12:23] Production.INFO: ==2278== Releasing lock... [2025-02-19 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:12:23] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:13:05 [end_date_ymd] => 2025-02-19 17:13:05 [RateCDR] => 1 ) [2025-02-19 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:13:05' and `end` < '2025-02-19 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:13:18] Production.INFO: count ==5249 [2025-02-19 17:13:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:13:05 - End Time 2025-02-19 17:13:05 [2025-02-19 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511855', 'tblTempUsageDetail_20' ) start [2025-02-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511855', 'tblTempUsageDetail_20' ) end [2025-02-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511855', 'tblTempVendorCDR_20' ) start [2025-02-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511855', 'tblTempVendorCDR_20' ) end [2025-02-19 17:13:20] Production.INFO: ProcessCDR(1,14511855,1,1,2) [2025-02-19 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511855', 'tblTempUsageDetail_20' ) start [2025-02-19 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511855', 'tblTempUsageDetail_20' ) end [2025-02-19 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:13:25] Production.INFO: ==2360== Releasing lock... [2025-02-19 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:13:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:14:05 [end_date_ymd] => 2025-02-19 17:14:05 [RateCDR] => 1 ) [2025-02-19 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:14:05' and `end` < '2025-02-19 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:14:18] Production.INFO: count ==5243 [2025-02-19 17:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:14:05 - End Time 2025-02-19 17:14:05 [2025-02-19 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511860', 'tblTempUsageDetail_20' ) start [2025-02-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511860', 'tblTempUsageDetail_20' ) end [2025-02-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511860', 'tblTempVendorCDR_20' ) start [2025-02-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511860', 'tblTempVendorCDR_20' ) end [2025-02-19 17:14:20] Production.INFO: ProcessCDR(1,14511860,1,1,2) [2025-02-19 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511860', 'tblTempUsageDetail_20' ) start [2025-02-19 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511860', 'tblTempUsageDetail_20' ) end [2025-02-19 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:14:25] Production.INFO: ==2457== Releasing lock... [2025-02-19 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:14:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:15:05 [end_date_ymd] => 2025-02-19 17:15:05 [RateCDR] => 1 ) [2025-02-19 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:15:05' and `end` < '2025-02-19 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:15:18] Production.INFO: count ==5236 [2025-02-19 17:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:15:05 - End Time 2025-02-19 17:15:05 [2025-02-19 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511865', 'tblTempUsageDetail_20' ) start [2025-02-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511865', 'tblTempUsageDetail_20' ) end [2025-02-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511865', 'tblTempVendorCDR_20' ) start [2025-02-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511865', 'tblTempVendorCDR_20' ) end [2025-02-19 17:15:20] Production.INFO: ProcessCDR(1,14511865,1,1,2) [2025-02-19 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511865', 'tblTempUsageDetail_20' ) start [2025-02-19 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511865', 'tblTempUsageDetail_20' ) end [2025-02-19 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:15:24] Production.INFO: ==2560== Releasing lock... [2025-02-19 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:15:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:16:05 [end_date_ymd] => 2025-02-19 17:16:05 [RateCDR] => 1 ) [2025-02-19 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:16:05' and `end` < '2025-02-19 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:16:18] Production.INFO: count ==5235 [2025-02-19 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:16:05 - End Time 2025-02-19 17:16:05 [2025-02-19 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511870', 'tblTempUsageDetail_20' ) start [2025-02-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511870', 'tblTempUsageDetail_20' ) end [2025-02-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511870', 'tblTempVendorCDR_20' ) start [2025-02-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511870', 'tblTempVendorCDR_20' ) end [2025-02-19 17:16:21] Production.INFO: ProcessCDR(1,14511870,1,1,2) [2025-02-19 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511870', 'tblTempUsageDetail_20' ) start [2025-02-19 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511870', 'tblTempUsageDetail_20' ) end [2025-02-19 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:16:25] Production.INFO: ==2651== Releasing lock... [2025-02-19 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:16:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:17:05 [end_date_ymd] => 2025-02-19 17:17:05 [RateCDR] => 1 ) [2025-02-19 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:17:05' and `end` < '2025-02-19 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:17:18] Production.INFO: count ==5236 [2025-02-19 17:17:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:17:05 - End Time 2025-02-19 17:17:05 [2025-02-19 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511875', 'tblTempUsageDetail_20' ) start [2025-02-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511875', 'tblTempUsageDetail_20' ) end [2025-02-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511875', 'tblTempVendorCDR_20' ) start [2025-02-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511875', 'tblTempVendorCDR_20' ) end [2025-02-19 17:17:20] Production.INFO: ProcessCDR(1,14511875,1,1,2) [2025-02-19 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511875', 'tblTempUsageDetail_20' ) start [2025-02-19 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511875', 'tblTempUsageDetail_20' ) end [2025-02-19 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:17:25] Production.INFO: ==2733== Releasing lock... [2025-02-19 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:17:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:18:05 [end_date_ymd] => 2025-02-19 17:18:05 [RateCDR] => 1 ) [2025-02-19 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:18:05' and `end` < '2025-02-19 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:18:18] Production.INFO: count ==5229 [2025-02-19 17:18:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:18:05 - End Time 2025-02-19 17:18:05 [2025-02-19 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511880', 'tblTempUsageDetail_20' ) start [2025-02-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511880', 'tblTempUsageDetail_20' ) end [2025-02-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511880', 'tblTempVendorCDR_20' ) start [2025-02-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511880', 'tblTempVendorCDR_20' ) end [2025-02-19 17:18:20] Production.INFO: ProcessCDR(1,14511880,1,1,2) [2025-02-19 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511880', 'tblTempUsageDetail_20' ) start [2025-02-19 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511880', 'tblTempUsageDetail_20' ) end [2025-02-19 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:18:25] Production.INFO: ==2815== Releasing lock... [2025-02-19 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:18:25] Production.INFO: 67 MB #Memory Used# [2025-02-19 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:19:05 [end_date_ymd] => 2025-02-19 17:19:05 [RateCDR] => 1 ) [2025-02-19 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:19:05' and `end` < '2025-02-19 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:19:18] Production.INFO: count ==5235 [2025-02-19 17:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:19:05 - End Time 2025-02-19 17:19:05 [2025-02-19 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511885', 'tblTempUsageDetail_20' ) start [2025-02-19 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511885', 'tblTempUsageDetail_20' ) end [2025-02-19 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511885', 'tblTempVendorCDR_20' ) start [2025-02-19 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511885', 'tblTempVendorCDR_20' ) end [2025-02-19 17:19:20] Production.INFO: ProcessCDR(1,14511885,1,1,2) [2025-02-19 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511885', 'tblTempUsageDetail_20' ) start [2025-02-19 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511885', 'tblTempUsageDetail_20' ) end [2025-02-19 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:19:25] Production.INFO: ==2895== Releasing lock... [2025-02-19 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:19:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-19 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:20:06 [end_date_ymd] => 2025-02-19 17:20:06 [RateCDR] => 1 ) [2025-02-19 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:20:06' and `end` < '2025-02-19 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:20:19] Production.INFO: count ==5215 [2025-02-19 17:20:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:20:06 - End Time 2025-02-19 17:20:06 [2025-02-19 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511891', 'tblTempUsageDetail_20' ) start [2025-02-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511891', 'tblTempUsageDetail_20' ) end [2025-02-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511891', 'tblTempVendorCDR_20' ) start [2025-02-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511891', 'tblTempVendorCDR_20' ) end [2025-02-19 17:20:21] Production.INFO: ProcessCDR(1,14511891,1,1,2) [2025-02-19 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511891', 'tblTempUsageDetail_20' ) start [2025-02-19 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511891', 'tblTempUsageDetail_20' ) end [2025-02-19 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:20:24] Production.INFO: ==2982== Releasing lock... [2025-02-19 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:20:24] Production.INFO: 67 MB #Memory Used# [2025-02-19 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:21:06 [end_date_ymd] => 2025-02-19 17:21:06 [RateCDR] => 1 ) [2025-02-19 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:21:06' and `end` < '2025-02-19 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:21:19] Production.INFO: count ==5100 [2025-02-19 17:21:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:21:06 - End Time 2025-02-19 17:21:06 [2025-02-19 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511896', 'tblTempUsageDetail_20' ) start [2025-02-19 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511896', 'tblTempUsageDetail_20' ) end [2025-02-19 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511896', 'tblTempVendorCDR_20' ) start [2025-02-19 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511896', 'tblTempVendorCDR_20' ) end [2025-02-19 17:21:21] Production.INFO: ProcessCDR(1,14511896,1,1,2) [2025-02-19 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511896', 'tblTempUsageDetail_20' ) start [2025-02-19 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511896', 'tblTempUsageDetail_20' ) end [2025-02-19 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:21:24] Production.INFO: ==3063== Releasing lock... [2025-02-19 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:21:24] Production.INFO: 66.25 MB #Memory Used# [2025-02-19 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:22:06 [end_date_ymd] => 2025-02-19 17:22:06 [RateCDR] => 1 ) [2025-02-19 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:22:06' and `end` < '2025-02-19 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:22:18] Production.INFO: count ==5085 [2025-02-19 17:22:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:22:06 - End Time 2025-02-19 17:22:06 [2025-02-19 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511901', 'tblTempUsageDetail_20' ) start [2025-02-19 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511901', 'tblTempUsageDetail_20' ) end [2025-02-19 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511901', 'tblTempVendorCDR_20' ) start [2025-02-19 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511901', 'tblTempVendorCDR_20' ) end [2025-02-19 17:22:20] Production.INFO: ProcessCDR(1,14511901,1,1,2) [2025-02-19 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511901', 'tblTempUsageDetail_20' ) start [2025-02-19 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511901', 'tblTempUsageDetail_20' ) end [2025-02-19 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:22:25] Production.INFO: ==3149== Releasing lock... [2025-02-19 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:22:25] Production.INFO: 66 MB #Memory Used# [2025-02-19 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:23:05 [end_date_ymd] => 2025-02-19 17:23:05 [RateCDR] => 1 ) [2025-02-19 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:23:05' and `end` < '2025-02-19 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:23:18] Production.INFO: count ==5074 [2025-02-19 17:23:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:23:05 - End Time 2025-02-19 17:23:05 [2025-02-19 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511906', 'tblTempUsageDetail_20' ) start [2025-02-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511906', 'tblTempUsageDetail_20' ) end [2025-02-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511906', 'tblTempVendorCDR_20' ) start [2025-02-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511906', 'tblTempVendorCDR_20' ) end [2025-02-19 17:23:20] Production.INFO: ProcessCDR(1,14511906,1,1,2) [2025-02-19 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511906', 'tblTempUsageDetail_20' ) start [2025-02-19 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511906', 'tblTempUsageDetail_20' ) end [2025-02-19 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:23:25] Production.INFO: ==3234== Releasing lock... [2025-02-19 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:23:25] Production.INFO: 66 MB #Memory Used# [2025-02-19 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:24:06 [end_date_ymd] => 2025-02-19 17:24:06 [RateCDR] => 1 ) [2025-02-19 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:24:06' and `end` < '2025-02-19 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:24:19] Production.INFO: count ==5059 [2025-02-19 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:24:06 - End Time 2025-02-19 17:24:06 [2025-02-19 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511911', 'tblTempUsageDetail_20' ) start [2025-02-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511911', 'tblTempUsageDetail_20' ) end [2025-02-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511911', 'tblTempVendorCDR_20' ) start [2025-02-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511911', 'tblTempVendorCDR_20' ) end [2025-02-19 17:24:21] Production.INFO: ProcessCDR(1,14511911,1,1,2) [2025-02-19 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511911', 'tblTempUsageDetail_20' ) start [2025-02-19 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511911', 'tblTempUsageDetail_20' ) end [2025-02-19 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:24:26] Production.INFO: ==3315== Releasing lock... [2025-02-19 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:24:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:25:05 [end_date_ymd] => 2025-02-19 17:25:05 [RateCDR] => 1 ) [2025-02-19 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:25:05' and `end` < '2025-02-19 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:25:18] Production.INFO: count ==5074 [2025-02-19 17:26:34] Production.ERROR: pbx CDR StartTime 2025-02-19 14:25:05 - End Time 2025-02-19 17:25:05 [2025-02-19 17:26:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511916', 'tblTempUsageDetail_20' ) start [2025-02-19 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511916', 'tblTempUsageDetail_20' ) end [2025-02-19 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511916', 'tblTempVendorCDR_20' ) start [2025-02-19 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511916', 'tblTempVendorCDR_20' ) end [2025-02-19 17:26:44] Production.INFO: ProcessCDR(1,14511916,1,1,2) [2025-02-19 17:26:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:26:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:26:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:27:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:27:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511916', 'tblTempUsageDetail_20' ) start [2025-02-19 17:27:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511916', 'tblTempUsageDetail_20' ) end [2025-02-19 17:27:58] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:27:58] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:28:05] Production.INFO: ==3393== Releasing lock... [2025-02-19 17:28:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:28:05] Production.INFO: 66 MB #Memory Used# [2025-02-19 17:29:31] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:29:31 [end_date_ymd] => 2025-02-19 17:29:31 [RateCDR] => 1 ) [2025-02-19 17:29:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:29:31' and `end` < '2025-02-19 17:29:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:29:43] Production.INFO: count ==5043 [2025-02-19 17:30:30] Production.ERROR: pbx CDR StartTime 2025-02-19 14:29:31 - End Time 2025-02-19 17:29:31 [2025-02-19 17:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511930', 'tblTempUsageDetail_20' ) start [2025-02-19 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511930', 'tblTempUsageDetail_20' ) end [2025-02-19 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511930', 'tblTempVendorCDR_20' ) start [2025-02-19 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511930', 'tblTempVendorCDR_20' ) end [2025-02-19 17:30:35] Production.INFO: ProcessCDR(1,14511930,1,1,2) [2025-02-19 17:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:30:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:30:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:31:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:31:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511930', 'tblTempUsageDetail_20' ) start [2025-02-19 17:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511930', 'tblTempUsageDetail_20' ) end [2025-02-19 17:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:31:28] Production.INFO: ==3739== Releasing lock... [2025-02-19 17:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:31:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-19 17:32:29] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:32:29 [end_date_ymd] => 2025-02-19 17:32:29 [RateCDR] => 1 ) [2025-02-19 17:32:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:32:29' and `end` < '2025-02-19 17:32:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:32:42] Production.INFO: count ==5000 [2025-02-19 17:33:06] Production.ERROR: pbx CDR StartTime 2025-02-19 14:32:29 - End Time 2025-02-19 17:32:29 [2025-02-19 17:33:06] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:33:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511943', 'tblTempUsageDetail_20' ) start [2025-02-19 17:33:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511943', 'tblTempUsageDetail_20' ) end [2025-02-19 17:33:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511943', 'tblTempVendorCDR_20' ) start [2025-02-19 17:33:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511943', 'tblTempVendorCDR_20' ) end [2025-02-19 17:33:06] Production.INFO: ProcessCDR(1,14511943,1,1,2) [2025-02-19 17:33:06] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:33:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:33:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:33:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:33:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511943', 'tblTempUsageDetail_20' ) start [2025-02-19 17:33:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511943', 'tblTempUsageDetail_20' ) end [2025-02-19 17:33:14] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:33:14] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:33:14] Production.INFO: ==3978== Releasing lock... [2025-02-19 17:33:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:33:14] Production.INFO: 65.5 MB #Memory Used# [2025-02-19 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:34:06 [end_date_ymd] => 2025-02-19 17:34:06 [RateCDR] => 1 ) [2025-02-19 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:34:06' and `end` < '2025-02-19 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:34:18] Production.INFO: count ==4994 [2025-02-19 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:34:06 - End Time 2025-02-19 17:34:06 [2025-02-19 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511951', 'tblTempUsageDetail_20' ) start [2025-02-19 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511951', 'tblTempUsageDetail_20' ) end [2025-02-19 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511951', 'tblTempVendorCDR_20' ) start [2025-02-19 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511951', 'tblTempVendorCDR_20' ) end [2025-02-19 17:34:21] Production.INFO: ProcessCDR(1,14511951,1,1,2) [2025-02-19 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511951', 'tblTempUsageDetail_20' ) start [2025-02-19 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511951', 'tblTempUsageDetail_20' ) end [2025-02-19 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:34:27] Production.INFO: ==4139== Releasing lock... [2025-02-19 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:34:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-19 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:35:06 [end_date_ymd] => 2025-02-19 17:35:06 [RateCDR] => 1 ) [2025-02-19 17:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:35:06' and `end` < '2025-02-19 17:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:35:18] Production.INFO: count ==4978 [2025-02-19 17:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:35:06 - End Time 2025-02-19 17:35:06 [2025-02-19 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511956', 'tblTempUsageDetail_20' ) start [2025-02-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511956', 'tblTempUsageDetail_20' ) end [2025-02-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511956', 'tblTempVendorCDR_20' ) start [2025-02-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511956', 'tblTempVendorCDR_20' ) end [2025-02-19 17:35:21] Production.INFO: ProcessCDR(1,14511956,1,1,2) [2025-02-19 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511956', 'tblTempUsageDetail_20' ) start [2025-02-19 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511956', 'tblTempUsageDetail_20' ) end [2025-02-19 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:35:26] Production.INFO: ==4228== Releasing lock... [2025-02-19 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:35:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-19 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:36:05 [end_date_ymd] => 2025-02-19 17:36:05 [RateCDR] => 1 ) [2025-02-19 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:36:05' and `end` < '2025-02-19 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:36:18] Production.INFO: count ==4970 [2025-02-19 17:36:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:36:05 - End Time 2025-02-19 17:36:05 [2025-02-19 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511961', 'tblTempUsageDetail_20' ) start [2025-02-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511961', 'tblTempUsageDetail_20' ) end [2025-02-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511961', 'tblTempVendorCDR_20' ) start [2025-02-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511961', 'tblTempVendorCDR_20' ) end [2025-02-19 17:36:20] Production.INFO: ProcessCDR(1,14511961,1,1,2) [2025-02-19 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511961', 'tblTempUsageDetail_20' ) start [2025-02-19 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511961', 'tblTempUsageDetail_20' ) end [2025-02-19 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:36:26] Production.INFO: ==4314== Releasing lock... [2025-02-19 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:36:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-19 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:37:06 [end_date_ymd] => 2025-02-19 17:37:06 [RateCDR] => 1 ) [2025-02-19 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:37:06' and `end` < '2025-02-19 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:37:19] Production.INFO: count ==4939 [2025-02-19 17:37:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:37:06 - End Time 2025-02-19 17:37:06 [2025-02-19 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511966', 'tblTempUsageDetail_20' ) start [2025-02-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511966', 'tblTempUsageDetail_20' ) end [2025-02-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511966', 'tblTempVendorCDR_20' ) start [2025-02-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511966', 'tblTempVendorCDR_20' ) end [2025-02-19 17:37:21] Production.INFO: ProcessCDR(1,14511966,1,1,2) [2025-02-19 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511966', 'tblTempUsageDetail_20' ) start [2025-02-19 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511966', 'tblTempUsageDetail_20' ) end [2025-02-19 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:37:26] Production.INFO: ==4396== Releasing lock... [2025-02-19 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:37:26] Production.INFO: 65 MB #Memory Used# [2025-02-19 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:38:05 [end_date_ymd] => 2025-02-19 17:38:05 [RateCDR] => 1 ) [2025-02-19 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:38:05' and `end` < '2025-02-19 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:38:18] Production.INFO: count ==4905 [2025-02-19 17:38:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:38:05 - End Time 2025-02-19 17:38:05 [2025-02-19 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511971', 'tblTempUsageDetail_20' ) start [2025-02-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511971', 'tblTempUsageDetail_20' ) end [2025-02-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511971', 'tblTempVendorCDR_20' ) start [2025-02-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511971', 'tblTempVendorCDR_20' ) end [2025-02-19 17:38:20] Production.INFO: ProcessCDR(1,14511971,1,1,2) [2025-02-19 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511971', 'tblTempUsageDetail_20' ) start [2025-02-19 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511971', 'tblTempUsageDetail_20' ) end [2025-02-19 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:38:24] Production.INFO: ==4472== Releasing lock... [2025-02-19 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:38:24] Production.INFO: 64.75 MB #Memory Used# [2025-02-19 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:39:06 [end_date_ymd] => 2025-02-19 17:39:06 [RateCDR] => 1 ) [2025-02-19 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:39:06' and `end` < '2025-02-19 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:39:19] Production.INFO: count ==4890 [2025-02-19 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:39:06 - End Time 2025-02-19 17:39:06 [2025-02-19 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511976', 'tblTempUsageDetail_20' ) start [2025-02-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511976', 'tblTempUsageDetail_20' ) end [2025-02-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511976', 'tblTempVendorCDR_20' ) start [2025-02-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511976', 'tblTempVendorCDR_20' ) end [2025-02-19 17:39:21] Production.INFO: ProcessCDR(1,14511976,1,1,2) [2025-02-19 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511976', 'tblTempUsageDetail_20' ) start [2025-02-19 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511976', 'tblTempUsageDetail_20' ) end [2025-02-19 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:39:25] Production.INFO: ==4552== Releasing lock... [2025-02-19 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:39:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-19 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:40:07 [end_date_ymd] => 2025-02-19 17:40:07 [RateCDR] => 1 ) [2025-02-19 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:40:07' and `end` < '2025-02-19 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:40:20] Production.INFO: count ==4859 [2025-02-19 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-19 14:40:07 - End Time 2025-02-19 17:40:07 [2025-02-19 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511982', 'tblTempUsageDetail_20' ) start [2025-02-19 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511982', 'tblTempUsageDetail_20' ) end [2025-02-19 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511982', 'tblTempVendorCDR_20' ) start [2025-02-19 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511982', 'tblTempVendorCDR_20' ) end [2025-02-19 17:40:22] Production.INFO: ProcessCDR(1,14511982,1,1,2) [2025-02-19 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511982', 'tblTempUsageDetail_20' ) start [2025-02-19 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511982', 'tblTempUsageDetail_20' ) end [2025-02-19 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:40:26] Production.INFO: ==4639== Releasing lock... [2025-02-19 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:40:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-19 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:41:05 [end_date_ymd] => 2025-02-19 17:41:05 [RateCDR] => 1 ) [2025-02-19 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:41:05' and `end` < '2025-02-19 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:41:18] Production.INFO: count ==4827 [2025-02-19 17:41:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:41:05 - End Time 2025-02-19 17:41:05 [2025-02-19 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511987', 'tblTempUsageDetail_20' ) start [2025-02-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511987', 'tblTempUsageDetail_20' ) end [2025-02-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511987', 'tblTempVendorCDR_20' ) start [2025-02-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511987', 'tblTempVendorCDR_20' ) end [2025-02-19 17:41:20] Production.INFO: ProcessCDR(1,14511987,1,1,2) [2025-02-19 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511987', 'tblTempUsageDetail_20' ) start [2025-02-19 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511987', 'tblTempUsageDetail_20' ) end [2025-02-19 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:41:24] Production.INFO: ==4757== Releasing lock... [2025-02-19 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:41:24] Production.INFO: 64 MB #Memory Used# [2025-02-19 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:42:06 [end_date_ymd] => 2025-02-19 17:42:06 [RateCDR] => 1 ) [2025-02-19 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:42:06' and `end` < '2025-02-19 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:42:19] Production.INFO: count ==4806 [2025-02-19 17:42:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:42:06 - End Time 2025-02-19 17:42:06 [2025-02-19 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511992', 'tblTempUsageDetail_20' ) start [2025-02-19 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511992', 'tblTempUsageDetail_20' ) end [2025-02-19 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511992', 'tblTempVendorCDR_20' ) start [2025-02-19 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511992', 'tblTempVendorCDR_20' ) end [2025-02-19 17:42:21] Production.INFO: ProcessCDR(1,14511992,1,1,2) [2025-02-19 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511992', 'tblTempUsageDetail_20' ) start [2025-02-19 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511992', 'tblTempUsageDetail_20' ) end [2025-02-19 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:42:24] Production.INFO: ==4833== Releasing lock... [2025-02-19 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:42:24] Production.INFO: 64 MB #Memory Used# [2025-02-19 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:43:06 [end_date_ymd] => 2025-02-19 17:43:06 [RateCDR] => 1 ) [2025-02-19 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:43:06' and `end` < '2025-02-19 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:43:18] Production.INFO: count ==4803 [2025-02-19 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:43:06 - End Time 2025-02-19 17:43:06 [2025-02-19 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511997', 'tblTempUsageDetail_20' ) start [2025-02-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14511997', 'tblTempUsageDetail_20' ) end [2025-02-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511997', 'tblTempVendorCDR_20' ) start [2025-02-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14511997', 'tblTempVendorCDR_20' ) end [2025-02-19 17:43:20] Production.INFO: ProcessCDR(1,14511997,1,1,2) [2025-02-19 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14511997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14511997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14511997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14511997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511997', 'tblTempUsageDetail_20' ) start [2025-02-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14511997', 'tblTempUsageDetail_20' ) end [2025-02-19 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:43:26] Production.INFO: ==4911== Releasing lock... [2025-02-19 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:43:26] Production.INFO: 64 MB #Memory Used# [2025-02-19 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:44:05 [end_date_ymd] => 2025-02-19 17:44:05 [RateCDR] => 1 ) [2025-02-19 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:44:05' and `end` < '2025-02-19 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:44:18] Production.INFO: count ==4774 [2025-02-19 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:44:05 - End Time 2025-02-19 17:44:05 [2025-02-19 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512002', 'tblTempUsageDetail_20' ) start [2025-02-19 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512002', 'tblTempUsageDetail_20' ) end [2025-02-19 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512002', 'tblTempVendorCDR_20' ) start [2025-02-19 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512002', 'tblTempVendorCDR_20' ) end [2025-02-19 17:44:20] Production.INFO: ProcessCDR(1,14512002,1,1,2) [2025-02-19 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512002', 'tblTempUsageDetail_20' ) start [2025-02-19 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512002', 'tblTempUsageDetail_20' ) end [2025-02-19 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:44:25] Production.INFO: ==4984== Releasing lock... [2025-02-19 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:44:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:45:05 [end_date_ymd] => 2025-02-19 17:45:05 [RateCDR] => 1 ) [2025-02-19 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:45:05' and `end` < '2025-02-19 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:45:18] Production.INFO: count ==4771 [2025-02-19 17:45:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:45:05 - End Time 2025-02-19 17:45:05 [2025-02-19 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512007', 'tblTempUsageDetail_20' ) start [2025-02-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512007', 'tblTempUsageDetail_20' ) end [2025-02-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512007', 'tblTempVendorCDR_20' ) start [2025-02-19 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512007', 'tblTempVendorCDR_20' ) end [2025-02-19 17:45:21] Production.INFO: ProcessCDR(1,14512007,1,1,2) [2025-02-19 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512007', 'tblTempUsageDetail_20' ) start [2025-02-19 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512007', 'tblTempUsageDetail_20' ) end [2025-02-19 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:45:26] Production.INFO: ==5056== Releasing lock... [2025-02-19 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:45:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:46:05 [end_date_ymd] => 2025-02-19 17:46:05 [RateCDR] => 1 ) [2025-02-19 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:46:05' and `end` < '2025-02-19 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:46:17] Production.INFO: count ==4757 [2025-02-19 17:46:19] Production.ERROR: pbx CDR StartTime 2025-02-19 14:46:05 - End Time 2025-02-19 17:46:05 [2025-02-19 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512012', 'tblTempUsageDetail_20' ) start [2025-02-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512012', 'tblTempUsageDetail_20' ) end [2025-02-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512012', 'tblTempVendorCDR_20' ) start [2025-02-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512012', 'tblTempVendorCDR_20' ) end [2025-02-19 17:46:20] Production.INFO: ProcessCDR(1,14512012,1,1,2) [2025-02-19 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512012', 'tblTempUsageDetail_20' ) start [2025-02-19 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512012', 'tblTempUsageDetail_20' ) end [2025-02-19 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:46:23] Production.INFO: ==5129== Releasing lock... [2025-02-19 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:46:23] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:47:06 [end_date_ymd] => 2025-02-19 17:47:06 [RateCDR] => 1 ) [2025-02-19 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:47:06' and `end` < '2025-02-19 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:47:19] Production.INFO: count ==4769 [2025-02-19 17:47:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:47:06 - End Time 2025-02-19 17:47:06 [2025-02-19 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512017', 'tblTempUsageDetail_20' ) start [2025-02-19 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512017', 'tblTempUsageDetail_20' ) end [2025-02-19 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512017', 'tblTempVendorCDR_20' ) start [2025-02-19 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512017', 'tblTempVendorCDR_20' ) end [2025-02-19 17:47:21] Production.INFO: ProcessCDR(1,14512017,1,1,2) [2025-02-19 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512017', 'tblTempUsageDetail_20' ) start [2025-02-19 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512017', 'tblTempUsageDetail_20' ) end [2025-02-19 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:47:26] Production.INFO: ==5206== Releasing lock... [2025-02-19 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:47:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:48:05 [end_date_ymd] => 2025-02-19 17:48:05 [RateCDR] => 1 ) [2025-02-19 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:48:05' and `end` < '2025-02-19 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:48:18] Production.INFO: count ==4772 [2025-02-19 17:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:48:05 - End Time 2025-02-19 17:48:05 [2025-02-19 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512022', 'tblTempUsageDetail_20' ) start [2025-02-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512022', 'tblTempUsageDetail_20' ) end [2025-02-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512022', 'tblTempVendorCDR_20' ) start [2025-02-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512022', 'tblTempVendorCDR_20' ) end [2025-02-19 17:48:20] Production.INFO: ProcessCDR(1,14512022,1,1,2) [2025-02-19 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512022', 'tblTempUsageDetail_20' ) start [2025-02-19 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512022', 'tblTempUsageDetail_20' ) end [2025-02-19 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:48:25] Production.INFO: ==5276== Releasing lock... [2025-02-19 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:48:25] Production.INFO: 64 MB #Memory Used# [2025-02-19 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:49:05 [end_date_ymd] => 2025-02-19 17:49:05 [RateCDR] => 1 ) [2025-02-19 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:49:05' and `end` < '2025-02-19 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:49:18] Production.INFO: count ==4766 [2025-02-19 17:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:49:05 - End Time 2025-02-19 17:49:05 [2025-02-19 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512027', 'tblTempUsageDetail_20' ) start [2025-02-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512027', 'tblTempUsageDetail_20' ) end [2025-02-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512027', 'tblTempVendorCDR_20' ) start [2025-02-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512027', 'tblTempVendorCDR_20' ) end [2025-02-19 17:49:20] Production.INFO: ProcessCDR(1,14512027,1,1,2) [2025-02-19 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512027', 'tblTempUsageDetail_20' ) start [2025-02-19 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512027', 'tblTempUsageDetail_20' ) end [2025-02-19 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:49:25] Production.INFO: ==5350== Releasing lock... [2025-02-19 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:49:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-19 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:50:05 [end_date_ymd] => 2025-02-19 17:50:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 14:50:05' and `end` < '2025-02-19 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-02-19 17:50:18] Production.INFO: count ==4750 [2025-02-19 17:50:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:50:05 - End Time 2025-02-19 17:50:05 [2025-02-19 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512033', 'tblTempUsageDetail_20' ) start [2025-02-19 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512033', 'tblTempUsageDetail_20' ) end [2025-02-19 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512033', 'tblTempVendorCDR_20' ) start [2025-02-19 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512033', 'tblTempVendorCDR_20' ) end [2025-02-19 17:50:20] Production.INFO: ProcessCDR(1,14512033,1,1,2) [2025-02-19 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512033', 'tblTempUsageDetail_20' ) start [2025-02-19 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512033', 'tblTempUsageDetail_20' ) end [2025-02-19 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:50:26] Production.INFO: ==5424== Releasing lock... [2025-02-19 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:50:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:51:05 [end_date_ymd] => 2025-02-19 17:51:05 [RateCDR] => 1 ) [2025-02-19 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:51:05' and `end` < '2025-02-19 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:51:18] Production.INFO: count ==4709 [2025-02-19 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:51:05 - End Time 2025-02-19 17:51:05 [2025-02-19 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512038', 'tblTempUsageDetail_20' ) start [2025-02-19 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512038', 'tblTempUsageDetail_20' ) end [2025-02-19 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512038', 'tblTempVendorCDR_20' ) start [2025-02-19 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512038', 'tblTempVendorCDR_20' ) end [2025-02-19 17:51:20] Production.INFO: ProcessCDR(1,14512038,1,1,2) [2025-02-19 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512038', 'tblTempUsageDetail_20' ) start [2025-02-19 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512038', 'tblTempUsageDetail_20' ) end [2025-02-19 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:51:25] Production.INFO: ==5498== Releasing lock... [2025-02-19 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:51:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:52:05 [end_date_ymd] => 2025-02-19 17:52:05 [RateCDR] => 1 ) [2025-02-19 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:52:05' and `end` < '2025-02-19 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:52:18] Production.INFO: count ==4688 [2025-02-19 17:52:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:52:05 - End Time 2025-02-19 17:52:05 [2025-02-19 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512043', 'tblTempUsageDetail_20' ) start [2025-02-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512043', 'tblTempUsageDetail_20' ) end [2025-02-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512043', 'tblTempVendorCDR_20' ) start [2025-02-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512043', 'tblTempVendorCDR_20' ) end [2025-02-19 17:52:20] Production.INFO: ProcessCDR(1,14512043,1,1,2) [2025-02-19 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512043', 'tblTempUsageDetail_20' ) start [2025-02-19 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512043', 'tblTempUsageDetail_20' ) end [2025-02-19 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:52:25] Production.INFO: ==5566== Releasing lock... [2025-02-19 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:52:25] Production.INFO: 63 MB #Memory Used# [2025-02-19 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:53:05 [end_date_ymd] => 2025-02-19 17:53:05 [RateCDR] => 1 ) [2025-02-19 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:53:05' and `end` < '2025-02-19 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:53:18] Production.INFO: count ==4680 [2025-02-19 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:53:05 - End Time 2025-02-19 17:53:05 [2025-02-19 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512048', 'tblTempUsageDetail_20' ) start [2025-02-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512048', 'tblTempUsageDetail_20' ) end [2025-02-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512048', 'tblTempVendorCDR_20' ) start [2025-02-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512048', 'tblTempVendorCDR_20' ) end [2025-02-19 17:53:20] Production.INFO: ProcessCDR(1,14512048,1,1,2) [2025-02-19 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512048', 'tblTempUsageDetail_20' ) start [2025-02-19 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512048', 'tblTempUsageDetail_20' ) end [2025-02-19 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:53:25] Production.INFO: ==5644== Releasing lock... [2025-02-19 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:53:25] Production.INFO: 63 MB #Memory Used# [2025-02-19 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:54:05 [end_date_ymd] => 2025-02-19 17:54:05 [RateCDR] => 1 ) [2025-02-19 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:54:05' and `end` < '2025-02-19 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:54:17] Production.INFO: count ==4671 [2025-02-19 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-19 14:54:05 - End Time 2025-02-19 17:54:05 [2025-02-19 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512053', 'tblTempUsageDetail_20' ) start [2025-02-19 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512053', 'tblTempUsageDetail_20' ) end [2025-02-19 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512053', 'tblTempVendorCDR_20' ) start [2025-02-19 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512053', 'tblTempVendorCDR_20' ) end [2025-02-19 17:54:19] Production.INFO: ProcessCDR(1,14512053,1,1,2) [2025-02-19 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512053', 'tblTempUsageDetail_20' ) start [2025-02-19 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512053', 'tblTempUsageDetail_20' ) end [2025-02-19 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:54:24] Production.INFO: ==5714== Releasing lock... [2025-02-19 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:54:24] Production.INFO: 63 MB #Memory Used# [2025-02-19 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:55:05 [end_date_ymd] => 2025-02-19 17:55:05 [RateCDR] => 1 ) [2025-02-19 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:55:05' and `end` < '2025-02-19 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:55:18] Production.INFO: count ==4656 [2025-02-19 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:55:05 - End Time 2025-02-19 17:55:05 [2025-02-19 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512058', 'tblTempUsageDetail_20' ) start [2025-02-19 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512058', 'tblTempUsageDetail_20' ) end [2025-02-19 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512058', 'tblTempVendorCDR_20' ) start [2025-02-19 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512058', 'tblTempVendorCDR_20' ) end [2025-02-19 17:55:20] Production.INFO: ProcessCDR(1,14512058,1,1,2) [2025-02-19 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512058', 'tblTempUsageDetail_20' ) start [2025-02-19 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512058', 'tblTempUsageDetail_20' ) end [2025-02-19 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:55:25] Production.INFO: ==5790== Releasing lock... [2025-02-19 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:55:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:56:05 [end_date_ymd] => 2025-02-19 17:56:05 [RateCDR] => 1 ) [2025-02-19 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:56:05' and `end` < '2025-02-19 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:56:17] Production.INFO: count ==4642 [2025-02-19 17:56:19] Production.ERROR: pbx CDR StartTime 2025-02-19 14:56:05 - End Time 2025-02-19 17:56:05 [2025-02-19 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512063', 'tblTempUsageDetail_20' ) start [2025-02-19 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512063', 'tblTempUsageDetail_20' ) end [2025-02-19 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512063', 'tblTempVendorCDR_20' ) start [2025-02-19 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512063', 'tblTempVendorCDR_20' ) end [2025-02-19 17:56:19] Production.INFO: ProcessCDR(1,14512063,1,1,2) [2025-02-19 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512063', 'tblTempUsageDetail_20' ) start [2025-02-19 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512063', 'tblTempUsageDetail_20' ) end [2025-02-19 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:56:24] Production.INFO: ==5861== Releasing lock... [2025-02-19 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:56:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:57:05 [end_date_ymd] => 2025-02-19 17:57:05 [RateCDR] => 1 ) [2025-02-19 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:57:05' and `end` < '2025-02-19 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:57:18] Production.INFO: count ==4631 [2025-02-19 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:57:05 - End Time 2025-02-19 17:57:05 [2025-02-19 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512068', 'tblTempUsageDetail_20' ) start [2025-02-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512068', 'tblTempUsageDetail_20' ) end [2025-02-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512068', 'tblTempVendorCDR_20' ) start [2025-02-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512068', 'tblTempVendorCDR_20' ) end [2025-02-19 17:57:20] Production.INFO: ProcessCDR(1,14512068,1,1,2) [2025-02-19 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512068', 'tblTempUsageDetail_20' ) start [2025-02-19 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512068', 'tblTempUsageDetail_20' ) end [2025-02-19 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:57:25] Production.INFO: ==5972== Releasing lock... [2025-02-19 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:57:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:58:06 [end_date_ymd] => 2025-02-19 17:58:06 [RateCDR] => 1 ) [2025-02-19 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:58:06' and `end` < '2025-02-19 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:58:19] Production.INFO: count ==4632 [2025-02-19 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-19 14:58:06 - End Time 2025-02-19 17:58:06 [2025-02-19 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512073', 'tblTempUsageDetail_20' ) start [2025-02-19 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512073', 'tblTempUsageDetail_20' ) end [2025-02-19 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512073', 'tblTempVendorCDR_20' ) start [2025-02-19 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512073', 'tblTempVendorCDR_20' ) end [2025-02-19 17:58:21] Production.INFO: ProcessCDR(1,14512073,1,1,2) [2025-02-19 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512073', 'tblTempUsageDetail_20' ) start [2025-02-19 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512073', 'tblTempUsageDetail_20' ) end [2025-02-19 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:58:25] Production.INFO: ==6047== Releasing lock... [2025-02-19 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:58:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 14:59:05 [end_date_ymd] => 2025-02-19 17:59:05 [RateCDR] => 1 ) [2025-02-19 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 14:59:05' and `end` < '2025-02-19 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 17:59:18] Production.INFO: count ==4636 [2025-02-19 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-19 14:59:05 - End Time 2025-02-19 17:59:05 [2025-02-19 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512078', 'tblTempUsageDetail_20' ) start [2025-02-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512078', 'tblTempUsageDetail_20' ) end [2025-02-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512078', 'tblTempVendorCDR_20' ) start [2025-02-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512078', 'tblTempVendorCDR_20' ) end [2025-02-19 17:59:20] Production.INFO: ProcessCDR(1,14512078,1,1,2) [2025-02-19 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512078', 'tblTempUsageDetail_20' ) start [2025-02-19 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512078', 'tblTempUsageDetail_20' ) end [2025-02-19 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 17:59:23] Production.INFO: ==6117== Releasing lock... [2025-02-19 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 17:59:23] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:00:06 [end_date_ymd] => 2025-02-19 18:00:06 [RateCDR] => 1 ) [2025-02-19 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:00:06' and `end` < '2025-02-19 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:00:19] Production.INFO: count ==4622 [2025-02-19 18:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 15:00:06 - End Time 2025-02-19 18:00:06 [2025-02-19 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512084', 'tblTempUsageDetail_20' ) start [2025-02-19 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512084', 'tblTempUsageDetail_20' ) end [2025-02-19 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512084', 'tblTempVendorCDR_20' ) start [2025-02-19 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512084', 'tblTempVendorCDR_20' ) end [2025-02-19 18:00:21] Production.INFO: ProcessCDR(1,14512084,1,1,2) [2025-02-19 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512084', 'tblTempUsageDetail_20' ) start [2025-02-19 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512084', 'tblTempUsageDetail_20' ) end [2025-02-19 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:00:26] Production.INFO: ==6192== Releasing lock... [2025-02-19 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:00:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:01:04 [end_date_ymd] => 2025-02-19 18:01:04 [RateCDR] => 1 ) [2025-02-19 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:01:04' and `end` < '2025-02-19 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:01:17] Production.INFO: count ==4590 [2025-02-19 18:01:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:01:04 - End Time 2025-02-19 18:01:04 [2025-02-19 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512085', 'tblTempUsageDetail_20' ) start [2025-02-19 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512085', 'tblTempUsageDetail_20' ) end [2025-02-19 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512085', 'tblTempVendorCDR_20' ) start [2025-02-19 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512085', 'tblTempVendorCDR_20' ) end [2025-02-19 18:01:19] Production.INFO: ProcessCDR(1,14512085,1,1,2) [2025-02-19 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512085', 'tblTempUsageDetail_20' ) start [2025-02-19 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512085', 'tblTempUsageDetail_20' ) end [2025-02-19 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:01:24] Production.INFO: ==6281== Releasing lock... [2025-02-19 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:01:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:02:06 [end_date_ymd] => 2025-02-19 18:02:06 [RateCDR] => 1 ) [2025-02-19 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:02:06' and `end` < '2025-02-19 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:02:19] Production.INFO: count ==4584 [2025-02-19 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-19 15:02:06 - End Time 2025-02-19 18:02:06 [2025-02-19 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512094', 'tblTempUsageDetail_20' ) start [2025-02-19 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512094', 'tblTempUsageDetail_20' ) end [2025-02-19 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512094', 'tblTempVendorCDR_20' ) start [2025-02-19 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512094', 'tblTempVendorCDR_20' ) end [2025-02-19 18:02:21] Production.INFO: ProcessCDR(1,14512094,1,1,2) [2025-02-19 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512094', 'tblTempUsageDetail_20' ) start [2025-02-19 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512094', 'tblTempUsageDetail_20' ) end [2025-02-19 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:02:26] Production.INFO: ==6357== Releasing lock... [2025-02-19 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:02:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:03:06 [end_date_ymd] => 2025-02-19 18:03:06 [RateCDR] => 1 ) [2025-02-19 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:03:06' and `end` < '2025-02-19 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:03:18] Production.INFO: count ==4570 [2025-02-19 18:03:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:03:06 - End Time 2025-02-19 18:03:06 [2025-02-19 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512099', 'tblTempUsageDetail_20' ) start [2025-02-19 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512099', 'tblTempUsageDetail_20' ) end [2025-02-19 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512099', 'tblTempVendorCDR_20' ) start [2025-02-19 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512099', 'tblTempVendorCDR_20' ) end [2025-02-19 18:03:20] Production.INFO: ProcessCDR(1,14512099,1,1,2) [2025-02-19 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512099', 'tblTempUsageDetail_20' ) start [2025-02-19 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512099', 'tblTempUsageDetail_20' ) end [2025-02-19 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:03:26] Production.INFO: ==6446== Releasing lock... [2025-02-19 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:03:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:04:06 [end_date_ymd] => 2025-02-19 18:04:06 [RateCDR] => 1 ) [2025-02-19 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:04:06' and `end` < '2025-02-19 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:04:18] Production.INFO: count ==4540 [2025-02-19 18:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:04:06 - End Time 2025-02-19 18:04:06 [2025-02-19 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512104', 'tblTempUsageDetail_20' ) start [2025-02-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512104', 'tblTempUsageDetail_20' ) end [2025-02-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512104', 'tblTempVendorCDR_20' ) start [2025-02-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512104', 'tblTempVendorCDR_20' ) end [2025-02-19 18:04:20] Production.INFO: ProcessCDR(1,14512104,1,1,2) [2025-02-19 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512104', 'tblTempUsageDetail_20' ) start [2025-02-19 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512104', 'tblTempUsageDetail_20' ) end [2025-02-19 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:04:25] Production.INFO: ==6538== Releasing lock... [2025-02-19 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:04:25] Production.INFO: 62 MB #Memory Used# [2025-02-19 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:05:05 [end_date_ymd] => 2025-02-19 18:05:05 [RateCDR] => 1 ) [2025-02-19 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:05:05' and `end` < '2025-02-19 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:05:18] Production.INFO: count ==4530 [2025-02-19 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:05:05 - End Time 2025-02-19 18:05:05 [2025-02-19 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512109', 'tblTempUsageDetail_20' ) start [2025-02-19 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512109', 'tblTempUsageDetail_20' ) end [2025-02-19 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512109', 'tblTempVendorCDR_20' ) start [2025-02-19 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512109', 'tblTempVendorCDR_20' ) end [2025-02-19 18:05:20] Production.INFO: ProcessCDR(1,14512109,1,1,2) [2025-02-19 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512109', 'tblTempUsageDetail_20' ) start [2025-02-19 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512109', 'tblTempUsageDetail_20' ) end [2025-02-19 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:05:23] Production.INFO: ==6621== Releasing lock... [2025-02-19 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:05:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:06:06 [end_date_ymd] => 2025-02-19 18:06:06 [RateCDR] => 1 ) [2025-02-19 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:06:06' and `end` < '2025-02-19 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:06:19] Production.INFO: count ==4506 [2025-02-19 18:06:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:06:06 - End Time 2025-02-19 18:06:06 [2025-02-19 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512114', 'tblTempUsageDetail_20' ) start [2025-02-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512114', 'tblTempUsageDetail_20' ) end [2025-02-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512114', 'tblTempVendorCDR_20' ) start [2025-02-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512114', 'tblTempVendorCDR_20' ) end [2025-02-19 18:06:20] Production.INFO: ProcessCDR(1,14512114,1,1,2) [2025-02-19 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512114', 'tblTempUsageDetail_20' ) start [2025-02-19 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512114', 'tblTempUsageDetail_20' ) end [2025-02-19 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:06:25] Production.INFO: ==6709== Releasing lock... [2025-02-19 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:06:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:07:05 [end_date_ymd] => 2025-02-19 18:07:05 [RateCDR] => 1 ) [2025-02-19 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:07:05' and `end` < '2025-02-19 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:07:18] Production.INFO: count ==4482 [2025-02-19 18:07:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:07:05 - End Time 2025-02-19 18:07:05 [2025-02-19 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512119', 'tblTempUsageDetail_20' ) start [2025-02-19 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512119', 'tblTempUsageDetail_20' ) end [2025-02-19 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512119', 'tblTempVendorCDR_20' ) start [2025-02-19 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512119', 'tblTempVendorCDR_20' ) end [2025-02-19 18:07:20] Production.INFO: ProcessCDR(1,14512119,1,1,2) [2025-02-19 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512119', 'tblTempUsageDetail_20' ) start [2025-02-19 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512119', 'tblTempUsageDetail_20' ) end [2025-02-19 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:07:25] Production.INFO: ==6804== Releasing lock... [2025-02-19 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:07:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:08:05 [end_date_ymd] => 2025-02-19 18:08:05 [RateCDR] => 1 ) [2025-02-19 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:08:05' and `end` < '2025-02-19 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:08:18] Production.INFO: count ==4442 [2025-02-19 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:08:05 - End Time 2025-02-19 18:08:05 [2025-02-19 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512124', 'tblTempUsageDetail_20' ) start [2025-02-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512124', 'tblTempUsageDetail_20' ) end [2025-02-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512124', 'tblTempVendorCDR_20' ) start [2025-02-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512124', 'tblTempVendorCDR_20' ) end [2025-02-19 18:08:20] Production.INFO: ProcessCDR(1,14512124,1,1,2) [2025-02-19 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512124', 'tblTempUsageDetail_20' ) start [2025-02-19 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512124', 'tblTempUsageDetail_20' ) end [2025-02-19 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:08:23] Production.INFO: ==6908== Releasing lock... [2025-02-19 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:08:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:09:05 [end_date_ymd] => 2025-02-19 18:09:05 [RateCDR] => 1 ) [2025-02-19 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:09:05' and `end` < '2025-02-19 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:09:17] Production.INFO: count ==4438 [2025-02-19 18:09:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:09:05 - End Time 2025-02-19 18:09:05 [2025-02-19 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512129', 'tblTempUsageDetail_20' ) start [2025-02-19 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512129', 'tblTempUsageDetail_20' ) end [2025-02-19 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512129', 'tblTempVendorCDR_20' ) start [2025-02-19 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512129', 'tblTempVendorCDR_20' ) end [2025-02-19 18:09:19] Production.INFO: ProcessCDR(1,14512129,1,1,2) [2025-02-19 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512129', 'tblTempUsageDetail_20' ) start [2025-02-19 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512129', 'tblTempUsageDetail_20' ) end [2025-02-19 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:09:24] Production.INFO: ==7014== Releasing lock... [2025-02-19 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:09:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:10:06 [end_date_ymd] => 2025-02-19 18:10:06 [RateCDR] => 1 ) [2025-02-19 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:10:06' and `end` < '2025-02-19 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:10:19] Production.INFO: count ==4424 [2025-02-19 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-19 15:10:06 - End Time 2025-02-19 18:10:06 [2025-02-19 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512135', 'tblTempUsageDetail_20' ) start [2025-02-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512135', 'tblTempUsageDetail_20' ) end [2025-02-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512135', 'tblTempVendorCDR_20' ) start [2025-02-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512135', 'tblTempVendorCDR_20' ) end [2025-02-19 18:10:21] Production.INFO: ProcessCDR(1,14512135,1,1,2) [2025-02-19 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512135', 'tblTempUsageDetail_20' ) start [2025-02-19 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512135', 'tblTempUsageDetail_20' ) end [2025-02-19 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:10:26] Production.INFO: ==7125== Releasing lock... [2025-02-19 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:10:26] Production.INFO: 61 MB #Memory Used# [2025-02-19 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:11:05 [end_date_ymd] => 2025-02-19 18:11:05 [RateCDR] => 1 ) [2025-02-19 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:11:05' and `end` < '2025-02-19 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:11:17] Production.INFO: count ==4394 [2025-02-19 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:11:05 - End Time 2025-02-19 18:11:05 [2025-02-19 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512140', 'tblTempUsageDetail_20' ) start [2025-02-19 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512140', 'tblTempUsageDetail_20' ) end [2025-02-19 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512140', 'tblTempVendorCDR_20' ) start [2025-02-19 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512140', 'tblTempVendorCDR_20' ) end [2025-02-19 18:11:19] Production.INFO: ProcessCDR(1,14512140,1,1,2) [2025-02-19 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512140', 'tblTempUsageDetail_20' ) start [2025-02-19 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512140', 'tblTempUsageDetail_20' ) end [2025-02-19 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:11:24] Production.INFO: ==7237== Releasing lock... [2025-02-19 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:11:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:12:05 [end_date_ymd] => 2025-02-19 18:12:05 [RateCDR] => 1 ) [2025-02-19 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:12:05' and `end` < '2025-02-19 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:12:17] Production.INFO: count ==4371 [2025-02-19 18:12:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:12:05 - End Time 2025-02-19 18:12:05 [2025-02-19 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512145', 'tblTempUsageDetail_20' ) start [2025-02-19 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512145', 'tblTempUsageDetail_20' ) end [2025-02-19 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512145', 'tblTempVendorCDR_20' ) start [2025-02-19 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512145', 'tblTempVendorCDR_20' ) end [2025-02-19 18:12:19] Production.INFO: ProcessCDR(1,14512145,1,1,2) [2025-02-19 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512145', 'tblTempUsageDetail_20' ) start [2025-02-19 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512145', 'tblTempUsageDetail_20' ) end [2025-02-19 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:12:24] Production.INFO: ==7380== Releasing lock... [2025-02-19 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:12:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:13:06 [end_date_ymd] => 2025-02-19 18:13:06 [RateCDR] => 1 ) [2025-02-19 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:13:06' and `end` < '2025-02-19 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:13:18] Production.INFO: count ==4355 [2025-02-19 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:13:06 - End Time 2025-02-19 18:13:06 [2025-02-19 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512150', 'tblTempUsageDetail_20' ) start [2025-02-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512150', 'tblTempUsageDetail_20' ) end [2025-02-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512150', 'tblTempVendorCDR_20' ) start [2025-02-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512150', 'tblTempVendorCDR_20' ) end [2025-02-19 18:13:20] Production.INFO: ProcessCDR(1,14512150,1,1,2) [2025-02-19 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512150', 'tblTempUsageDetail_20' ) start [2025-02-19 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512150', 'tblTempUsageDetail_20' ) end [2025-02-19 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:13:24] Production.INFO: ==7489== Releasing lock... [2025-02-19 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:13:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:14:05 [end_date_ymd] => 2025-02-19 18:14:05 [RateCDR] => 1 ) [2025-02-19 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:14:05' and `end` < '2025-02-19 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:14:17] Production.INFO: count ==4360 [2025-02-19 18:14:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:14:05 - End Time 2025-02-19 18:14:05 [2025-02-19 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512155', 'tblTempUsageDetail_20' ) start [2025-02-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512155', 'tblTempUsageDetail_20' ) end [2025-02-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512155', 'tblTempVendorCDR_20' ) start [2025-02-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512155', 'tblTempVendorCDR_20' ) end [2025-02-19 18:14:19] Production.INFO: ProcessCDR(1,14512155,1,1,2) [2025-02-19 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512155', 'tblTempUsageDetail_20' ) start [2025-02-19 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512155', 'tblTempUsageDetail_20' ) end [2025-02-19 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:14:22] Production.INFO: ==7602== Releasing lock... [2025-02-19 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:14:22] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:15:05 [end_date_ymd] => 2025-02-19 18:15:05 [RateCDR] => 1 ) [2025-02-19 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:15:05' and `end` < '2025-02-19 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:15:18] Production.INFO: count ==4366 [2025-02-19 18:15:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:15:05 - End Time 2025-02-19 18:15:05 [2025-02-19 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512160', 'tblTempUsageDetail_20' ) start [2025-02-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512160', 'tblTempUsageDetail_20' ) end [2025-02-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512160', 'tblTempVendorCDR_20' ) start [2025-02-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512160', 'tblTempVendorCDR_20' ) end [2025-02-19 18:15:20] Production.INFO: ProcessCDR(1,14512160,1,1,2) [2025-02-19 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512160', 'tblTempUsageDetail_20' ) start [2025-02-19 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512160', 'tblTempUsageDetail_20' ) end [2025-02-19 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:15:23] Production.INFO: ==7710== Releasing lock... [2025-02-19 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:15:23] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:16:05 [end_date_ymd] => 2025-02-19 18:16:05 [RateCDR] => 1 ) [2025-02-19 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:16:05' and `end` < '2025-02-19 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:16:18] Production.INFO: count ==4340 [2025-02-19 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:16:05 - End Time 2025-02-19 18:16:05 [2025-02-19 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512165', 'tblTempUsageDetail_20' ) start [2025-02-19 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512165', 'tblTempUsageDetail_20' ) end [2025-02-19 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512165', 'tblTempVendorCDR_20' ) start [2025-02-19 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512165', 'tblTempVendorCDR_20' ) end [2025-02-19 18:16:19] Production.INFO: ProcessCDR(1,14512165,1,1,2) [2025-02-19 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512165', 'tblTempUsageDetail_20' ) start [2025-02-19 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512165', 'tblTempUsageDetail_20' ) end [2025-02-19 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:16:24] Production.INFO: ==7813== Releasing lock... [2025-02-19 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:16:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:17:05 [end_date_ymd] => 2025-02-19 18:17:05 [RateCDR] => 1 ) [2025-02-19 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:17:05' and `end` < '2025-02-19 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:17:18] Production.INFO: count ==4309 [2025-02-19 18:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:17:05 - End Time 2025-02-19 18:17:05 [2025-02-19 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512170', 'tblTempUsageDetail_20' ) start [2025-02-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512170', 'tblTempUsageDetail_20' ) end [2025-02-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512170', 'tblTempVendorCDR_20' ) start [2025-02-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512170', 'tblTempVendorCDR_20' ) end [2025-02-19 18:17:20] Production.INFO: ProcessCDR(1,14512170,1,1,2) [2025-02-19 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512170', 'tblTempUsageDetail_20' ) start [2025-02-19 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512170', 'tblTempUsageDetail_20' ) end [2025-02-19 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:17:24] Production.INFO: ==7922== Releasing lock... [2025-02-19 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:17:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:18:04 [end_date_ymd] => 2025-02-19 18:18:04 [RateCDR] => 1 ) [2025-02-19 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:18:04' and `end` < '2025-02-19 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:18:17] Production.INFO: count ==4287 [2025-02-19 18:18:18] Production.ERROR: pbx CDR StartTime 2025-02-19 15:18:04 - End Time 2025-02-19 18:18:04 [2025-02-19 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512175', 'tblTempUsageDetail_20' ) start [2025-02-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512175', 'tblTempUsageDetail_20' ) end [2025-02-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512175', 'tblTempVendorCDR_20' ) start [2025-02-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512175', 'tblTempVendorCDR_20' ) end [2025-02-19 18:18:19] Production.INFO: ProcessCDR(1,14512175,1,1,2) [2025-02-19 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512175', 'tblTempUsageDetail_20' ) start [2025-02-19 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512175', 'tblTempUsageDetail_20' ) end [2025-02-19 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:18:22] Production.INFO: ==8038== Releasing lock... [2025-02-19 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:18:22] Production.INFO: 60 MB #Memory Used# [2025-02-19 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:19:05 [end_date_ymd] => 2025-02-19 18:19:05 [RateCDR] => 1 ) [2025-02-19 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:19:05' and `end` < '2025-02-19 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:19:18] Production.INFO: count ==4280 [2025-02-19 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:19:05 - End Time 2025-02-19 18:19:05 [2025-02-19 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512180', 'tblTempUsageDetail_20' ) start [2025-02-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512180', 'tblTempUsageDetail_20' ) end [2025-02-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512180', 'tblTempVendorCDR_20' ) start [2025-02-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512180', 'tblTempVendorCDR_20' ) end [2025-02-19 18:19:20] Production.INFO: ProcessCDR(1,14512180,1,1,2) [2025-02-19 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512180', 'tblTempUsageDetail_20' ) start [2025-02-19 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512180', 'tblTempUsageDetail_20' ) end [2025-02-19 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:19:23] Production.INFO: ==8155== Releasing lock... [2025-02-19 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:19:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:20:05 [end_date_ymd] => 2025-02-19 18:20:05 [RateCDR] => 1 ) [2025-02-19 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-02-19 15:20:05' and `end` < '2025-02-19 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-02-19 18:20:18] Production.INFO: count ==4268 [2025-02-19 18:20:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:20:05 - End Time 2025-02-19 18:20:05 [2025-02-19 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512186', 'tblTempUsageDetail_20' ) start [2025-02-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512186', 'tblTempUsageDetail_20' ) end [2025-02-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512186', 'tblTempVendorCDR_20' ) start [2025-02-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512186', 'tblTempVendorCDR_20' ) end [2025-02-19 18:20:20] Production.INFO: ProcessCDR(1,14512186,1,1,2) [2025-02-19 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512186', 'tblTempUsageDetail_20' ) start [2025-02-19 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512186', 'tblTempUsageDetail_20' ) end [2025-02-19 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:20:23] Production.INFO: ==8275== Releasing lock... [2025-02-19 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:20:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:21:05 [end_date_ymd] => 2025-02-19 18:21:05 [RateCDR] => 1 ) [2025-02-19 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:21:05' and `end` < '2025-02-19 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:21:17] Production.INFO: count ==4197 [2025-02-19 18:21:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:21:05 - End Time 2025-02-19 18:21:05 [2025-02-19 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512191', 'tblTempUsageDetail_20' ) start [2025-02-19 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512191', 'tblTempUsageDetail_20' ) end [2025-02-19 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512191', 'tblTempVendorCDR_20' ) start [2025-02-19 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512191', 'tblTempVendorCDR_20' ) end [2025-02-19 18:21:19] Production.INFO: ProcessCDR(1,14512191,1,1,2) [2025-02-19 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512191', 'tblTempUsageDetail_20' ) start [2025-02-19 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512191', 'tblTempUsageDetail_20' ) end [2025-02-19 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:21:24] Production.INFO: ==8394== Releasing lock... [2025-02-19 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:21:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:22:05 [end_date_ymd] => 2025-02-19 18:22:05 [RateCDR] => 1 ) [2025-02-19 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:22:05' and `end` < '2025-02-19 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:22:17] Production.INFO: count ==4159 [2025-02-19 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:22:05 - End Time 2025-02-19 18:22:05 [2025-02-19 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512196', 'tblTempUsageDetail_20' ) start [2025-02-19 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512196', 'tblTempUsageDetail_20' ) end [2025-02-19 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512196', 'tblTempVendorCDR_20' ) start [2025-02-19 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512196', 'tblTempVendorCDR_20' ) end [2025-02-19 18:22:19] Production.INFO: ProcessCDR(1,14512196,1,1,2) [2025-02-19 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512196', 'tblTempUsageDetail_20' ) start [2025-02-19 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512196', 'tblTempUsageDetail_20' ) end [2025-02-19 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:22:23] Production.INFO: ==8509== Releasing lock... [2025-02-19 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:22:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:23:05 [end_date_ymd] => 2025-02-19 18:23:05 [RateCDR] => 1 ) [2025-02-19 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:23:05' and `end` < '2025-02-19 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:23:18] Production.INFO: count ==4128 [2025-02-19 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:23:05 - End Time 2025-02-19 18:23:05 [2025-02-19 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512201', 'tblTempUsageDetail_20' ) start [2025-02-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512201', 'tblTempUsageDetail_20' ) end [2025-02-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512201', 'tblTempVendorCDR_20' ) start [2025-02-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512201', 'tblTempVendorCDR_20' ) end [2025-02-19 18:23:20] Production.INFO: ProcessCDR(1,14512201,1,1,2) [2025-02-19 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512201', 'tblTempUsageDetail_20' ) start [2025-02-19 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512201', 'tblTempUsageDetail_20' ) end [2025-02-19 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:23:24] Production.INFO: ==8634== Releasing lock... [2025-02-19 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:23:24] Production.INFO: 59 MB #Memory Used# [2025-02-19 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:24:05 [end_date_ymd] => 2025-02-19 18:24:05 [RateCDR] => 1 ) [2025-02-19 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:24:05' and `end` < '2025-02-19 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:24:18] Production.INFO: count ==4107 [2025-02-19 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:24:05 - End Time 2025-02-19 18:24:05 [2025-02-19 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512206', 'tblTempUsageDetail_20' ) start [2025-02-19 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512206', 'tblTempUsageDetail_20' ) end [2025-02-19 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512206', 'tblTempVendorCDR_20' ) start [2025-02-19 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512206', 'tblTempVendorCDR_20' ) end [2025-02-19 18:24:19] Production.INFO: ProcessCDR(1,14512206,1,1,2) [2025-02-19 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512206', 'tblTempUsageDetail_20' ) start [2025-02-19 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512206', 'tblTempUsageDetail_20' ) end [2025-02-19 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:24:22] Production.INFO: ==8748== Releasing lock... [2025-02-19 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:24:22] Production.INFO: 59 MB #Memory Used# [2025-02-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:25:05 [end_date_ymd] => 2025-02-19 18:25:05 [RateCDR] => 1 ) [2025-02-19 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:25:05' and `end` < '2025-02-19 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:25:18] Production.INFO: count ==4066 [2025-02-19 18:25:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:25:05 - End Time 2025-02-19 18:25:05 [2025-02-19 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512211', 'tblTempUsageDetail_20' ) start [2025-02-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512211', 'tblTempUsageDetail_20' ) end [2025-02-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512211', 'tblTempVendorCDR_20' ) start [2025-02-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512211', 'tblTempVendorCDR_20' ) end [2025-02-19 18:25:19] Production.INFO: ProcessCDR(1,14512211,1,1,2) [2025-02-19 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512211', 'tblTempUsageDetail_20' ) start [2025-02-19 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512211', 'tblTempUsageDetail_20' ) end [2025-02-19 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:25:24] Production.INFO: ==8852== Releasing lock... [2025-02-19 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:25:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-19 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:26:04 [end_date_ymd] => 2025-02-19 18:26:04 [RateCDR] => 1 ) [2025-02-19 18:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:26:04' and `end` < '2025-02-19 18:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:26:17] Production.INFO: count ==4038 [2025-02-19 18:26:18] Production.ERROR: pbx CDR StartTime 2025-02-19 15:26:04 - End Time 2025-02-19 18:26:04 [2025-02-19 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512216', 'tblTempUsageDetail_20' ) start [2025-02-19 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512216', 'tblTempUsageDetail_20' ) end [2025-02-19 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512216', 'tblTempVendorCDR_20' ) start [2025-02-19 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512216', 'tblTempVendorCDR_20' ) end [2025-02-19 18:26:18] Production.INFO: ProcessCDR(1,14512216,1,1,2) [2025-02-19 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512216', 'tblTempUsageDetail_20' ) start [2025-02-19 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512216', 'tblTempUsageDetail_20' ) end [2025-02-19 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:26:22] Production.INFO: ==8958== Releasing lock... [2025-02-19 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:26:22] Production.INFO: 58.25 MB #Memory Used# [2025-02-19 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:27:05 [end_date_ymd] => 2025-02-19 18:27:05 [RateCDR] => 1 ) [2025-02-19 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:27:05' and `end` < '2025-02-19 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:27:18] Production.INFO: count ==3994 [2025-02-19 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:27:05 - End Time 2025-02-19 18:27:05 [2025-02-19 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512221', 'tblTempUsageDetail_20' ) start [2025-02-19 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512221', 'tblTempUsageDetail_20' ) end [2025-02-19 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512221', 'tblTempVendorCDR_20' ) start [2025-02-19 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512221', 'tblTempVendorCDR_20' ) end [2025-02-19 18:27:19] Production.INFO: ProcessCDR(1,14512221,1,1,2) [2025-02-19 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512221', 'tblTempUsageDetail_20' ) start [2025-02-19 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512221', 'tblTempUsageDetail_20' ) end [2025-02-19 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:27:24] Production.INFO: ==9105== Releasing lock... [2025-02-19 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:27:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-19 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:28:05 [end_date_ymd] => 2025-02-19 18:28:05 [RateCDR] => 1 ) [2025-02-19 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:28:05' and `end` < '2025-02-19 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:28:18] Production.INFO: count ==3963 [2025-02-19 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:28:05 - End Time 2025-02-19 18:28:05 [2025-02-19 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512226', 'tblTempUsageDetail_20' ) start [2025-02-19 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512226', 'tblTempUsageDetail_20' ) end [2025-02-19 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512226', 'tblTempVendorCDR_20' ) start [2025-02-19 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512226', 'tblTempVendorCDR_20' ) end [2025-02-19 18:28:19] Production.INFO: ProcessCDR(1,14512226,1,1,2) [2025-02-19 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512226', 'tblTempUsageDetail_20' ) start [2025-02-19 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512226', 'tblTempUsageDetail_20' ) end [2025-02-19 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:28:24] Production.INFO: ==9213== Releasing lock... [2025-02-19 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:28:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:29:05 [end_date_ymd] => 2025-02-19 18:29:05 [RateCDR] => 1 ) [2025-02-19 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:29:05' and `end` < '2025-02-19 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:29:17] Production.INFO: count ==3947 [2025-02-19 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:29:05 - End Time 2025-02-19 18:29:05 [2025-02-19 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512231', 'tblTempUsageDetail_20' ) start [2025-02-19 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512231', 'tblTempUsageDetail_20' ) end [2025-02-19 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512231', 'tblTempVendorCDR_20' ) start [2025-02-19 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512231', 'tblTempVendorCDR_20' ) end [2025-02-19 18:29:19] Production.INFO: ProcessCDR(1,14512231,1,1,2) [2025-02-19 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512231', 'tblTempUsageDetail_20' ) start [2025-02-19 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512231', 'tblTempUsageDetail_20' ) end [2025-02-19 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:29:22] Production.INFO: ==9312== Releasing lock... [2025-02-19 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:29:22] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:30:06 [end_date_ymd] => 2025-02-19 18:30:06 [RateCDR] => 1 ) [2025-02-19 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:30:06' and `end` < '2025-02-19 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:30:19] Production.INFO: count ==3927 [2025-02-19 18:30:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:30:06 - End Time 2025-02-19 18:30:06 [2025-02-19 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512237', 'tblTempUsageDetail_20' ) start [2025-02-19 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512237', 'tblTempUsageDetail_20' ) end [2025-02-19 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512237', 'tblTempVendorCDR_20' ) start [2025-02-19 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512237', 'tblTempVendorCDR_20' ) end [2025-02-19 18:30:20] Production.INFO: ProcessCDR(1,14512237,1,1,2) [2025-02-19 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512237', 'tblTempUsageDetail_20' ) start [2025-02-19 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512237', 'tblTempUsageDetail_20' ) end [2025-02-19 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:30:25] Production.INFO: ==9423== Releasing lock... [2025-02-19 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:30:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:31:04 [end_date_ymd] => 2025-02-19 18:31:04 [RateCDR] => 1 ) [2025-02-19 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:31:04' and `end` < '2025-02-19 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:31:17] Production.INFO: count ==3890 [2025-02-19 18:31:18] Production.ERROR: pbx CDR StartTime 2025-02-19 15:31:04 - End Time 2025-02-19 18:31:04 [2025-02-19 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512242', 'tblTempUsageDetail_20' ) start [2025-02-19 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512242', 'tblTempUsageDetail_20' ) end [2025-02-19 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512242', 'tblTempVendorCDR_20' ) start [2025-02-19 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512242', 'tblTempVendorCDR_20' ) end [2025-02-19 18:31:18] Production.INFO: ProcessCDR(1,14512242,1,1,2) [2025-02-19 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512242', 'tblTempUsageDetail_20' ) start [2025-02-19 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512242', 'tblTempUsageDetail_20' ) end [2025-02-19 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:31:23] Production.INFO: ==9539== Releasing lock... [2025-02-19 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:31:23] Production.INFO: 57 MB #Memory Used# [2025-02-19 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:32:06 [end_date_ymd] => 2025-02-19 18:32:06 [RateCDR] => 1 ) [2025-02-19 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:32:06' and `end` < '2025-02-19 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:32:18] Production.INFO: count ==3864 [2025-02-19 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:32:06 - End Time 2025-02-19 18:32:06 [2025-02-19 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512247', 'tblTempUsageDetail_20' ) start [2025-02-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512247', 'tblTempUsageDetail_20' ) end [2025-02-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512247', 'tblTempVendorCDR_20' ) start [2025-02-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512247', 'tblTempVendorCDR_20' ) end [2025-02-19 18:32:20] Production.INFO: ProcessCDR(1,14512247,1,1,2) [2025-02-19 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512247', 'tblTempUsageDetail_20' ) start [2025-02-19 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512247', 'tblTempUsageDetail_20' ) end [2025-02-19 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:32:23] Production.INFO: ==9651== Releasing lock... [2025-02-19 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:32:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:33:05 [end_date_ymd] => 2025-02-19 18:33:05 [RateCDR] => 1 ) [2025-02-19 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:33:05' and `end` < '2025-02-19 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:33:17] Production.INFO: count ==3813 [2025-02-19 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:33:05 - End Time 2025-02-19 18:33:05 [2025-02-19 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512252', 'tblTempUsageDetail_20' ) start [2025-02-19 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512252', 'tblTempUsageDetail_20' ) end [2025-02-19 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512252', 'tblTempVendorCDR_20' ) start [2025-02-19 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512252', 'tblTempVendorCDR_20' ) end [2025-02-19 18:33:19] Production.INFO: ProcessCDR(1,14512252,1,1,2) [2025-02-19 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512252', 'tblTempUsageDetail_20' ) start [2025-02-19 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512252', 'tblTempUsageDetail_20' ) end [2025-02-19 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:33:22] Production.INFO: ==9758== Releasing lock... [2025-02-19 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:33:22] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:34:05 [end_date_ymd] => 2025-02-19 18:34:05 [RateCDR] => 1 ) [2025-02-19 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:34:05' and `end` < '2025-02-19 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:34:18] Production.INFO: count ==3779 [2025-02-19 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:34:05 - End Time 2025-02-19 18:34:05 [2025-02-19 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512257', 'tblTempUsageDetail_20' ) start [2025-02-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512257', 'tblTempUsageDetail_20' ) end [2025-02-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512257', 'tblTempVendorCDR_20' ) start [2025-02-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512257', 'tblTempVendorCDR_20' ) end [2025-02-19 18:34:19] Production.INFO: ProcessCDR(1,14512257,1,1,2) [2025-02-19 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512257', 'tblTempUsageDetail_20' ) start [2025-02-19 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512257', 'tblTempUsageDetail_20' ) end [2025-02-19 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:34:24] Production.INFO: ==9864== Releasing lock... [2025-02-19 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:34:24] Production.INFO: 57 MB #Memory Used# [2025-02-19 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:35:05 [end_date_ymd] => 2025-02-19 18:35:05 [RateCDR] => 1 ) [2025-02-19 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:35:05' and `end` < '2025-02-19 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:35:17] Production.INFO: count ==3794 [2025-02-19 18:35:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:35:05 - End Time 2025-02-19 18:35:05 [2025-02-19 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512262', 'tblTempUsageDetail_20' ) start [2025-02-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512262', 'tblTempUsageDetail_20' ) end [2025-02-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512262', 'tblTempVendorCDR_20' ) start [2025-02-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512262', 'tblTempVendorCDR_20' ) end [2025-02-19 18:35:19] Production.INFO: ProcessCDR(1,14512262,1,1,2) [2025-02-19 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512262', 'tblTempUsageDetail_20' ) start [2025-02-19 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512262', 'tblTempUsageDetail_20' ) end [2025-02-19 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:35:23] Production.INFO: ==9963== Releasing lock... [2025-02-19 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:35:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:36:05 [end_date_ymd] => 2025-02-19 18:36:05 [RateCDR] => 1 ) [2025-02-19 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:36:05' and `end` < '2025-02-19 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:36:18] Production.INFO: count ==3794 [2025-02-19 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:36:05 - End Time 2025-02-19 18:36:05 [2025-02-19 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512267', 'tblTempUsageDetail_20' ) start [2025-02-19 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512267', 'tblTempUsageDetail_20' ) end [2025-02-19 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512267', 'tblTempVendorCDR_20' ) start [2025-02-19 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512267', 'tblTempVendorCDR_20' ) end [2025-02-19 18:36:19] Production.INFO: ProcessCDR(1,14512267,1,1,2) [2025-02-19 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512267', 'tblTempUsageDetail_20' ) start [2025-02-19 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512267', 'tblTempUsageDetail_20' ) end [2025-02-19 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:36:24] Production.INFO: ==10066== Releasing lock... [2025-02-19 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:36:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:37:05 [end_date_ymd] => 2025-02-19 18:37:05 [RateCDR] => 1 ) [2025-02-19 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:37:05' and `end` < '2025-02-19 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:37:17] Production.INFO: count ==3813 [2025-02-19 18:37:18] Production.ERROR: pbx CDR StartTime 2025-02-19 15:37:05 - End Time 2025-02-19 18:37:05 [2025-02-19 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512272', 'tblTempUsageDetail_20' ) start [2025-02-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512272', 'tblTempUsageDetail_20' ) end [2025-02-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512272', 'tblTempVendorCDR_20' ) start [2025-02-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512272', 'tblTempVendorCDR_20' ) end [2025-02-19 18:37:19] Production.INFO: ProcessCDR(1,14512272,1,1,2) [2025-02-19 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512272', 'tblTempUsageDetail_20' ) start [2025-02-19 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512272', 'tblTempUsageDetail_20' ) end [2025-02-19 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:37:24] Production.INFO: ==10162== Releasing lock... [2025-02-19 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:37:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:38:06 [end_date_ymd] => 2025-02-19 18:38:06 [RateCDR] => 1 ) [2025-02-19 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:38:06' and `end` < '2025-02-19 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:38:18] Production.INFO: count ==3810 [2025-02-19 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:38:06 - End Time 2025-02-19 18:38:06 [2025-02-19 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512277', 'tblTempUsageDetail_20' ) start [2025-02-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512277', 'tblTempUsageDetail_20' ) end [2025-02-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512277', 'tblTempVendorCDR_20' ) start [2025-02-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512277', 'tblTempVendorCDR_20' ) end [2025-02-19 18:38:20] Production.INFO: ProcessCDR(1,14512277,1,1,2) [2025-02-19 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512277', 'tblTempUsageDetail_20' ) start [2025-02-19 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512277', 'tblTempUsageDetail_20' ) end [2025-02-19 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:38:24] Production.INFO: ==10265== Releasing lock... [2025-02-19 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:38:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:39:05 [end_date_ymd] => 2025-02-19 18:39:05 [RateCDR] => 1 ) [2025-02-19 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:39:05' and `end` < '2025-02-19 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:39:17] Production.INFO: count ==3795 [2025-02-19 18:39:18] Production.ERROR: pbx CDR StartTime 2025-02-19 15:39:05 - End Time 2025-02-19 18:39:05 [2025-02-19 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512282', 'tblTempUsageDetail_20' ) start [2025-02-19 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512282', 'tblTempUsageDetail_20' ) end [2025-02-19 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512282', 'tblTempVendorCDR_20' ) start [2025-02-19 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512282', 'tblTempVendorCDR_20' ) end [2025-02-19 18:39:19] Production.INFO: ProcessCDR(1,14512282,1,1,2) [2025-02-19 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512282', 'tblTempUsageDetail_20' ) start [2025-02-19 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512282', 'tblTempUsageDetail_20' ) end [2025-02-19 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:39:24] Production.INFO: ==10367== Releasing lock... [2025-02-19 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:39:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:40:06 [end_date_ymd] => 2025-02-19 18:40:06 [RateCDR] => 1 ) [2025-02-19 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:40:06' and `end` < '2025-02-19 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:40:18] Production.INFO: count ==3768 [2025-02-19 18:40:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:40:06 - End Time 2025-02-19 18:40:06 [2025-02-19 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512288', 'tblTempUsageDetail_20' ) start [2025-02-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512288', 'tblTempUsageDetail_20' ) end [2025-02-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512288', 'tblTempVendorCDR_20' ) start [2025-02-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512288', 'tblTempVendorCDR_20' ) end [2025-02-19 18:40:20] Production.INFO: ProcessCDR(1,14512288,1,1,2) [2025-02-19 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512288', 'tblTempUsageDetail_20' ) start [2025-02-19 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512288', 'tblTempUsageDetail_20' ) end [2025-02-19 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:40:24] Production.INFO: ==10477== Releasing lock... [2025-02-19 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:40:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:41:05 [end_date_ymd] => 2025-02-19 18:41:05 [RateCDR] => 1 ) [2025-02-19 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:41:05' and `end` < '2025-02-19 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:41:18] Production.INFO: count ==3793 [2025-02-19 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:41:05 - End Time 2025-02-19 18:41:05 [2025-02-19 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512293', 'tblTempUsageDetail_20' ) start [2025-02-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512293', 'tblTempUsageDetail_20' ) end [2025-02-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512293', 'tblTempVendorCDR_20' ) start [2025-02-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512293', 'tblTempVendorCDR_20' ) end [2025-02-19 18:41:19] Production.INFO: ProcessCDR(1,14512293,1,1,2) [2025-02-19 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512293', 'tblTempUsageDetail_20' ) start [2025-02-19 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512293', 'tblTempUsageDetail_20' ) end [2025-02-19 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:41:24] Production.INFO: ==10584== Releasing lock... [2025-02-19 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:41:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:42:05 [end_date_ymd] => 2025-02-19 18:42:05 [RateCDR] => 1 ) [2025-02-19 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:42:05' and `end` < '2025-02-19 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:42:18] Production.INFO: count ==3772 [2025-02-19 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:42:05 - End Time 2025-02-19 18:42:05 [2025-02-19 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512298', 'tblTempUsageDetail_20' ) start [2025-02-19 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512298', 'tblTempUsageDetail_20' ) end [2025-02-19 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512298', 'tblTempVendorCDR_20' ) start [2025-02-19 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512298', 'tblTempVendorCDR_20' ) end [2025-02-19 18:42:19] Production.INFO: ProcessCDR(1,14512298,1,1,2) [2025-02-19 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512298', 'tblTempUsageDetail_20' ) start [2025-02-19 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512298', 'tblTempUsageDetail_20' ) end [2025-02-19 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:42:23] Production.INFO: ==10694== Releasing lock... [2025-02-19 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:42:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:43:06 [end_date_ymd] => 2025-02-19 18:43:06 [RateCDR] => 1 ) [2025-02-19 18:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:43:06' and `end` < '2025-02-19 18:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:43:18] Production.INFO: count ==3761 [2025-02-19 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:43:06 - End Time 2025-02-19 18:43:06 [2025-02-19 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512303', 'tblTempUsageDetail_20' ) start [2025-02-19 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512303', 'tblTempUsageDetail_20' ) end [2025-02-19 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512303', 'tblTempVendorCDR_20' ) start [2025-02-19 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512303', 'tblTempVendorCDR_20' ) end [2025-02-19 18:43:20] Production.INFO: ProcessCDR(1,14512303,1,1,2) [2025-02-19 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512303', 'tblTempUsageDetail_20' ) start [2025-02-19 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512303', 'tblTempUsageDetail_20' ) end [2025-02-19 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:43:25] Production.INFO: ==10846== Releasing lock... [2025-02-19 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:43:25] Production.INFO: 56 MB #Memory Used# [2025-02-19 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:44:05 [end_date_ymd] => 2025-02-19 18:44:05 [RateCDR] => 1 ) [2025-02-19 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:44:05' and `end` < '2025-02-19 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:44:18] Production.INFO: count ==3888 [2025-02-19 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:44:05 - End Time 2025-02-19 18:44:05 [2025-02-19 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512308', 'tblTempUsageDetail_20' ) start [2025-02-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512308', 'tblTempUsageDetail_20' ) end [2025-02-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512308', 'tblTempVendorCDR_20' ) start [2025-02-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512308', 'tblTempVendorCDR_20' ) end [2025-02-19 18:44:19] Production.INFO: ProcessCDR(1,14512308,1,1,2) [2025-02-19 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512308', 'tblTempUsageDetail_20' ) start [2025-02-19 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512308', 'tblTempUsageDetail_20' ) end [2025-02-19 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:44:24] Production.INFO: ==10957== Releasing lock... [2025-02-19 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:44:24] Production.INFO: 57 MB #Memory Used# [2025-02-19 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:45:05 [end_date_ymd] => 2025-02-19 18:45:05 [RateCDR] => 1 ) [2025-02-19 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:45:05' and `end` < '2025-02-19 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:45:18] Production.INFO: count ==3865 [2025-02-19 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:45:05 - End Time 2025-02-19 18:45:05 [2025-02-19 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512313', 'tblTempUsageDetail_20' ) start [2025-02-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512313', 'tblTempUsageDetail_20' ) end [2025-02-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512313', 'tblTempVendorCDR_20' ) start [2025-02-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512313', 'tblTempVendorCDR_20' ) end [2025-02-19 18:45:19] Production.INFO: ProcessCDR(1,14512313,1,1,2) [2025-02-19 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512313', 'tblTempUsageDetail_20' ) start [2025-02-19 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512313', 'tblTempUsageDetail_20' ) end [2025-02-19 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:45:23] Production.INFO: ==11070== Releasing lock... [2025-02-19 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:45:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:46:05 [end_date_ymd] => 2025-02-19 18:46:05 [RateCDR] => 1 ) [2025-02-19 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:46:05' and `end` < '2025-02-19 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:46:18] Production.INFO: count ==3885 [2025-02-19 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:46:05 - End Time 2025-02-19 18:46:05 [2025-02-19 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512318', 'tblTempUsageDetail_20' ) start [2025-02-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512318', 'tblTempUsageDetail_20' ) end [2025-02-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512318', 'tblTempVendorCDR_20' ) start [2025-02-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512318', 'tblTempVendorCDR_20' ) end [2025-02-19 18:46:19] Production.INFO: ProcessCDR(1,14512318,1,1,2) [2025-02-19 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512318', 'tblTempUsageDetail_20' ) start [2025-02-19 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512318', 'tblTempUsageDetail_20' ) end [2025-02-19 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:46:23] Production.INFO: ==11178== Releasing lock... [2025-02-19 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:46:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:47:05 [end_date_ymd] => 2025-02-19 18:47:05 [RateCDR] => 1 ) [2025-02-19 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:47:05' and `end` < '2025-02-19 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:47:18] Production.INFO: count ==3849 [2025-02-19 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:47:05 - End Time 2025-02-19 18:47:05 [2025-02-19 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512323', 'tblTempUsageDetail_20' ) start [2025-02-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512323', 'tblTempUsageDetail_20' ) end [2025-02-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512323', 'tblTempVendorCDR_20' ) start [2025-02-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512323', 'tblTempVendorCDR_20' ) end [2025-02-19 18:47:19] Production.INFO: ProcessCDR(1,14512323,1,1,2) [2025-02-19 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512323', 'tblTempUsageDetail_20' ) start [2025-02-19 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512323', 'tblTempUsageDetail_20' ) end [2025-02-19 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:47:23] Production.INFO: ==11287== Releasing lock... [2025-02-19 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:47:23] Production.INFO: 57 MB #Memory Used# [2025-02-19 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:48:05 [end_date_ymd] => 2025-02-19 18:48:05 [RateCDR] => 1 ) [2025-02-19 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:48:05' and `end` < '2025-02-19 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:48:17] Production.INFO: count ==3820 [2025-02-19 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:48:05 - End Time 2025-02-19 18:48:05 [2025-02-19 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512328', 'tblTempUsageDetail_20' ) start [2025-02-19 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512328', 'tblTempUsageDetail_20' ) end [2025-02-19 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512328', 'tblTempVendorCDR_20' ) start [2025-02-19 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512328', 'tblTempVendorCDR_20' ) end [2025-02-19 18:48:19] Production.INFO: ProcessCDR(1,14512328,1,1,2) [2025-02-19 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512328', 'tblTempUsageDetail_20' ) start [2025-02-19 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512328', 'tblTempUsageDetail_20' ) end [2025-02-19 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:48:24] Production.INFO: ==11397== Releasing lock... [2025-02-19 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:48:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:49:06 [end_date_ymd] => 2025-02-19 18:49:06 [RateCDR] => 1 ) [2025-02-19 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:49:06' and `end` < '2025-02-19 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:49:18] Production.INFO: count ==3805 [2025-02-19 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:49:06 - End Time 2025-02-19 18:49:06 [2025-02-19 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512333', 'tblTempUsageDetail_20' ) start [2025-02-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512333', 'tblTempUsageDetail_20' ) end [2025-02-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512333', 'tblTempVendorCDR_20' ) start [2025-02-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512333', 'tblTempVendorCDR_20' ) end [2025-02-19 18:49:20] Production.INFO: ProcessCDR(1,14512333,1,1,2) [2025-02-19 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512333', 'tblTempUsageDetail_20' ) start [2025-02-19 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512333', 'tblTempUsageDetail_20' ) end [2025-02-19 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:49:25] Production.INFO: ==11508== Releasing lock... [2025-02-19 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:49:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:50:06 [end_date_ymd] => 2025-02-19 18:50:06 [RateCDR] => 1 ) [2025-02-19 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:50:06' and `end` < '2025-02-19 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:50:19] Production.INFO: count ==3759 [2025-02-19 18:50:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:50:06 - End Time 2025-02-19 18:50:06 [2025-02-19 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512338', 'tblTempUsageDetail_20' ) start [2025-02-19 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512338', 'tblTempUsageDetail_20' ) end [2025-02-19 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512338', 'tblTempVendorCDR_20' ) start [2025-02-19 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512338', 'tblTempVendorCDR_20' ) end [2025-02-19 18:50:20] Production.INFO: ProcessCDR(1,14512338,1,1,2) [2025-02-19 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512338', 'tblTempUsageDetail_20' ) start [2025-02-19 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512338', 'tblTempUsageDetail_20' ) end [2025-02-19 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:50:25] Production.INFO: ==11616== Releasing lock... [2025-02-19 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:50:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:51:05 [end_date_ymd] => 2025-02-19 18:51:05 [RateCDR] => 1 ) [2025-02-19 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:51:05' and `end` < '2025-02-19 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:51:18] Production.INFO: count ==4478 [2025-02-19 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:51:05 - End Time 2025-02-19 18:51:05 [2025-02-19 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512344', 'tblTempUsageDetail_20' ) start [2025-02-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512344', 'tblTempUsageDetail_20' ) end [2025-02-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512344', 'tblTempVendorCDR_20' ) start [2025-02-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512344', 'tblTempVendorCDR_20' ) end [2025-02-19 18:51:20] Production.INFO: ProcessCDR(1,14512344,1,1,2) [2025-02-19 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512344', 'tblTempUsageDetail_20' ) start [2025-02-19 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512344', 'tblTempUsageDetail_20' ) end [2025-02-19 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:51:24] Production.INFO: ==11731== Releasing lock... [2025-02-19 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:51:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:52:05 [end_date_ymd] => 2025-02-19 18:52:05 [RateCDR] => 1 ) [2025-02-19 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:52:05' and `end` < '2025-02-19 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:52:17] Production.INFO: count ==4455 [2025-02-19 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:52:05 - End Time 2025-02-19 18:52:05 [2025-02-19 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512349', 'tblTempUsageDetail_20' ) start [2025-02-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512349', 'tblTempUsageDetail_20' ) end [2025-02-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512349', 'tblTempVendorCDR_20' ) start [2025-02-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512349', 'tblTempVendorCDR_20' ) end [2025-02-19 18:52:19] Production.INFO: ProcessCDR(1,14512349,1,1,2) [2025-02-19 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512349', 'tblTempUsageDetail_20' ) start [2025-02-19 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512349', 'tblTempUsageDetail_20' ) end [2025-02-19 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:52:25] Production.INFO: ==11843== Releasing lock... [2025-02-19 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:52:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:53:05 [end_date_ymd] => 2025-02-19 18:53:05 [RateCDR] => 1 ) [2025-02-19 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:53:05' and `end` < '2025-02-19 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:53:18] Production.INFO: count ==4411 [2025-02-19 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:53:05 - End Time 2025-02-19 18:53:05 [2025-02-19 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512354', 'tblTempUsageDetail_20' ) start [2025-02-19 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512354', 'tblTempUsageDetail_20' ) end [2025-02-19 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512354', 'tblTempVendorCDR_20' ) start [2025-02-19 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512354', 'tblTempVendorCDR_20' ) end [2025-02-19 18:53:20] Production.INFO: ProcessCDR(1,14512354,1,1,2) [2025-02-19 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512354', 'tblTempUsageDetail_20' ) start [2025-02-19 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512354', 'tblTempUsageDetail_20' ) end [2025-02-19 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:53:25] Production.INFO: ==11963== Releasing lock... [2025-02-19 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:53:25] Production.INFO: 61 MB #Memory Used# [2025-02-19 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:54:05 [end_date_ymd] => 2025-02-19 18:54:05 [RateCDR] => 1 ) [2025-02-19 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:54:05' and `end` < '2025-02-19 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:54:17] Production.INFO: count ==4442 [2025-02-19 18:54:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:54:05 - End Time 2025-02-19 18:54:05 [2025-02-19 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512359', 'tblTempUsageDetail_20' ) start [2025-02-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512359', 'tblTempUsageDetail_20' ) end [2025-02-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512359', 'tblTempVendorCDR_20' ) start [2025-02-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512359', 'tblTempVendorCDR_20' ) end [2025-02-19 18:54:19] Production.INFO: ProcessCDR(1,14512359,1,1,2) [2025-02-19 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512359', 'tblTempUsageDetail_20' ) start [2025-02-19 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512359', 'tblTempUsageDetail_20' ) end [2025-02-19 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:54:24] Production.INFO: ==12075== Releasing lock... [2025-02-19 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:54:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:55:05 [end_date_ymd] => 2025-02-19 18:55:05 [RateCDR] => 1 ) [2025-02-19 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:55:05' and `end` < '2025-02-19 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:55:17] Production.INFO: count ==4434 [2025-02-19 18:55:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:55:05 - End Time 2025-02-19 18:55:05 [2025-02-19 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512364', 'tblTempUsageDetail_20' ) start [2025-02-19 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512364', 'tblTempUsageDetail_20' ) end [2025-02-19 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512364', 'tblTempVendorCDR_20' ) start [2025-02-19 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512364', 'tblTempVendorCDR_20' ) end [2025-02-19 18:55:19] Production.INFO: ProcessCDR(1,14512364,1,1,2) [2025-02-19 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512364', 'tblTempUsageDetail_20' ) start [2025-02-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512364', 'tblTempUsageDetail_20' ) end [2025-02-19 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:55:24] Production.INFO: ==12184== Releasing lock... [2025-02-19 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:55:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:56:05 [end_date_ymd] => 2025-02-19 18:56:05 [RateCDR] => 1 ) [2025-02-19 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:56:05' and `end` < '2025-02-19 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:56:17] Production.INFO: count ==4567 [2025-02-19 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:56:05 - End Time 2025-02-19 18:56:05 [2025-02-19 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512369', 'tblTempUsageDetail_20' ) start [2025-02-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512369', 'tblTempUsageDetail_20' ) end [2025-02-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512369', 'tblTempVendorCDR_20' ) start [2025-02-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512369', 'tblTempVendorCDR_20' ) end [2025-02-19 18:56:19] Production.INFO: ProcessCDR(1,14512369,1,1,2) [2025-02-19 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512369', 'tblTempUsageDetail_20' ) start [2025-02-19 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512369', 'tblTempUsageDetail_20' ) end [2025-02-19 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:56:23] Production.INFO: ==12294== Releasing lock... [2025-02-19 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:56:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:57:05 [end_date_ymd] => 2025-02-19 18:57:05 [RateCDR] => 1 ) [2025-02-19 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:57:05' and `end` < '2025-02-19 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:57:18] Production.INFO: count ==4550 [2025-02-19 18:57:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:57:05 - End Time 2025-02-19 18:57:05 [2025-02-19 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512374', 'tblTempUsageDetail_20' ) start [2025-02-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512374', 'tblTempUsageDetail_20' ) end [2025-02-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512374', 'tblTempVendorCDR_20' ) start [2025-02-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512374', 'tblTempVendorCDR_20' ) end [2025-02-19 18:57:20] Production.INFO: ProcessCDR(1,14512374,1,1,2) [2025-02-19 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512374', 'tblTempUsageDetail_20' ) start [2025-02-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512374', 'tblTempUsageDetail_20' ) end [2025-02-19 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:57:23] Production.INFO: ==12400== Releasing lock... [2025-02-19 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:57:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:58:06 [end_date_ymd] => 2025-02-19 18:58:06 [RateCDR] => 1 ) [2025-02-19 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:58:06' and `end` < '2025-02-19 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:58:18] Production.INFO: count ==4526 [2025-02-19 18:58:20] Production.ERROR: pbx CDR StartTime 2025-02-19 15:58:06 - End Time 2025-02-19 18:58:06 [2025-02-19 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512379', 'tblTempUsageDetail_20' ) start [2025-02-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512379', 'tblTempUsageDetail_20' ) end [2025-02-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512379', 'tblTempVendorCDR_20' ) start [2025-02-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512379', 'tblTempVendorCDR_20' ) end [2025-02-19 18:58:20] Production.INFO: ProcessCDR(1,14512379,1,1,2) [2025-02-19 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512379', 'tblTempUsageDetail_20' ) start [2025-02-19 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512379', 'tblTempUsageDetail_20' ) end [2025-02-19 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:58:24] Production.INFO: ==12548== Releasing lock... [2025-02-19 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:58:24] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 15:59:05 [end_date_ymd] => 2025-02-19 18:59:05 [RateCDR] => 1 ) [2025-02-19 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 15:59:05' and `end` < '2025-02-19 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 18:59:17] Production.INFO: count ==4507 [2025-02-19 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-19 15:59:05 - End Time 2025-02-19 18:59:05 [2025-02-19 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512384', 'tblTempUsageDetail_20' ) start [2025-02-19 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512384', 'tblTempUsageDetail_20' ) end [2025-02-19 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512384', 'tblTempVendorCDR_20' ) start [2025-02-19 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512384', 'tblTempVendorCDR_20' ) end [2025-02-19 18:59:19] Production.INFO: ProcessCDR(1,14512384,1,1,2) [2025-02-19 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512384', 'tblTempUsageDetail_20' ) start [2025-02-19 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512384', 'tblTempUsageDetail_20' ) end [2025-02-19 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 18:59:24] Production.INFO: ==12662== Releasing lock... [2025-02-19 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 18:59:24] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:00:07 [end_date_ymd] => 2025-02-19 19:00:07 [RateCDR] => 1 ) [2025-02-19 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:00:07' and `end` < '2025-02-19 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:00:19] Production.INFO: count ==4469 [2025-02-19 19:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 16:00:07 - End Time 2025-02-19 19:00:07 [2025-02-19 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512389', 'tblTempUsageDetail_20' ) start [2025-02-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512389', 'tblTempUsageDetail_20' ) end [2025-02-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512389', 'tblTempVendorCDR_20' ) start [2025-02-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512389', 'tblTempVendorCDR_20' ) end [2025-02-19 19:00:21] Production.INFO: ProcessCDR(1,14512389,1,1,2) [2025-02-19 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512389', 'tblTempUsageDetail_20' ) start [2025-02-19 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512389', 'tblTempUsageDetail_20' ) end [2025-02-19 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:00:25] Production.INFO: ==12779== Releasing lock... [2025-02-19 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:00:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:01:05 [end_date_ymd] => 2025-02-19 19:01:05 [RateCDR] => 1 ) [2025-02-19 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:01:05' and `end` < '2025-02-19 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:01:18] Production.INFO: count ==4442 [2025-02-19 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:01:05 - End Time 2025-02-19 19:01:05 [2025-02-19 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512395', 'tblTempUsageDetail_20' ) start [2025-02-19 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512395', 'tblTempUsageDetail_20' ) end [2025-02-19 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512395', 'tblTempVendorCDR_20' ) start [2025-02-19 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512395', 'tblTempVendorCDR_20' ) end [2025-02-19 19:01:20] Production.INFO: ProcessCDR(1,14512395,1,1,2) [2025-02-19 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512395', 'tblTempUsageDetail_20' ) start [2025-02-19 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512395', 'tblTempUsageDetail_20' ) end [2025-02-19 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:01:25] Production.INFO: ==12904== Releasing lock... [2025-02-19 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:01:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:02:06 [end_date_ymd] => 2025-02-19 19:02:06 [RateCDR] => 1 ) [2025-02-19 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:02:06' and `end` < '2025-02-19 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:02:19] Production.INFO: count ==4459 [2025-02-19 19:02:21] Production.ERROR: pbx CDR StartTime 2025-02-19 16:02:06 - End Time 2025-02-19 19:02:06 [2025-02-19 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512400', 'tblTempUsageDetail_20' ) start [2025-02-19 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512400', 'tblTempUsageDetail_20' ) end [2025-02-19 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512400', 'tblTempVendorCDR_20' ) start [2025-02-19 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512400', 'tblTempVendorCDR_20' ) end [2025-02-19 19:02:21] Production.INFO: ProcessCDR(1,14512400,1,1,2) [2025-02-19 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512400', 'tblTempUsageDetail_20' ) start [2025-02-19 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512400', 'tblTempUsageDetail_20' ) end [2025-02-19 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:02:25] Production.INFO: ==13093== Releasing lock... [2025-02-19 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:02:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:03:05 [end_date_ymd] => 2025-02-19 19:03:05 [RateCDR] => 1 ) [2025-02-19 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:03:05' and `end` < '2025-02-19 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:03:18] Production.INFO: count ==4436 [2025-02-19 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:03:05 - End Time 2025-02-19 19:03:05 [2025-02-19 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512405', 'tblTempUsageDetail_20' ) start [2025-02-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512405', 'tblTempUsageDetail_20' ) end [2025-02-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512405', 'tblTempVendorCDR_20' ) start [2025-02-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512405', 'tblTempVendorCDR_20' ) end [2025-02-19 19:03:20] Production.INFO: ProcessCDR(1,14512405,1,1,2) [2025-02-19 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512405', 'tblTempUsageDetail_20' ) start [2025-02-19 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512405', 'tblTempUsageDetail_20' ) end [2025-02-19 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:03:25] Production.INFO: ==13205== Releasing lock... [2025-02-19 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:03:25] Production.INFO: 61 MB #Memory Used# [2025-02-19 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:04:06 [end_date_ymd] => 2025-02-19 19:04:06 [RateCDR] => 1 ) [2025-02-19 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:04:06' and `end` < '2025-02-19 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:04:18] Production.INFO: count ==4453 [2025-02-19 19:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:04:06 - End Time 2025-02-19 19:04:06 [2025-02-19 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512410', 'tblTempUsageDetail_20' ) start [2025-02-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512410', 'tblTempUsageDetail_20' ) end [2025-02-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512410', 'tblTempVendorCDR_20' ) start [2025-02-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512410', 'tblTempVendorCDR_20' ) end [2025-02-19 19:04:20] Production.INFO: ProcessCDR(1,14512410,1,1,2) [2025-02-19 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512410', 'tblTempUsageDetail_20' ) start [2025-02-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512410', 'tblTempUsageDetail_20' ) end [2025-02-19 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:04:24] Production.INFO: ==13322== Releasing lock... [2025-02-19 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:04:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:05:05 [end_date_ymd] => 2025-02-19 19:05:05 [RateCDR] => 1 ) [2025-02-19 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:05:05' and `end` < '2025-02-19 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:05:18] Production.INFO: count ==4439 [2025-02-19 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:05:05 - End Time 2025-02-19 19:05:05 [2025-02-19 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512415', 'tblTempUsageDetail_20' ) start [2025-02-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512415', 'tblTempUsageDetail_20' ) end [2025-02-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512415', 'tblTempVendorCDR_20' ) start [2025-02-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512415', 'tblTempVendorCDR_20' ) end [2025-02-19 19:05:20] Production.INFO: ProcessCDR(1,14512415,1,1,2) [2025-02-19 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512415', 'tblTempUsageDetail_20' ) start [2025-02-19 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512415', 'tblTempUsageDetail_20' ) end [2025-02-19 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:05:25] Production.INFO: ==13516== Releasing lock... [2025-02-19 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:05:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:06:06 [end_date_ymd] => 2025-02-19 19:06:06 [RateCDR] => 1 ) [2025-02-19 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:06:06' and `end` < '2025-02-19 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:06:19] Production.INFO: count ==4425 [2025-02-19 19:06:21] Production.ERROR: pbx CDR StartTime 2025-02-19 16:06:06 - End Time 2025-02-19 19:06:06 [2025-02-19 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512420', 'tblTempUsageDetail_20' ) start [2025-02-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512420', 'tblTempUsageDetail_20' ) end [2025-02-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512420', 'tblTempVendorCDR_20' ) start [2025-02-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512420', 'tblTempVendorCDR_20' ) end [2025-02-19 19:06:21] Production.INFO: ProcessCDR(1,14512420,1,1,2) [2025-02-19 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512420', 'tblTempUsageDetail_20' ) start [2025-02-19 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512420', 'tblTempUsageDetail_20' ) end [2025-02-19 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:06:24] Production.INFO: ==13628== Releasing lock... [2025-02-19 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:06:24] Production.INFO: 61 MB #Memory Used# [2025-02-19 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:07:05 [end_date_ymd] => 2025-02-19 19:07:05 [RateCDR] => 1 ) [2025-02-19 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:07:05' and `end` < '2025-02-19 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:07:17] Production.INFO: count ==4407 [2025-02-19 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:07:05 - End Time 2025-02-19 19:07:05 [2025-02-19 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512425', 'tblTempUsageDetail_20' ) start [2025-02-19 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512425', 'tblTempUsageDetail_20' ) end [2025-02-19 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512425', 'tblTempVendorCDR_20' ) start [2025-02-19 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512425', 'tblTempVendorCDR_20' ) end [2025-02-19 19:07:19] Production.INFO: ProcessCDR(1,14512425,1,1,2) [2025-02-19 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512425', 'tblTempUsageDetail_20' ) start [2025-02-19 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512425', 'tblTempUsageDetail_20' ) end [2025-02-19 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:07:24] Production.INFO: ==13737== Releasing lock... [2025-02-19 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:07:24] Production.INFO: 61 MB #Memory Used# [2025-02-19 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:08:06 [end_date_ymd] => 2025-02-19 19:08:06 [RateCDR] => 1 ) [2025-02-19 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:08:06' and `end` < '2025-02-19 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:08:18] Production.INFO: count ==4398 [2025-02-19 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:08:06 - End Time 2025-02-19 19:08:06 [2025-02-19 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512430', 'tblTempUsageDetail_20' ) start [2025-02-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512430', 'tblTempUsageDetail_20' ) end [2025-02-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512430', 'tblTempVendorCDR_20' ) start [2025-02-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512430', 'tblTempVendorCDR_20' ) end [2025-02-19 19:08:21] Production.INFO: ProcessCDR(1,14512430,1,1,2) [2025-02-19 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512430', 'tblTempUsageDetail_20' ) start [2025-02-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512430', 'tblTempUsageDetail_20' ) end [2025-02-19 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:08:24] Production.INFO: ==13853== Releasing lock... [2025-02-19 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:08:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:09:05 [end_date_ymd] => 2025-02-19 19:09:05 [RateCDR] => 1 ) [2025-02-19 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:09:05' and `end` < '2025-02-19 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:09:18] Production.INFO: count ==4358 [2025-02-19 19:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:09:05 - End Time 2025-02-19 19:09:05 [2025-02-19 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512435', 'tblTempUsageDetail_20' ) start [2025-02-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512435', 'tblTempUsageDetail_20' ) end [2025-02-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512435', 'tblTempVendorCDR_20' ) start [2025-02-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512435', 'tblTempVendorCDR_20' ) end [2025-02-19 19:09:20] Production.INFO: ProcessCDR(1,14512435,1,1,2) [2025-02-19 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512435', 'tblTempUsageDetail_20' ) start [2025-02-19 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512435', 'tblTempUsageDetail_20' ) end [2025-02-19 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:09:26] Production.INFO: ==14044== Releasing lock... [2025-02-19 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:09:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:10:06 [end_date_ymd] => 2025-02-19 19:10:06 [RateCDR] => 1 ) [2025-02-19 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:10:06' and `end` < '2025-02-19 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:10:19] Production.INFO: count ==4332 [2025-02-19 19:10:21] Production.ERROR: pbx CDR StartTime 2025-02-19 16:10:06 - End Time 2025-02-19 19:10:06 [2025-02-19 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512441', 'tblTempUsageDetail_20' ) start [2025-02-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512441', 'tblTempUsageDetail_20' ) end [2025-02-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512441', 'tblTempVendorCDR_20' ) start [2025-02-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512441', 'tblTempVendorCDR_20' ) end [2025-02-19 19:10:21] Production.INFO: ProcessCDR(1,14512441,1,1,2) [2025-02-19 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512441', 'tblTempUsageDetail_20' ) start [2025-02-19 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512441', 'tblTempUsageDetail_20' ) end [2025-02-19 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:10:27] Production.INFO: ==14163== Releasing lock... [2025-02-19 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:10:27] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:11:05 [end_date_ymd] => 2025-02-19 19:11:05 [RateCDR] => 1 ) [2025-02-19 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:11:05' and `end` < '2025-02-19 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:11:18] Production.INFO: count ==4275 [2025-02-19 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:11:05 - End Time 2025-02-19 19:11:05 [2025-02-19 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512446', 'tblTempUsageDetail_20' ) start [2025-02-19 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512446', 'tblTempUsageDetail_20' ) end [2025-02-19 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512446', 'tblTempVendorCDR_20' ) start [2025-02-19 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512446', 'tblTempVendorCDR_20' ) end [2025-02-19 19:11:20] Production.INFO: ProcessCDR(1,14512446,1,1,2) [2025-02-19 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512446', 'tblTempUsageDetail_20' ) start [2025-02-19 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512446', 'tblTempUsageDetail_20' ) end [2025-02-19 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:11:25] Production.INFO: ==14273== Releasing lock... [2025-02-19 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:11:25] Production.INFO: 60 MB #Memory Used# [2025-02-19 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:12:05 [end_date_ymd] => 2025-02-19 19:12:05 [RateCDR] => 1 ) [2025-02-19 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:12:05' and `end` < '2025-02-19 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:12:17] Production.INFO: count ==4257 [2025-02-19 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:12:05 - End Time 2025-02-19 19:12:05 [2025-02-19 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512451', 'tblTempUsageDetail_20' ) start [2025-02-19 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512451', 'tblTempUsageDetail_20' ) end [2025-02-19 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512451', 'tblTempVendorCDR_20' ) start [2025-02-19 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512451', 'tblTempVendorCDR_20' ) end [2025-02-19 19:12:19] Production.INFO: ProcessCDR(1,14512451,1,1,2) [2025-02-19 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512451', 'tblTempUsageDetail_20' ) start [2025-02-19 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512451', 'tblTempUsageDetail_20' ) end [2025-02-19 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:12:24] Production.INFO: ==14476== Releasing lock... [2025-02-19 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:12:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:13:05 [end_date_ymd] => 2025-02-19 19:13:05 [RateCDR] => 1 ) [2025-02-19 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:13:05' and `end` < '2025-02-19 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:13:17] Production.INFO: count ==4253 [2025-02-19 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:13:05 - End Time 2025-02-19 19:13:05 [2025-02-19 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512456', 'tblTempUsageDetail_20' ) start [2025-02-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512456', 'tblTempUsageDetail_20' ) end [2025-02-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512456', 'tblTempVendorCDR_20' ) start [2025-02-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512456', 'tblTempVendorCDR_20' ) end [2025-02-19 19:13:19] Production.INFO: ProcessCDR(1,14512456,1,1,2) [2025-02-19 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512456', 'tblTempUsageDetail_20' ) start [2025-02-19 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512456', 'tblTempUsageDetail_20' ) end [2025-02-19 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:13:24] Production.INFO: ==14600== Releasing lock... [2025-02-19 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:13:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:14:06 [end_date_ymd] => 2025-02-19 19:14:06 [RateCDR] => 1 ) [2025-02-19 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:14:06' and `end` < '2025-02-19 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:14:18] Production.INFO: count ==4224 [2025-02-19 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:14:06 - End Time 2025-02-19 19:14:06 [2025-02-19 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512461', 'tblTempUsageDetail_20' ) start [2025-02-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512461', 'tblTempUsageDetail_20' ) end [2025-02-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512461', 'tblTempVendorCDR_20' ) start [2025-02-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512461', 'tblTempVendorCDR_20' ) end [2025-02-19 19:14:20] Production.INFO: ProcessCDR(1,14512461,1,1,2) [2025-02-19 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512461', 'tblTempUsageDetail_20' ) start [2025-02-19 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512461', 'tblTempUsageDetail_20' ) end [2025-02-19 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:14:25] Production.INFO: ==14768== Releasing lock... [2025-02-19 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:14:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-19 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:15:05 [end_date_ymd] => 2025-02-19 19:15:05 [RateCDR] => 1 ) [2025-02-19 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:15:05' and `end` < '2025-02-19 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:15:17] Production.INFO: count ==4223 [2025-02-19 19:15:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:15:05 - End Time 2025-02-19 19:15:05 [2025-02-19 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512466', 'tblTempUsageDetail_20' ) start [2025-02-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512466', 'tblTempUsageDetail_20' ) end [2025-02-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512466', 'tblTempVendorCDR_20' ) start [2025-02-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512466', 'tblTempVendorCDR_20' ) end [2025-02-19 19:15:19] Production.INFO: ProcessCDR(1,14512466,1,1,2) [2025-02-19 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512466', 'tblTempUsageDetail_20' ) start [2025-02-19 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512466', 'tblTempUsageDetail_20' ) end [2025-02-19 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:15:24] Production.INFO: ==14889== Releasing lock... [2025-02-19 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:15:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-19 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:16:05 [end_date_ymd] => 2025-02-19 19:16:05 [RateCDR] => 1 ) [2025-02-19 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:16:05' and `end` < '2025-02-19 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:16:18] Production.INFO: count ==4208 [2025-02-19 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:16:05 - End Time 2025-02-19 19:16:05 [2025-02-19 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512471', 'tblTempUsageDetail_20' ) start [2025-02-19 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512471', 'tblTempUsageDetail_20' ) end [2025-02-19 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512471', 'tblTempVendorCDR_20' ) start [2025-02-19 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512471', 'tblTempVendorCDR_20' ) end [2025-02-19 19:16:19] Production.INFO: ProcessCDR(1,14512471,1,1,2) [2025-02-19 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512471', 'tblTempUsageDetail_20' ) start [2025-02-19 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512471', 'tblTempUsageDetail_20' ) end [2025-02-19 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:16:24] Production.INFO: ==15082== Releasing lock... [2025-02-19 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:16:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-19 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:17:05 [end_date_ymd] => 2025-02-19 19:17:05 [RateCDR] => 1 ) [2025-02-19 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:17:05' and `end` < '2025-02-19 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:17:17] Production.INFO: count ==4201 [2025-02-19 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:17:05 - End Time 2025-02-19 19:17:05 [2025-02-19 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512476', 'tblTempUsageDetail_20' ) start [2025-02-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512476', 'tblTempUsageDetail_20' ) end [2025-02-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512476', 'tblTempVendorCDR_20' ) start [2025-02-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512476', 'tblTempVendorCDR_20' ) end [2025-02-19 19:17:20] Production.INFO: ProcessCDR(1,14512476,1,1,2) [2025-02-19 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512476', 'tblTempUsageDetail_20' ) start [2025-02-19 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512476', 'tblTempUsageDetail_20' ) end [2025-02-19 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:17:23] Production.INFO: ==15202== Releasing lock... [2025-02-19 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:17:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:18:05 [end_date_ymd] => 2025-02-19 19:18:05 [RateCDR] => 1 ) [2025-02-19 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:18:05' and `end` < '2025-02-19 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:18:17] Production.INFO: count ==4192 [2025-02-19 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:18:05 - End Time 2025-02-19 19:18:05 [2025-02-19 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512481', 'tblTempUsageDetail_20' ) start [2025-02-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512481', 'tblTempUsageDetail_20' ) end [2025-02-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512481', 'tblTempVendorCDR_20' ) start [2025-02-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512481', 'tblTempVendorCDR_20' ) end [2025-02-19 19:18:20] Production.INFO: ProcessCDR(1,14512481,1,1,2) [2025-02-19 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512481', 'tblTempUsageDetail_20' ) start [2025-02-19 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512481', 'tblTempUsageDetail_20' ) end [2025-02-19 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:18:25] Production.INFO: ==15321== Releasing lock... [2025-02-19 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:18:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:19:05 [end_date_ymd] => 2025-02-19 19:19:05 [RateCDR] => 1 ) [2025-02-19 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:19:05' and `end` < '2025-02-19 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:19:17] Production.INFO: count ==4180 [2025-02-19 19:19:18] Production.ERROR: pbx CDR StartTime 2025-02-19 16:19:05 - End Time 2025-02-19 19:19:05 [2025-02-19 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512486', 'tblTempUsageDetail_20' ) start [2025-02-19 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512486', 'tblTempUsageDetail_20' ) end [2025-02-19 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512486', 'tblTempVendorCDR_20' ) start [2025-02-19 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512486', 'tblTempVendorCDR_20' ) end [2025-02-19 19:19:19] Production.INFO: ProcessCDR(1,14512486,1,1,2) [2025-02-19 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512486', 'tblTempUsageDetail_20' ) start [2025-02-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512486', 'tblTempUsageDetail_20' ) end [2025-02-19 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:19:23] Production.INFO: ==15437== Releasing lock... [2025-02-19 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:19:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:20:05 [end_date_ymd] => 2025-02-19 19:20:05 [RateCDR] => 1 ) [2025-02-19 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:20:05' and `end` < '2025-02-19 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:20:18] Production.INFO: count ==4172 [2025-02-19 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:20:05 - End Time 2025-02-19 19:20:05 [2025-02-19 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512492', 'tblTempUsageDetail_20' ) start [2025-02-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512492', 'tblTempUsageDetail_20' ) end [2025-02-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512492', 'tblTempVendorCDR_20' ) start [2025-02-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512492', 'tblTempVendorCDR_20' ) end [2025-02-19 19:20:20] Production.INFO: ProcessCDR(1,14512492,1,1,2) [2025-02-19 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512492', 'tblTempUsageDetail_20' ) start [2025-02-19 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512492', 'tblTempUsageDetail_20' ) end [2025-02-19 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:20:23] Production.INFO: ==15553== Releasing lock... [2025-02-19 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:20:23] Production.INFO: 59.5 MB #Memory Used# [2025-02-19 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:21:06 [end_date_ymd] => 2025-02-19 19:21:06 [RateCDR] => 1 ) [2025-02-19 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:21:06' and `end` < '2025-02-19 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:21:18] Production.INFO: count ==4139 [2025-02-19 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:21:06 - End Time 2025-02-19 19:21:06 [2025-02-19 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512497', 'tblTempUsageDetail_20' ) start [2025-02-19 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512497', 'tblTempUsageDetail_20' ) end [2025-02-19 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512497', 'tblTempVendorCDR_20' ) start [2025-02-19 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512497', 'tblTempVendorCDR_20' ) end [2025-02-19 19:21:20] Production.INFO: ProcessCDR(1,14512497,1,1,2) [2025-02-19 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512497', 'tblTempUsageDetail_20' ) start [2025-02-19 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512497', 'tblTempUsageDetail_20' ) end [2025-02-19 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:21:25] Production.INFO: ==15673== Releasing lock... [2025-02-19 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:21:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:22:05 [end_date_ymd] => 2025-02-19 19:22:05 [RateCDR] => 1 ) [2025-02-19 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:22:05' and `end` < '2025-02-19 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:22:17] Production.INFO: count ==4131 [2025-02-19 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:22:05 - End Time 2025-02-19 19:22:05 [2025-02-19 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512502', 'tblTempUsageDetail_20' ) start [2025-02-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512502', 'tblTempUsageDetail_20' ) end [2025-02-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512502', 'tblTempVendorCDR_20' ) start [2025-02-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512502', 'tblTempVendorCDR_20' ) end [2025-02-19 19:22:19] Production.INFO: ProcessCDR(1,14512502,1,1,2) [2025-02-19 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512502', 'tblTempUsageDetail_20' ) start [2025-02-19 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512502', 'tblTempUsageDetail_20' ) end [2025-02-19 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:22:24] Production.INFO: ==15787== Releasing lock... [2025-02-19 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:22:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:23:05 [end_date_ymd] => 2025-02-19 19:23:05 [RateCDR] => 1 ) [2025-02-19 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:23:05' and `end` < '2025-02-19 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:23:18] Production.INFO: count ==4131 [2025-02-19 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:23:05 - End Time 2025-02-19 19:23:05 [2025-02-19 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512507', 'tblTempUsageDetail_20' ) start [2025-02-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512507', 'tblTempUsageDetail_20' ) end [2025-02-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512507', 'tblTempVendorCDR_20' ) start [2025-02-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512507', 'tblTempVendorCDR_20' ) end [2025-02-19 19:23:20] Production.INFO: ProcessCDR(1,14512507,1,1,2) [2025-02-19 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512507', 'tblTempUsageDetail_20' ) start [2025-02-19 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512507', 'tblTempUsageDetail_20' ) end [2025-02-19 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:23:25] Production.INFO: ==15905== Releasing lock... [2025-02-19 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:23:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:24:05 [end_date_ymd] => 2025-02-19 19:24:05 [RateCDR] => 1 ) [2025-02-19 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:24:05' and `end` < '2025-02-19 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:24:17] Production.INFO: count ==4126 [2025-02-19 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:24:05 - End Time 2025-02-19 19:24:05 [2025-02-19 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512512', 'tblTempUsageDetail_20' ) start [2025-02-19 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512512', 'tblTempUsageDetail_20' ) end [2025-02-19 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512512', 'tblTempVendorCDR_20' ) start [2025-02-19 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512512', 'tblTempVendorCDR_20' ) end [2025-02-19 19:24:19] Production.INFO: ProcessCDR(1,14512512,1,1,2) [2025-02-19 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512512', 'tblTempUsageDetail_20' ) start [2025-02-19 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512512', 'tblTempUsageDetail_20' ) end [2025-02-19 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:24:24] Production.INFO: ==16014== Releasing lock... [2025-02-19 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:24:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:25:05 [end_date_ymd] => 2025-02-19 19:25:05 [RateCDR] => 1 ) [2025-02-19 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:25:05' and `end` < '2025-02-19 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:25:18] Production.INFO: count ==4128 [2025-02-19 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:25:05 - End Time 2025-02-19 19:25:05 [2025-02-19 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512517', 'tblTempUsageDetail_20' ) start [2025-02-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512517', 'tblTempUsageDetail_20' ) end [2025-02-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512517', 'tblTempVendorCDR_20' ) start [2025-02-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512517', 'tblTempVendorCDR_20' ) end [2025-02-19 19:25:20] Production.INFO: ProcessCDR(1,14512517,1,1,2) [2025-02-19 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512517', 'tblTempUsageDetail_20' ) start [2025-02-19 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512517', 'tblTempUsageDetail_20' ) end [2025-02-19 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:25:25] Production.INFO: ==16127== Releasing lock... [2025-02-19 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:25:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:26:05 [end_date_ymd] => 2025-02-19 19:26:05 [RateCDR] => 1 ) [2025-02-19 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:26:05' and `end` < '2025-02-19 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:26:17] Production.INFO: count ==4123 [2025-02-19 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:26:05 - End Time 2025-02-19 19:26:05 [2025-02-19 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512522', 'tblTempUsageDetail_20' ) start [2025-02-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512522', 'tblTempUsageDetail_20' ) end [2025-02-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512522', 'tblTempVendorCDR_20' ) start [2025-02-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512522', 'tblTempVendorCDR_20' ) end [2025-02-19 19:26:19] Production.INFO: ProcessCDR(1,14512522,1,1,2) [2025-02-19 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512522', 'tblTempUsageDetail_20' ) start [2025-02-19 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512522', 'tblTempUsageDetail_20' ) end [2025-02-19 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:26:24] Production.INFO: ==16236== Releasing lock... [2025-02-19 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:26:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:27:05 [end_date_ymd] => 2025-02-19 19:27:05 [RateCDR] => 1 ) [2025-02-19 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:27:05' and `end` < '2025-02-19 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:27:18] Production.INFO: count ==4125 [2025-02-19 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:27:05 - End Time 2025-02-19 19:27:05 [2025-02-19 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512527', 'tblTempUsageDetail_20' ) start [2025-02-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512527', 'tblTempUsageDetail_20' ) end [2025-02-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512527', 'tblTempVendorCDR_20' ) start [2025-02-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512527', 'tblTempVendorCDR_20' ) end [2025-02-19 19:27:19] Production.INFO: ProcessCDR(1,14512527,1,1,2) [2025-02-19 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512527', 'tblTempUsageDetail_20' ) start [2025-02-19 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512527', 'tblTempUsageDetail_20' ) end [2025-02-19 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:27:24] Production.INFO: ==16343== Releasing lock... [2025-02-19 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:27:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-19 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:28:05 [end_date_ymd] => 2025-02-19 19:28:05 [RateCDR] => 1 ) [2025-02-19 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:28:05' and `end` < '2025-02-19 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:28:17] Production.INFO: count ==4093 [2025-02-19 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:28:05 - End Time 2025-02-19 19:28:05 [2025-02-19 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512532', 'tblTempUsageDetail_20' ) start [2025-02-19 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512532', 'tblTempUsageDetail_20' ) end [2025-02-19 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512532', 'tblTempVendorCDR_20' ) start [2025-02-19 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512532', 'tblTempVendorCDR_20' ) end [2025-02-19 19:28:19] Production.INFO: ProcessCDR(1,14512532,1,1,2) [2025-02-19 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512532', 'tblTempUsageDetail_20' ) start [2025-02-19 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512532', 'tblTempUsageDetail_20' ) end [2025-02-19 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:28:24] Production.INFO: ==16451== Releasing lock... [2025-02-19 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:28:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-19 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:29:05 [end_date_ymd] => 2025-02-19 19:29:05 [RateCDR] => 1 ) [2025-02-19 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:29:05' and `end` < '2025-02-19 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:29:17] Production.INFO: count ==4087 [2025-02-19 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:29:05 - End Time 2025-02-19 19:29:05 [2025-02-19 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512537', 'tblTempUsageDetail_20' ) start [2025-02-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512537', 'tblTempUsageDetail_20' ) end [2025-02-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512537', 'tblTempVendorCDR_20' ) start [2025-02-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512537', 'tblTempVendorCDR_20' ) end [2025-02-19 19:29:19] Production.INFO: ProcessCDR(1,14512537,1,1,2) [2025-02-19 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512537', 'tblTempUsageDetail_20' ) start [2025-02-19 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512537', 'tblTempUsageDetail_20' ) end [2025-02-19 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:29:24] Production.INFO: ==16601== Releasing lock... [2025-02-19 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:29:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-19 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:30:06 [end_date_ymd] => 2025-02-19 19:30:06 [RateCDR] => 1 ) [2025-02-19 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:30:06' and `end` < '2025-02-19 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:30:18] Production.INFO: count ==4074 [2025-02-19 19:30:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:30:06 - End Time 2025-02-19 19:30:06 [2025-02-19 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512543', 'tblTempUsageDetail_20' ) start [2025-02-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512543', 'tblTempUsageDetail_20' ) end [2025-02-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512543', 'tblTempVendorCDR_20' ) start [2025-02-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512543', 'tblTempVendorCDR_20' ) end [2025-02-19 19:30:20] Production.INFO: ProcessCDR(1,14512543,1,1,2) [2025-02-19 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512543', 'tblTempUsageDetail_20' ) start [2025-02-19 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512543', 'tblTempUsageDetail_20' ) end [2025-02-19 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:30:24] Production.INFO: ==16713== Releasing lock... [2025-02-19 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:30:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-19 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:31:05 [end_date_ymd] => 2025-02-19 19:31:05 [RateCDR] => 1 ) [2025-02-19 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:31:05' and `end` < '2025-02-19 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:31:18] Production.INFO: count ==3986 [2025-02-19 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:31:05 - End Time 2025-02-19 19:31:05 [2025-02-19 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512548', 'tblTempUsageDetail_20' ) start [2025-02-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512548', 'tblTempUsageDetail_20' ) end [2025-02-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512548', 'tblTempVendorCDR_20' ) start [2025-02-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512548', 'tblTempVendorCDR_20' ) end [2025-02-19 19:31:19] Production.INFO: ProcessCDR(1,14512548,1,1,2) [2025-02-19 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512548', 'tblTempUsageDetail_20' ) start [2025-02-19 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512548', 'tblTempUsageDetail_20' ) end [2025-02-19 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:31:24] Production.INFO: ==16826== Releasing lock... [2025-02-19 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:31:24] Production.INFO: 58 MB #Memory Used# [2025-02-19 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:32:05 [end_date_ymd] => 2025-02-19 19:32:05 [RateCDR] => 1 ) [2025-02-19 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:32:05' and `end` < '2025-02-19 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:32:18] Production.INFO: count ==3967 [2025-02-19 19:32:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:32:05 - End Time 2025-02-19 19:32:05 [2025-02-19 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512553', 'tblTempUsageDetail_20' ) start [2025-02-19 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512553', 'tblTempUsageDetail_20' ) end [2025-02-19 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512553', 'tblTempVendorCDR_20' ) start [2025-02-19 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512553', 'tblTempVendorCDR_20' ) end [2025-02-19 19:32:20] Production.INFO: ProcessCDR(1,14512553,1,1,2) [2025-02-19 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512553', 'tblTempUsageDetail_20' ) start [2025-02-19 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512553', 'tblTempUsageDetail_20' ) end [2025-02-19 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:32:24] Production.INFO: ==16945== Releasing lock... [2025-02-19 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:32:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-19 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:33:05 [end_date_ymd] => 2025-02-19 19:33:05 [RateCDR] => 1 ) [2025-02-19 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:33:05' and `end` < '2025-02-19 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:33:17] Production.INFO: count ==3945 [2025-02-19 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:33:05 - End Time 2025-02-19 19:33:05 [2025-02-19 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512558', 'tblTempUsageDetail_20' ) start [2025-02-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512558', 'tblTempUsageDetail_20' ) end [2025-02-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512558', 'tblTempVendorCDR_20' ) start [2025-02-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512558', 'tblTempVendorCDR_20' ) end [2025-02-19 19:33:19] Production.INFO: ProcessCDR(1,14512558,1,1,2) [2025-02-19 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512558', 'tblTempUsageDetail_20' ) start [2025-02-19 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512558', 'tblTempUsageDetail_20' ) end [2025-02-19 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:33:22] Production.INFO: ==17051== Releasing lock... [2025-02-19 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:33:22] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:34:05 [end_date_ymd] => 2025-02-19 19:34:05 [RateCDR] => 1 ) [2025-02-19 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:34:05' and `end` < '2025-02-19 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:34:17] Production.INFO: count ==3941 [2025-02-19 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:34:05 - End Time 2025-02-19 19:34:05 [2025-02-19 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512563', 'tblTempUsageDetail_20' ) start [2025-02-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512563', 'tblTempUsageDetail_20' ) end [2025-02-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512563', 'tblTempVendorCDR_20' ) start [2025-02-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512563', 'tblTempVendorCDR_20' ) end [2025-02-19 19:34:19] Production.INFO: ProcessCDR(1,14512563,1,1,2) [2025-02-19 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512563', 'tblTempUsageDetail_20' ) start [2025-02-19 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512563', 'tblTempUsageDetail_20' ) end [2025-02-19 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:34:22] Production.INFO: ==17165== Releasing lock... [2025-02-19 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:34:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:35:05 [end_date_ymd] => 2025-02-19 19:35:05 [RateCDR] => 1 ) [2025-02-19 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:35:05' and `end` < '2025-02-19 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:35:17] Production.INFO: count ==3928 [2025-02-19 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:35:05 - End Time 2025-02-19 19:35:05 [2025-02-19 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512568', 'tblTempUsageDetail_20' ) start [2025-02-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512568', 'tblTempUsageDetail_20' ) end [2025-02-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512568', 'tblTempVendorCDR_20' ) start [2025-02-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512568', 'tblTempVendorCDR_20' ) end [2025-02-19 19:35:19] Production.INFO: ProcessCDR(1,14512568,1,1,2) [2025-02-19 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512568', 'tblTempUsageDetail_20' ) start [2025-02-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512568', 'tblTempUsageDetail_20' ) end [2025-02-19 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:35:22] Production.INFO: ==17273== Releasing lock... [2025-02-19 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:35:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:36:05 [end_date_ymd] => 2025-02-19 19:36:05 [RateCDR] => 1 ) [2025-02-19 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:36:05' and `end` < '2025-02-19 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:36:18] Production.INFO: count ==3924 [2025-02-19 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:36:05 - End Time 2025-02-19 19:36:05 [2025-02-19 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512573', 'tblTempUsageDetail_20' ) start [2025-02-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512573', 'tblTempUsageDetail_20' ) end [2025-02-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512573', 'tblTempVendorCDR_20' ) start [2025-02-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512573', 'tblTempVendorCDR_20' ) end [2025-02-19 19:36:19] Production.INFO: ProcessCDR(1,14512573,1,1,2) [2025-02-19 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512573', 'tblTempUsageDetail_20' ) start [2025-02-19 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512573', 'tblTempUsageDetail_20' ) end [2025-02-19 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:36:24] Production.INFO: ==17390== Releasing lock... [2025-02-19 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:36:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-19 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:37:05 [end_date_ymd] => 2025-02-19 19:37:05 [RateCDR] => 1 ) [2025-02-19 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:37:05' and `end` < '2025-02-19 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:37:17] Production.INFO: count ==3910 [2025-02-19 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:37:05 - End Time 2025-02-19 19:37:05 [2025-02-19 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512578', 'tblTempUsageDetail_20' ) start [2025-02-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512578', 'tblTempUsageDetail_20' ) end [2025-02-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512578', 'tblTempVendorCDR_20' ) start [2025-02-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512578', 'tblTempVendorCDR_20' ) end [2025-02-19 19:37:19] Production.INFO: ProcessCDR(1,14512578,1,1,2) [2025-02-19 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512578', 'tblTempUsageDetail_20' ) start [2025-02-19 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512578', 'tblTempUsageDetail_20' ) end [2025-02-19 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:37:22] Production.INFO: ==17495== Releasing lock... [2025-02-19 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:37:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:38:05 [end_date_ymd] => 2025-02-19 19:38:05 [RateCDR] => 1 ) [2025-02-19 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:38:05' and `end` < '2025-02-19 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:38:18] Production.INFO: count ==3898 [2025-02-19 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:38:05 - End Time 2025-02-19 19:38:05 [2025-02-19 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512583', 'tblTempUsageDetail_20' ) start [2025-02-19 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512583', 'tblTempUsageDetail_20' ) end [2025-02-19 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512583', 'tblTempVendorCDR_20' ) start [2025-02-19 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512583', 'tblTempVendorCDR_20' ) end [2025-02-19 19:38:19] Production.INFO: ProcessCDR(1,14512583,1,1,2) [2025-02-19 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512583', 'tblTempUsageDetail_20' ) start [2025-02-19 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512583', 'tblTempUsageDetail_20' ) end [2025-02-19 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:38:22] Production.INFO: ==17606== Releasing lock... [2025-02-19 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:38:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:39:05 [end_date_ymd] => 2025-02-19 19:39:05 [RateCDR] => 1 ) [2025-02-19 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:39:05' and `end` < '2025-02-19 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:39:17] Production.INFO: count ==3893 [2025-02-19 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:39:05 - End Time 2025-02-19 19:39:05 [2025-02-19 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512588', 'tblTempUsageDetail_20' ) start [2025-02-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512588', 'tblTempUsageDetail_20' ) end [2025-02-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512588', 'tblTempVendorCDR_20' ) start [2025-02-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512588', 'tblTempVendorCDR_20' ) end [2025-02-19 19:39:19] Production.INFO: ProcessCDR(1,14512588,1,1,2) [2025-02-19 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512588', 'tblTempUsageDetail_20' ) start [2025-02-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512588', 'tblTempUsageDetail_20' ) end [2025-02-19 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:39:22] Production.INFO: ==17720== Releasing lock... [2025-02-19 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:39:22] Production.INFO: 57 MB #Memory Used# [2025-02-19 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:40:06 [end_date_ymd] => 2025-02-19 19:40:06 [RateCDR] => 1 ) [2025-02-19 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:40:06' and `end` < '2025-02-19 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:40:19] Production.INFO: count ==3885 [2025-02-19 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:40:06 - End Time 2025-02-19 19:40:06 [2025-02-19 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512594', 'tblTempUsageDetail_20' ) start [2025-02-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512594', 'tblTempUsageDetail_20' ) end [2025-02-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512594', 'tblTempVendorCDR_20' ) start [2025-02-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512594', 'tblTempVendorCDR_20' ) end [2025-02-19 19:40:20] Production.INFO: ProcessCDR(1,14512594,1,1,2) [2025-02-19 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512594', 'tblTempUsageDetail_20' ) start [2025-02-19 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512594', 'tblTempUsageDetail_20' ) end [2025-02-19 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:40:25] Production.INFO: ==17833== Releasing lock... [2025-02-19 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:40:25] Production.INFO: 57 MB #Memory Used# [2025-02-19 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:41:04 [end_date_ymd] => 2025-02-19 19:41:04 [RateCDR] => 1 ) [2025-02-19 19:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:41:04' and `end` < '2025-02-19 19:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:41:17] Production.INFO: count ==3817 [2025-02-19 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-19 16:41:04 - End Time 2025-02-19 19:41:04 [2025-02-19 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512599', 'tblTempUsageDetail_20' ) start [2025-02-19 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512599', 'tblTempUsageDetail_20' ) end [2025-02-19 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512599', 'tblTempVendorCDR_20' ) start [2025-02-19 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512599', 'tblTempVendorCDR_20' ) end [2025-02-19 19:41:18] Production.INFO: ProcessCDR(1,14512599,1,1,2) [2025-02-19 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512599', 'tblTempUsageDetail_20' ) start [2025-02-19 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512599', 'tblTempUsageDetail_20' ) end [2025-02-19 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:41:23] Production.INFO: ==17952== Releasing lock... [2025-02-19 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:41:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:42:06 [end_date_ymd] => 2025-02-19 19:42:06 [RateCDR] => 1 ) [2025-02-19 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:42:06' and `end` < '2025-02-19 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:42:18] Production.INFO: count ==3812 [2025-02-19 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:42:06 - End Time 2025-02-19 19:42:06 [2025-02-19 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512604', 'tblTempUsageDetail_20' ) start [2025-02-19 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512604', 'tblTempUsageDetail_20' ) end [2025-02-19 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512604', 'tblTempVendorCDR_20' ) start [2025-02-19 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512604', 'tblTempVendorCDR_20' ) end [2025-02-19 19:42:20] Production.INFO: ProcessCDR(1,14512604,1,1,2) [2025-02-19 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512604', 'tblTempUsageDetail_20' ) start [2025-02-19 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512604', 'tblTempUsageDetail_20' ) end [2025-02-19 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:42:23] Production.INFO: ==18062== Releasing lock... [2025-02-19 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:42:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:43:05 [end_date_ymd] => 2025-02-19 19:43:05 [RateCDR] => 1 ) [2025-02-19 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:43:05' and `end` < '2025-02-19 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:43:17] Production.INFO: count ==3817 [2025-02-19 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:43:05 - End Time 2025-02-19 19:43:05 [2025-02-19 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512609', 'tblTempUsageDetail_20' ) start [2025-02-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512609', 'tblTempUsageDetail_20' ) end [2025-02-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512609', 'tblTempVendorCDR_20' ) start [2025-02-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512609', 'tblTempVendorCDR_20' ) end [2025-02-19 19:43:19] Production.INFO: ProcessCDR(1,14512609,1,1,2) [2025-02-19 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512609', 'tblTempUsageDetail_20' ) start [2025-02-19 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512609', 'tblTempUsageDetail_20' ) end [2025-02-19 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:43:22] Production.INFO: ==18189== Releasing lock... [2025-02-19 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:43:22] Production.INFO: 56.75 MB #Memory Used# [2025-02-19 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:44:05 [end_date_ymd] => 2025-02-19 19:44:05 [RateCDR] => 1 ) [2025-02-19 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:44:05' and `end` < '2025-02-19 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:44:18] Production.INFO: count ==3805 [2025-02-19 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:44:05 - End Time 2025-02-19 19:44:05 [2025-02-19 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512614', 'tblTempUsageDetail_20' ) start [2025-02-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512614', 'tblTempUsageDetail_20' ) end [2025-02-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512614', 'tblTempVendorCDR_20' ) start [2025-02-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512614', 'tblTempVendorCDR_20' ) end [2025-02-19 19:44:19] Production.INFO: ProcessCDR(1,14512614,1,1,2) [2025-02-19 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512614', 'tblTempUsageDetail_20' ) start [2025-02-19 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512614', 'tblTempUsageDetail_20' ) end [2025-02-19 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:44:22] Production.INFO: ==18311== Releasing lock... [2025-02-19 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:44:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:45:04 [end_date_ymd] => 2025-02-19 19:45:04 [RateCDR] => 1 ) [2025-02-19 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:45:04' and `end` < '2025-02-19 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:45:17] Production.INFO: count ==3802 [2025-02-19 19:45:18] Production.ERROR: pbx CDR StartTime 2025-02-19 16:45:04 - End Time 2025-02-19 19:45:04 [2025-02-19 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512619', 'tblTempUsageDetail_20' ) start [2025-02-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512619', 'tblTempUsageDetail_20' ) end [2025-02-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512619', 'tblTempVendorCDR_20' ) start [2025-02-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512619', 'tblTempVendorCDR_20' ) end [2025-02-19 19:45:18] Production.INFO: ProcessCDR(1,14512619,1,1,2) [2025-02-19 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512619', 'tblTempUsageDetail_20' ) start [2025-02-19 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512619', 'tblTempUsageDetail_20' ) end [2025-02-19 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:45:23] Production.INFO: ==18473== Releasing lock... [2025-02-19 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:45:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:46:05 [end_date_ymd] => 2025-02-19 19:46:05 [RateCDR] => 1 ) [2025-02-19 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:46:05' and `end` < '2025-02-19 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:46:17] Production.INFO: count ==3806 [2025-02-19 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:46:05 - End Time 2025-02-19 19:46:05 [2025-02-19 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512624', 'tblTempUsageDetail_20' ) start [2025-02-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512624', 'tblTempUsageDetail_20' ) end [2025-02-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512624', 'tblTempVendorCDR_20' ) start [2025-02-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512624', 'tblTempVendorCDR_20' ) end [2025-02-19 19:46:19] Production.INFO: ProcessCDR(1,14512624,1,1,2) [2025-02-19 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512624', 'tblTempUsageDetail_20' ) start [2025-02-19 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512624', 'tblTempUsageDetail_20' ) end [2025-02-19 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:46:23] Production.INFO: ==18592== Releasing lock... [2025-02-19 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:46:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:47:05 [end_date_ymd] => 2025-02-19 19:47:05 [RateCDR] => 1 ) [2025-02-19 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:47:05' and `end` < '2025-02-19 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:47:17] Production.INFO: count ==3801 [2025-02-19 19:47:18] Production.ERROR: pbx CDR StartTime 2025-02-19 16:47:05 - End Time 2025-02-19 19:47:05 [2025-02-19 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512629', 'tblTempUsageDetail_20' ) start [2025-02-19 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512629', 'tblTempUsageDetail_20' ) end [2025-02-19 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512629', 'tblTempVendorCDR_20' ) start [2025-02-19 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512629', 'tblTempVendorCDR_20' ) end [2025-02-19 19:47:18] Production.INFO: ProcessCDR(1,14512629,1,1,2) [2025-02-19 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512629', 'tblTempUsageDetail_20' ) start [2025-02-19 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512629', 'tblTempUsageDetail_20' ) end [2025-02-19 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:47:22] Production.INFO: ==18711== Releasing lock... [2025-02-19 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:47:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:48:05 [end_date_ymd] => 2025-02-19 19:48:05 [RateCDR] => 1 ) [2025-02-19 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:48:05' and `end` < '2025-02-19 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:48:17] Production.INFO: count ==3807 [2025-02-19 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:48:05 - End Time 2025-02-19 19:48:05 [2025-02-19 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512634', 'tblTempUsageDetail_20' ) start [2025-02-19 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512634', 'tblTempUsageDetail_20' ) end [2025-02-19 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512634', 'tblTempVendorCDR_20' ) start [2025-02-19 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512634', 'tblTempVendorCDR_20' ) end [2025-02-19 19:48:19] Production.INFO: ProcessCDR(1,14512634,1,1,2) [2025-02-19 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512634', 'tblTempUsageDetail_20' ) start [2025-02-19 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512634', 'tblTempUsageDetail_20' ) end [2025-02-19 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:48:22] Production.INFO: ==18835== Releasing lock... [2025-02-19 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:48:22] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:49:05 [end_date_ymd] => 2025-02-19 19:49:05 [RateCDR] => 1 ) [2025-02-19 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:49:05' and `end` < '2025-02-19 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:49:17] Production.INFO: count ==3808 [2025-02-19 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:49:05 - End Time 2025-02-19 19:49:05 [2025-02-19 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512639', 'tblTempUsageDetail_20' ) start [2025-02-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512639', 'tblTempUsageDetail_20' ) end [2025-02-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512639', 'tblTempVendorCDR_20' ) start [2025-02-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512639', 'tblTempVendorCDR_20' ) end [2025-02-19 19:49:19] Production.INFO: ProcessCDR(1,14512639,1,1,2) [2025-02-19 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512639', 'tblTempUsageDetail_20' ) start [2025-02-19 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512639', 'tblTempUsageDetail_20' ) end [2025-02-19 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:49:23] Production.INFO: ==18957== Releasing lock... [2025-02-19 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:49:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:50:06 [end_date_ymd] => 2025-02-19 19:50:06 [RateCDR] => 1 ) [2025-02-19 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:50:06' and `end` < '2025-02-19 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:50:18] Production.INFO: count ==3797 [2025-02-19 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:50:06 - End Time 2025-02-19 19:50:06 [2025-02-19 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512645', 'tblTempUsageDetail_20' ) start [2025-02-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512645', 'tblTempUsageDetail_20' ) end [2025-02-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512645', 'tblTempVendorCDR_20' ) start [2025-02-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512645', 'tblTempVendorCDR_20' ) end [2025-02-19 19:50:20] Production.INFO: ProcessCDR(1,14512645,1,1,2) [2025-02-19 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512645', 'tblTempUsageDetail_20' ) start [2025-02-19 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512645', 'tblTempUsageDetail_20' ) end [2025-02-19 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:50:25] Production.INFO: ==19075== Releasing lock... [2025-02-19 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:50:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-19 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:51:06 [end_date_ymd] => 2025-02-19 19:51:06 [RateCDR] => 1 ) [2025-02-19 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:51:06' and `end` < '2025-02-19 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:51:18] Production.INFO: count ==3742 [2025-02-19 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:51:06 - End Time 2025-02-19 19:51:06 [2025-02-19 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512650', 'tblTempUsageDetail_20' ) start [2025-02-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512650', 'tblTempUsageDetail_20' ) end [2025-02-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512650', 'tblTempVendorCDR_20' ) start [2025-02-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512650', 'tblTempVendorCDR_20' ) end [2025-02-19 19:51:19] Production.INFO: ProcessCDR(1,14512650,1,1,2) [2025-02-19 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512650', 'tblTempUsageDetail_20' ) start [2025-02-19 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512650', 'tblTempUsageDetail_20' ) end [2025-02-19 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:51:23] Production.INFO: ==19197== Releasing lock... [2025-02-19 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:51:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-19 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:52:05 [end_date_ymd] => 2025-02-19 19:52:05 [RateCDR] => 1 ) [2025-02-19 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:52:05' and `end` < '2025-02-19 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:52:18] Production.INFO: count ==3731 [2025-02-19 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:52:05 - End Time 2025-02-19 19:52:05 [2025-02-19 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512655', 'tblTempUsageDetail_20' ) start [2025-02-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512655', 'tblTempUsageDetail_20' ) end [2025-02-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512655', 'tblTempVendorCDR_20' ) start [2025-02-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512655', 'tblTempVendorCDR_20' ) end [2025-02-19 19:52:19] Production.INFO: ProcessCDR(1,14512655,1,1,2) [2025-02-19 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512655', 'tblTempUsageDetail_20' ) start [2025-02-19 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512655', 'tblTempUsageDetail_20' ) end [2025-02-19 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:52:23] Production.INFO: ==19308== Releasing lock... [2025-02-19 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:52:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-19 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:53:05 [end_date_ymd] => 2025-02-19 19:53:05 [RateCDR] => 1 ) [2025-02-19 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:53:05' and `end` < '2025-02-19 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:53:18] Production.INFO: count ==4194 [2025-02-19 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-19 16:53:05 - End Time 2025-02-19 19:53:05 [2025-02-19 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512660', 'tblTempUsageDetail_20' ) start [2025-02-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512660', 'tblTempUsageDetail_20' ) end [2025-02-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512660', 'tblTempVendorCDR_20' ) start [2025-02-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512660', 'tblTempVendorCDR_20' ) end [2025-02-19 19:53:20] Production.INFO: ProcessCDR(1,14512660,1,1,2) [2025-02-19 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512660', 'tblTempUsageDetail_20' ) start [2025-02-19 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512660', 'tblTempUsageDetail_20' ) end [2025-02-19 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:53:25] Production.INFO: ==19425== Releasing lock... [2025-02-19 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:53:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:54:05 [end_date_ymd] => 2025-02-19 19:54:05 [RateCDR] => 1 ) [2025-02-19 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:54:05' and `end` < '2025-02-19 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:54:17] Production.INFO: count ==4187 [2025-02-19 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:54:05 - End Time 2025-02-19 19:54:05 [2025-02-19 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512665', 'tblTempUsageDetail_20' ) start [2025-02-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512665', 'tblTempUsageDetail_20' ) end [2025-02-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512665', 'tblTempVendorCDR_20' ) start [2025-02-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512665', 'tblTempVendorCDR_20' ) end [2025-02-19 19:54:19] Production.INFO: ProcessCDR(1,14512665,1,1,2) [2025-02-19 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512665', 'tblTempUsageDetail_20' ) start [2025-02-19 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512665', 'tblTempUsageDetail_20' ) end [2025-02-19 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:54:24] Production.INFO: ==19538== Releasing lock... [2025-02-19 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:54:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:55:05 [end_date_ymd] => 2025-02-19 19:55:05 [RateCDR] => 1 ) [2025-02-19 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:55:05' and `end` < '2025-02-19 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:55:17] Production.INFO: count ==4182 [2025-02-19 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:55:05 - End Time 2025-02-19 19:55:05 [2025-02-19 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512670', 'tblTempUsageDetail_20' ) start [2025-02-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512670', 'tblTempUsageDetail_20' ) end [2025-02-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512670', 'tblTempVendorCDR_20' ) start [2025-02-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512670', 'tblTempVendorCDR_20' ) end [2025-02-19 19:55:19] Production.INFO: ProcessCDR(1,14512670,1,1,2) [2025-02-19 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512670', 'tblTempUsageDetail_20' ) start [2025-02-19 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512670', 'tblTempUsageDetail_20' ) end [2025-02-19 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:55:23] Production.INFO: ==19648== Releasing lock... [2025-02-19 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:55:23] Production.INFO: 59.25 MB #Memory Used# [2025-02-19 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:56:05 [end_date_ymd] => 2025-02-19 19:56:05 [RateCDR] => 1 ) [2025-02-19 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:56:05' and `end` < '2025-02-19 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:56:17] Production.INFO: count ==4174 [2025-02-19 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:56:05 - End Time 2025-02-19 19:56:05 [2025-02-19 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512675', 'tblTempUsageDetail_20' ) start [2025-02-19 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512675', 'tblTempUsageDetail_20' ) end [2025-02-19 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512675', 'tblTempVendorCDR_20' ) start [2025-02-19 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512675', 'tblTempVendorCDR_20' ) end [2025-02-19 19:56:20] Production.INFO: ProcessCDR(1,14512675,1,1,2) [2025-02-19 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512675', 'tblTempUsageDetail_20' ) start [2025-02-19 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512675', 'tblTempUsageDetail_20' ) end [2025-02-19 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:56:23] Production.INFO: ==19758== Releasing lock... [2025-02-19 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:56:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:57:05 [end_date_ymd] => 2025-02-19 19:57:05 [RateCDR] => 1 ) [2025-02-19 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:57:05' and `end` < '2025-02-19 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:57:17] Production.INFO: count ==4165 [2025-02-19 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:57:05 - End Time 2025-02-19 19:57:05 [2025-02-19 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512680', 'tblTempUsageDetail_20' ) start [2025-02-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512680', 'tblTempUsageDetail_20' ) end [2025-02-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512680', 'tblTempVendorCDR_20' ) start [2025-02-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512680', 'tblTempVendorCDR_20' ) end [2025-02-19 19:57:19] Production.INFO: ProcessCDR(1,14512680,1,1,2) [2025-02-19 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512680', 'tblTempUsageDetail_20' ) start [2025-02-19 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512680', 'tblTempUsageDetail_20' ) end [2025-02-19 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:57:23] Production.INFO: ==19869== Releasing lock... [2025-02-19 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:57:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:58:05 [end_date_ymd] => 2025-02-19 19:58:05 [RateCDR] => 1 ) [2025-02-19 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:58:05' and `end` < '2025-02-19 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:58:17] Production.INFO: count ==4158 [2025-02-19 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:58:05 - End Time 2025-02-19 19:58:05 [2025-02-19 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512685', 'tblTempUsageDetail_20' ) start [2025-02-19 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512685', 'tblTempUsageDetail_20' ) end [2025-02-19 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512685', 'tblTempVendorCDR_20' ) start [2025-02-19 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512685', 'tblTempVendorCDR_20' ) end [2025-02-19 19:58:19] Production.INFO: ProcessCDR(1,14512685,1,1,2) [2025-02-19 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512685', 'tblTempUsageDetail_20' ) start [2025-02-19 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512685', 'tblTempUsageDetail_20' ) end [2025-02-19 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:58:24] Production.INFO: ==19976== Releasing lock... [2025-02-19 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:58:24] Production.INFO: 59 MB #Memory Used# [2025-02-19 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 16:59:05 [end_date_ymd] => 2025-02-19 19:59:05 [RateCDR] => 1 ) [2025-02-19 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 16:59:05' and `end` < '2025-02-19 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 19:59:17] Production.INFO: count ==4153 [2025-02-19 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-19 16:59:05 - End Time 2025-02-19 19:59:05 [2025-02-19 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512690', 'tblTempUsageDetail_20' ) start [2025-02-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512690', 'tblTempUsageDetail_20' ) end [2025-02-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512690', 'tblTempVendorCDR_20' ) start [2025-02-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512690', 'tblTempVendorCDR_20' ) end [2025-02-19 19:59:19] Production.INFO: ProcessCDR(1,14512690,1,1,2) [2025-02-19 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512690', 'tblTempUsageDetail_20' ) start [2025-02-19 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512690', 'tblTempUsageDetail_20' ) end [2025-02-19 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 19:59:23] Production.INFO: ==20083== Releasing lock... [2025-02-19 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 19:59:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:00:06 [end_date_ymd] => 2025-02-19 20:00:06 [RateCDR] => 1 ) [2025-02-19 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:00:06' and `end` < '2025-02-19 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:00:18] Production.INFO: count ==4163 [2025-02-19 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:00:06 - End Time 2025-02-19 20:00:06 [2025-02-19 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512696', 'tblTempUsageDetail_20' ) start [2025-02-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512696', 'tblTempUsageDetail_20' ) end [2025-02-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512696', 'tblTempVendorCDR_20' ) start [2025-02-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512696', 'tblTempVendorCDR_20' ) end [2025-02-19 20:00:20] Production.INFO: ProcessCDR(1,14512696,1,1,2) [2025-02-19 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512696', 'tblTempUsageDetail_20' ) start [2025-02-19 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512696', 'tblTempUsageDetail_20' ) end [2025-02-19 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:00:25] Production.INFO: ==20235== Releasing lock... [2025-02-19 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:00:25] Production.INFO: 59 MB #Memory Used# [2025-02-19 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:01:05 [end_date_ymd] => 2025-02-19 20:01:05 [RateCDR] => 1 ) [2025-02-19 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:01:05' and `end` < '2025-02-19 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:01:17] Production.INFO: count ==4171 [2025-02-19 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:01:05 - End Time 2025-02-19 20:01:05 [2025-02-19 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512701', 'tblTempUsageDetail_20' ) start [2025-02-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512701', 'tblTempUsageDetail_20' ) end [2025-02-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512701', 'tblTempVendorCDR_20' ) start [2025-02-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512701', 'tblTempVendorCDR_20' ) end [2025-02-19 20:01:19] Production.INFO: ProcessCDR(1,14512701,1,1,2) [2025-02-19 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512701', 'tblTempUsageDetail_20' ) start [2025-02-19 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512701', 'tblTempUsageDetail_20' ) end [2025-02-19 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:01:24] Production.INFO: ==20395== Releasing lock... [2025-02-19 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:01:24] Production.INFO: 59 MB #Memory Used# [2025-02-19 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:02:05 [end_date_ymd] => 2025-02-19 20:02:05 [RateCDR] => 1 ) [2025-02-19 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:02:05' and `end` < '2025-02-19 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:02:18] Production.INFO: count ==4306 [2025-02-19 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:02:05 - End Time 2025-02-19 20:02:05 [2025-02-19 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512706', 'tblTempUsageDetail_20' ) start [2025-02-19 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512706', 'tblTempUsageDetail_20' ) end [2025-02-19 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512706', 'tblTempVendorCDR_20' ) start [2025-02-19 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512706', 'tblTempVendorCDR_20' ) end [2025-02-19 20:02:20] Production.INFO: ProcessCDR(1,14512706,1,1,2) [2025-02-19 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512706', 'tblTempUsageDetail_20' ) start [2025-02-19 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512706', 'tblTempUsageDetail_20' ) end [2025-02-19 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:02:23] Production.INFO: ==20508== Releasing lock... [2025-02-19 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:02:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:03:05 [end_date_ymd] => 2025-02-19 20:03:05 [RateCDR] => 1 ) [2025-02-19 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:03:05' and `end` < '2025-02-19 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:03:17] Production.INFO: count ==4304 [2025-02-19 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:03:05 - End Time 2025-02-19 20:03:05 [2025-02-19 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512711', 'tblTempUsageDetail_20' ) start [2025-02-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512711', 'tblTempUsageDetail_20' ) end [2025-02-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512711', 'tblTempVendorCDR_20' ) start [2025-02-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512711', 'tblTempVendorCDR_20' ) end [2025-02-19 20:03:19] Production.INFO: ProcessCDR(1,14512711,1,1,2) [2025-02-19 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512711', 'tblTempUsageDetail_20' ) start [2025-02-19 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512711', 'tblTempUsageDetail_20' ) end [2025-02-19 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:03:24] Production.INFO: ==20618== Releasing lock... [2025-02-19 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:03:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:04:06 [end_date_ymd] => 2025-02-19 20:04:06 [RateCDR] => 1 ) [2025-02-19 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:04:06' and `end` < '2025-02-19 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:04:18] Production.INFO: count ==4303 [2025-02-19 20:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:04:06 - End Time 2025-02-19 20:04:06 [2025-02-19 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512716', 'tblTempUsageDetail_20' ) start [2025-02-19 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512716', 'tblTempUsageDetail_20' ) end [2025-02-19 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512716', 'tblTempVendorCDR_20' ) start [2025-02-19 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512716', 'tblTempVendorCDR_20' ) end [2025-02-19 20:04:20] Production.INFO: ProcessCDR(1,14512716,1,1,2) [2025-02-19 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512716', 'tblTempUsageDetail_20' ) start [2025-02-19 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512716', 'tblTempUsageDetail_20' ) end [2025-02-19 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:04:23] Production.INFO: ==20728== Releasing lock... [2025-02-19 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:04:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:05:05 [end_date_ymd] => 2025-02-19 20:05:05 [RateCDR] => 1 ) [2025-02-19 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:05:05' and `end` < '2025-02-19 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:05:17] Production.INFO: count ==4297 [2025-02-19 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:05:05 - End Time 2025-02-19 20:05:05 [2025-02-19 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512721', 'tblTempUsageDetail_20' ) start [2025-02-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512721', 'tblTempUsageDetail_20' ) end [2025-02-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512721', 'tblTempVendorCDR_20' ) start [2025-02-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512721', 'tblTempVendorCDR_20' ) end [2025-02-19 20:05:19] Production.INFO: ProcessCDR(1,14512721,1,1,2) [2025-02-19 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512721', 'tblTempUsageDetail_20' ) start [2025-02-19 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512721', 'tblTempUsageDetail_20' ) end [2025-02-19 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:05:24] Production.INFO: ==20840== Releasing lock... [2025-02-19 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:05:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:06:05 [end_date_ymd] => 2025-02-19 20:06:05 [RateCDR] => 1 ) [2025-02-19 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:06:05' and `end` < '2025-02-19 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:06:18] Production.INFO: count ==4294 [2025-02-19 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:06:05 - End Time 2025-02-19 20:06:05 [2025-02-19 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512726', 'tblTempUsageDetail_20' ) start [2025-02-19 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512726', 'tblTempUsageDetail_20' ) end [2025-02-19 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512726', 'tblTempVendorCDR_20' ) start [2025-02-19 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512726', 'tblTempVendorCDR_20' ) end [2025-02-19 20:06:20] Production.INFO: ProcessCDR(1,14512726,1,1,2) [2025-02-19 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512726', 'tblTempUsageDetail_20' ) start [2025-02-19 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512726', 'tblTempUsageDetail_20' ) end [2025-02-19 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:06:24] Production.INFO: ==20950== Releasing lock... [2025-02-19 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:06:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:07:05 [end_date_ymd] => 2025-02-19 20:07:05 [RateCDR] => 1 ) [2025-02-19 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:07:05' and `end` < '2025-02-19 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:07:18] Production.INFO: count ==4294 [2025-02-19 20:07:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:07:05 - End Time 2025-02-19 20:07:05 [2025-02-19 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512731', 'tblTempUsageDetail_20' ) start [2025-02-19 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512731', 'tblTempUsageDetail_20' ) end [2025-02-19 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512731', 'tblTempVendorCDR_20' ) start [2025-02-19 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512731', 'tblTempVendorCDR_20' ) end [2025-02-19 20:07:20] Production.INFO: ProcessCDR(1,14512731,1,1,2) [2025-02-19 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512731', 'tblTempUsageDetail_20' ) start [2025-02-19 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512731', 'tblTempUsageDetail_20' ) end [2025-02-19 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:07:25] Production.INFO: ==21059== Releasing lock... [2025-02-19 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:07:25] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:08:06 [end_date_ymd] => 2025-02-19 20:08:06 [RateCDR] => 1 ) [2025-02-19 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:08:06' and `end` < '2025-02-19 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:08:18] Production.INFO: count ==4293 [2025-02-19 20:08:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:08:06 - End Time 2025-02-19 20:08:06 [2025-02-19 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512736', 'tblTempUsageDetail_20' ) start [2025-02-19 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512736', 'tblTempUsageDetail_20' ) end [2025-02-19 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512736', 'tblTempVendorCDR_20' ) start [2025-02-19 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512736', 'tblTempVendorCDR_20' ) end [2025-02-19 20:08:20] Production.INFO: ProcessCDR(1,14512736,1,1,2) [2025-02-19 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512736', 'tblTempUsageDetail_20' ) start [2025-02-19 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512736', 'tblTempUsageDetail_20' ) end [2025-02-19 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:08:25] Production.INFO: ==21161== Releasing lock... [2025-02-19 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:08:25] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:09:05 [end_date_ymd] => 2025-02-19 20:09:05 [RateCDR] => 1 ) [2025-02-19 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:09:05' and `end` < '2025-02-19 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:09:17] Production.INFO: count ==4297 [2025-02-19 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:09:05 - End Time 2025-02-19 20:09:05 [2025-02-19 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512741', 'tblTempUsageDetail_20' ) start [2025-02-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512741', 'tblTempUsageDetail_20' ) end [2025-02-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512741', 'tblTempVendorCDR_20' ) start [2025-02-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512741', 'tblTempVendorCDR_20' ) end [2025-02-19 20:09:19] Production.INFO: ProcessCDR(1,14512741,1,1,2) [2025-02-19 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512741', 'tblTempUsageDetail_20' ) start [2025-02-19 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512741', 'tblTempUsageDetail_20' ) end [2025-02-19 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:09:24] Production.INFO: ==21260== Releasing lock... [2025-02-19 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:09:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:10:06 [end_date_ymd] => 2025-02-19 20:10:06 [RateCDR] => 1 ) [2025-02-19 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:10:06' and `end` < '2025-02-19 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:10:18] Production.INFO: count ==4291 [2025-02-19 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:10:06 - End Time 2025-02-19 20:10:06 [2025-02-19 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512747', 'tblTempUsageDetail_20' ) start [2025-02-19 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512747', 'tblTempUsageDetail_20' ) end [2025-02-19 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512747', 'tblTempVendorCDR_20' ) start [2025-02-19 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512747', 'tblTempVendorCDR_20' ) end [2025-02-19 20:10:20] Production.INFO: ProcessCDR(1,14512747,1,1,2) [2025-02-19 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512747', 'tblTempUsageDetail_20' ) start [2025-02-19 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512747', 'tblTempUsageDetail_20' ) end [2025-02-19 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:10:25] Production.INFO: ==21370== Releasing lock... [2025-02-19 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:10:25] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:11:05 [end_date_ymd] => 2025-02-19 20:11:05 [RateCDR] => 1 ) [2025-02-19 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:11:05' and `end` < '2025-02-19 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:11:17] Production.INFO: count ==4282 [2025-02-19 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:11:05 - End Time 2025-02-19 20:11:05 [2025-02-19 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512752', 'tblTempUsageDetail_20' ) start [2025-02-19 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512752', 'tblTempUsageDetail_20' ) end [2025-02-19 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512752', 'tblTempVendorCDR_20' ) start [2025-02-19 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512752', 'tblTempVendorCDR_20' ) end [2025-02-19 20:11:19] Production.INFO: ProcessCDR(1,14512752,1,1,2) [2025-02-19 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512752', 'tblTempUsageDetail_20' ) start [2025-02-19 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512752', 'tblTempUsageDetail_20' ) end [2025-02-19 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:11:24] Production.INFO: ==21469== Releasing lock... [2025-02-19 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:11:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:12:06 [end_date_ymd] => 2025-02-19 20:12:06 [RateCDR] => 1 ) [2025-02-19 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:12:06' and `end` < '2025-02-19 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:12:18] Production.INFO: count ==4265 [2025-02-19 20:12:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:12:06 - End Time 2025-02-19 20:12:06 [2025-02-19 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512757', 'tblTempUsageDetail_20' ) start [2025-02-19 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512757', 'tblTempUsageDetail_20' ) end [2025-02-19 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512757', 'tblTempVendorCDR_20' ) start [2025-02-19 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512757', 'tblTempVendorCDR_20' ) end [2025-02-19 20:12:20] Production.INFO: ProcessCDR(1,14512757,1,1,2) [2025-02-19 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512757', 'tblTempUsageDetail_20' ) start [2025-02-19 20:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512757', 'tblTempUsageDetail_20' ) end [2025-02-19 20:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:12:25] Production.INFO: ==21571== Releasing lock... [2025-02-19 20:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:12:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:13:05 [end_date_ymd] => 2025-02-19 20:13:05 [RateCDR] => 1 ) [2025-02-19 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:13:05' and `end` < '2025-02-19 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:13:17] Production.INFO: count ==4261 [2025-02-19 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:13:05 - End Time 2025-02-19 20:13:05 [2025-02-19 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512762', 'tblTempUsageDetail_20' ) start [2025-02-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512762', 'tblTempUsageDetail_20' ) end [2025-02-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512762', 'tblTempVendorCDR_20' ) start [2025-02-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512762', 'tblTempVendorCDR_20' ) end [2025-02-19 20:13:19] Production.INFO: ProcessCDR(1,14512762,1,1,2) [2025-02-19 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512762', 'tblTempUsageDetail_20' ) start [2025-02-19 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512762', 'tblTempUsageDetail_20' ) end [2025-02-19 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:13:24] Production.INFO: ==21668== Releasing lock... [2025-02-19 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:13:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:14:06 [end_date_ymd] => 2025-02-19 20:14:06 [RateCDR] => 1 ) [2025-02-19 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:14:06' and `end` < '2025-02-19 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:14:18] Production.INFO: count ==4467 [2025-02-19 20:14:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:14:06 - End Time 2025-02-19 20:14:06 [2025-02-19 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512767', 'tblTempUsageDetail_20' ) start [2025-02-19 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512767', 'tblTempUsageDetail_20' ) end [2025-02-19 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512767', 'tblTempVendorCDR_20' ) start [2025-02-19 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512767', 'tblTempVendorCDR_20' ) end [2025-02-19 20:14:20] Production.INFO: ProcessCDR(1,14512767,1,1,2) [2025-02-19 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512767', 'tblTempUsageDetail_20' ) start [2025-02-19 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512767', 'tblTempUsageDetail_20' ) end [2025-02-19 20:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:14:25] Production.INFO: ==21768== Releasing lock... [2025-02-19 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:14:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:15:05 [end_date_ymd] => 2025-02-19 20:15:05 [RateCDR] => 1 ) [2025-02-19 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:15:05' and `end` < '2025-02-19 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:15:17] Production.INFO: count ==4755 [2025-02-19 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:15:05 - End Time 2025-02-19 20:15:05 [2025-02-19 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512772', 'tblTempUsageDetail_20' ) start [2025-02-19 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512772', 'tblTempUsageDetail_20' ) end [2025-02-19 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512772', 'tblTempVendorCDR_20' ) start [2025-02-19 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512772', 'tblTempVendorCDR_20' ) end [2025-02-19 20:15:20] Production.INFO: ProcessCDR(1,14512772,1,1,2) [2025-02-19 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512772', 'tblTempUsageDetail_20' ) start [2025-02-19 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512772', 'tblTempUsageDetail_20' ) end [2025-02-19 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:15:25] Production.INFO: ==21907== Releasing lock... [2025-02-19 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:15:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:16:05 [end_date_ymd] => 2025-02-19 20:16:05 [RateCDR] => 1 ) [2025-02-19 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:16:05' and `end` < '2025-02-19 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:16:18] Production.INFO: count ==4756 [2025-02-19 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:16:05 - End Time 2025-02-19 20:16:05 [2025-02-19 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512777', 'tblTempUsageDetail_20' ) start [2025-02-19 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512777', 'tblTempUsageDetail_20' ) end [2025-02-19 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512777', 'tblTempVendorCDR_20' ) start [2025-02-19 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512777', 'tblTempVendorCDR_20' ) end [2025-02-19 20:16:20] Production.INFO: ProcessCDR(1,14512777,1,1,2) [2025-02-19 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512777', 'tblTempUsageDetail_20' ) start [2025-02-19 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512777', 'tblTempUsageDetail_20' ) end [2025-02-19 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:16:24] Production.INFO: ==22004== Releasing lock... [2025-02-19 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:16:24] Production.INFO: 63.5 MB #Memory Used# [2025-02-19 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:17:04 [end_date_ymd] => 2025-02-19 20:17:04 [RateCDR] => 1 ) [2025-02-19 20:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:17:04' and `end` < '2025-02-19 20:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:17:17] Production.INFO: count ==4741 [2025-02-19 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:17:04 - End Time 2025-02-19 20:17:04 [2025-02-19 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512782', 'tblTempUsageDetail_20' ) start [2025-02-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512782', 'tblTempUsageDetail_20' ) end [2025-02-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512782', 'tblTempVendorCDR_20' ) start [2025-02-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512782', 'tblTempVendorCDR_20' ) end [2025-02-19 20:17:19] Production.INFO: ProcessCDR(1,14512782,1,1,2) [2025-02-19 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512782', 'tblTempUsageDetail_20' ) start [2025-02-19 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512782', 'tblTempUsageDetail_20' ) end [2025-02-19 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:17:24] Production.INFO: ==22106== Releasing lock... [2025-02-19 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:17:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:18:05 [end_date_ymd] => 2025-02-19 20:18:05 [RateCDR] => 1 ) [2025-02-19 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:18:05' and `end` < '2025-02-19 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:18:17] Production.INFO: count ==4726 [2025-02-19 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:18:05 - End Time 2025-02-19 20:18:05 [2025-02-19 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512787', 'tblTempUsageDetail_20' ) start [2025-02-19 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512787', 'tblTempUsageDetail_20' ) end [2025-02-19 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512787', 'tblTempVendorCDR_20' ) start [2025-02-19 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512787', 'tblTempVendorCDR_20' ) end [2025-02-19 20:18:20] Production.INFO: ProcessCDR(1,14512787,1,1,2) [2025-02-19 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512787', 'tblTempUsageDetail_20' ) start [2025-02-19 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512787', 'tblTempUsageDetail_20' ) end [2025-02-19 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:18:25] Production.INFO: ==22218== Releasing lock... [2025-02-19 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:18:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:19:05 [end_date_ymd] => 2025-02-19 20:19:05 [RateCDR] => 1 ) [2025-02-19 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:19:05' and `end` < '2025-02-19 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:19:18] Production.INFO: count ==4712 [2025-02-19 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:19:05 - End Time 2025-02-19 20:19:05 [2025-02-19 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512792', 'tblTempUsageDetail_20' ) start [2025-02-19 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512792', 'tblTempUsageDetail_20' ) end [2025-02-19 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512792', 'tblTempVendorCDR_20' ) start [2025-02-19 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512792', 'tblTempVendorCDR_20' ) end [2025-02-19 20:19:20] Production.INFO: ProcessCDR(1,14512792,1,1,2) [2025-02-19 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512792', 'tblTempUsageDetail_20' ) start [2025-02-19 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512792', 'tblTempUsageDetail_20' ) end [2025-02-19 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:19:25] Production.INFO: ==22317== Releasing lock... [2025-02-19 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:19:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-19 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:20:06 [end_date_ymd] => 2025-02-19 20:20:06 [RateCDR] => 1 ) [2025-02-19 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:20:06' and `end` < '2025-02-19 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:20:19] Production.INFO: count ==4710 [2025-02-19 20:20:21] Production.ERROR: pbx CDR StartTime 2025-02-19 17:20:06 - End Time 2025-02-19 20:20:06 [2025-02-19 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512798', 'tblTempUsageDetail_20' ) start [2025-02-19 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512798', 'tblTempUsageDetail_20' ) end [2025-02-19 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512798', 'tblTempVendorCDR_20' ) start [2025-02-19 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512798', 'tblTempVendorCDR_20' ) end [2025-02-19 20:20:21] Production.INFO: ProcessCDR(1,14512798,1,1,2) [2025-02-19 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512798', 'tblTempUsageDetail_20' ) start [2025-02-19 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512798', 'tblTempUsageDetail_20' ) end [2025-02-19 20:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:20:26] Production.INFO: ==22417== Releasing lock... [2025-02-19 20:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:20:26] Production.INFO: 63 MB #Memory Used# [2025-02-19 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:21:05 [end_date_ymd] => 2025-02-19 20:21:05 [RateCDR] => 1 ) [2025-02-19 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:21:05' and `end` < '2025-02-19 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:21:17] Production.INFO: count ==4683 [2025-02-19 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:21:05 - End Time 2025-02-19 20:21:05 [2025-02-19 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512803', 'tblTempUsageDetail_20' ) start [2025-02-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512803', 'tblTempUsageDetail_20' ) end [2025-02-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512803', 'tblTempVendorCDR_20' ) start [2025-02-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512803', 'tblTempVendorCDR_20' ) end [2025-02-19 20:21:19] Production.INFO: ProcessCDR(1,14512803,1,1,2) [2025-02-19 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512803', 'tblTempUsageDetail_20' ) start [2025-02-19 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512803', 'tblTempUsageDetail_20' ) end [2025-02-19 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:21:24] Production.INFO: ==22520== Releasing lock... [2025-02-19 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:21:24] Production.INFO: 63 MB #Memory Used# [2025-02-19 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:22:05 [end_date_ymd] => 2025-02-19 20:22:05 [RateCDR] => 1 ) [2025-02-19 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:22:05' and `end` < '2025-02-19 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:22:17] Production.INFO: count ==4684 [2025-02-19 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:22:05 - End Time 2025-02-19 20:22:05 [2025-02-19 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512808', 'tblTempUsageDetail_20' ) start [2025-02-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512808', 'tblTempUsageDetail_20' ) end [2025-02-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512808', 'tblTempVendorCDR_20' ) start [2025-02-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512808', 'tblTempVendorCDR_20' ) end [2025-02-19 20:22:19] Production.INFO: ProcessCDR(1,14512808,1,1,2) [2025-02-19 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512808', 'tblTempUsageDetail_20' ) start [2025-02-19 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512808', 'tblTempUsageDetail_20' ) end [2025-02-19 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:22:24] Production.INFO: ==22620== Releasing lock... [2025-02-19 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:22:24] Production.INFO: 63 MB #Memory Used# [2025-02-19 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:23:05 [end_date_ymd] => 2025-02-19 20:23:05 [RateCDR] => 1 ) [2025-02-19 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:23:05' and `end` < '2025-02-19 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:23:17] Production.INFO: count ==4686 [2025-02-19 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:23:05 - End Time 2025-02-19 20:23:05 [2025-02-19 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512813', 'tblTempUsageDetail_20' ) start [2025-02-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512813', 'tblTempUsageDetail_20' ) end [2025-02-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512813', 'tblTempVendorCDR_20' ) start [2025-02-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512813', 'tblTempVendorCDR_20' ) end [2025-02-19 20:23:19] Production.INFO: ProcessCDR(1,14512813,1,1,2) [2025-02-19 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512813', 'tblTempUsageDetail_20' ) start [2025-02-19 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512813', 'tblTempUsageDetail_20' ) end [2025-02-19 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:23:24] Production.INFO: ==22716== Releasing lock... [2025-02-19 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:23:24] Production.INFO: 63 MB #Memory Used# [2025-02-19 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:24:05 [end_date_ymd] => 2025-02-19 20:24:05 [RateCDR] => 1 ) [2025-02-19 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:24:05' and `end` < '2025-02-19 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:24:18] Production.INFO: count ==4691 [2025-02-19 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:24:05 - End Time 2025-02-19 20:24:05 [2025-02-19 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512818', 'tblTempUsageDetail_20' ) start [2025-02-19 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512818', 'tblTempUsageDetail_20' ) end [2025-02-19 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512818', 'tblTempVendorCDR_20' ) start [2025-02-19 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512818', 'tblTempVendorCDR_20' ) end [2025-02-19 20:24:20] Production.INFO: ProcessCDR(1,14512818,1,1,2) [2025-02-19 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512818', 'tblTempUsageDetail_20' ) start [2025-02-19 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512818', 'tblTempUsageDetail_20' ) end [2025-02-19 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:24:25] Production.INFO: ==22809== Releasing lock... [2025-02-19 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:24:25] Production.INFO: 63 MB #Memory Used# [2025-02-19 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:25:06 [end_date_ymd] => 2025-02-19 20:25:06 [RateCDR] => 1 ) [2025-02-19 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:25:06' and `end` < '2025-02-19 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:25:18] Production.INFO: count ==4674 [2025-02-19 20:25:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:25:06 - End Time 2025-02-19 20:25:06 [2025-02-19 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512823', 'tblTempUsageDetail_20' ) start [2025-02-19 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512823', 'tblTempUsageDetail_20' ) end [2025-02-19 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512823', 'tblTempVendorCDR_20' ) start [2025-02-19 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512823', 'tblTempVendorCDR_20' ) end [2025-02-19 20:25:20] Production.INFO: ProcessCDR(1,14512823,1,1,2) [2025-02-19 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512823', 'tblTempUsageDetail_20' ) start [2025-02-19 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512823', 'tblTempUsageDetail_20' ) end [2025-02-19 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:25:24] Production.INFO: ==22904== Releasing lock... [2025-02-19 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:25:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:26:05 [end_date_ymd] => 2025-02-19 20:26:05 [RateCDR] => 1 ) [2025-02-19 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:26:05' and `end` < '2025-02-19 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:26:17] Production.INFO: count ==4670 [2025-02-19 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:26:05 - End Time 2025-02-19 20:26:05 [2025-02-19 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512828', 'tblTempUsageDetail_20' ) start [2025-02-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512828', 'tblTempUsageDetail_20' ) end [2025-02-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512828', 'tblTempVendorCDR_20' ) start [2025-02-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512828', 'tblTempVendorCDR_20' ) end [2025-02-19 20:26:19] Production.INFO: ProcessCDR(1,14512828,1,1,2) [2025-02-19 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512828', 'tblTempUsageDetail_20' ) start [2025-02-19 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512828', 'tblTempUsageDetail_20' ) end [2025-02-19 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:26:22] Production.INFO: ==23000== Releasing lock... [2025-02-19 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:26:22] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:27:05 [end_date_ymd] => 2025-02-19 20:27:05 [RateCDR] => 1 ) [2025-02-19 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:27:05' and `end` < '2025-02-19 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:27:17] Production.INFO: count ==4671 [2025-02-19 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:27:05 - End Time 2025-02-19 20:27:05 [2025-02-19 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512833', 'tblTempUsageDetail_20' ) start [2025-02-19 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512833', 'tblTempUsageDetail_20' ) end [2025-02-19 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512833', 'tblTempVendorCDR_20' ) start [2025-02-19 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512833', 'tblTempVendorCDR_20' ) end [2025-02-19 20:27:20] Production.INFO: ProcessCDR(1,14512833,1,1,2) [2025-02-19 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512833', 'tblTempUsageDetail_20' ) start [2025-02-19 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512833', 'tblTempUsageDetail_20' ) end [2025-02-19 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:27:23] Production.INFO: ==23097== Releasing lock... [2025-02-19 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:27:23] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:28:05 [end_date_ymd] => 2025-02-19 20:28:05 [RateCDR] => 1 ) [2025-02-19 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:28:05' and `end` < '2025-02-19 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:28:17] Production.INFO: count ==4670 [2025-02-19 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:28:05 - End Time 2025-02-19 20:28:05 [2025-02-19 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512838', 'tblTempUsageDetail_20' ) start [2025-02-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512838', 'tblTempUsageDetail_20' ) end [2025-02-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512838', 'tblTempVendorCDR_20' ) start [2025-02-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512838', 'tblTempVendorCDR_20' ) end [2025-02-19 20:28:19] Production.INFO: ProcessCDR(1,14512838,1,1,2) [2025-02-19 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512838', 'tblTempUsageDetail_20' ) start [2025-02-19 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512838', 'tblTempUsageDetail_20' ) end [2025-02-19 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:28:24] Production.INFO: ==23200== Releasing lock... [2025-02-19 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:28:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:29:05 [end_date_ymd] => 2025-02-19 20:29:05 [RateCDR] => 1 ) [2025-02-19 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:29:05' and `end` < '2025-02-19 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:29:18] Production.INFO: count ==4662 [2025-02-19 20:29:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:29:05 - End Time 2025-02-19 20:29:05 [2025-02-19 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512843', 'tblTempUsageDetail_20' ) start [2025-02-19 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512843', 'tblTempUsageDetail_20' ) end [2025-02-19 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512843', 'tblTempVendorCDR_20' ) start [2025-02-19 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512843', 'tblTempVendorCDR_20' ) end [2025-02-19 20:29:20] Production.INFO: ProcessCDR(1,14512843,1,1,2) [2025-02-19 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512843', 'tblTempUsageDetail_20' ) start [2025-02-19 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512843', 'tblTempUsageDetail_20' ) end [2025-02-19 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:29:24] Production.INFO: ==23297== Releasing lock... [2025-02-19 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:29:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:30:05 [end_date_ymd] => 2025-02-19 20:30:05 [RateCDR] => 1 ) [2025-02-19 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:30:05' and `end` < '2025-02-19 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:30:18] Production.INFO: count ==4665 [2025-02-19 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:30:05 - End Time 2025-02-19 20:30:05 [2025-02-19 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512848', 'tblTempUsageDetail_20' ) start [2025-02-19 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512848', 'tblTempUsageDetail_20' ) end [2025-02-19 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512848', 'tblTempVendorCDR_20' ) start [2025-02-19 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512848', 'tblTempVendorCDR_20' ) end [2025-02-19 20:30:20] Production.INFO: ProcessCDR(1,14512848,1,1,2) [2025-02-19 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512848', 'tblTempUsageDetail_20' ) start [2025-02-19 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512848', 'tblTempUsageDetail_20' ) end [2025-02-19 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:30:25] Production.INFO: ==23408== Releasing lock... [2025-02-19 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:30:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-19 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:31:05 [end_date_ymd] => 2025-02-19 20:31:05 [RateCDR] => 1 ) [2025-02-19 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:31:05' and `end` < '2025-02-19 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:31:18] Production.INFO: count ==4636 [2025-02-19 20:31:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:31:05 - End Time 2025-02-19 20:31:05 [2025-02-19 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512854', 'tblTempUsageDetail_20' ) start [2025-02-19 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512854', 'tblTempUsageDetail_20' ) end [2025-02-19 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512854', 'tblTempVendorCDR_20' ) start [2025-02-19 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512854', 'tblTempVendorCDR_20' ) end [2025-02-19 20:31:20] Production.INFO: ProcessCDR(1,14512854,1,1,2) [2025-02-19 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512854', 'tblTempUsageDetail_20' ) start [2025-02-19 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512854', 'tblTempUsageDetail_20' ) end [2025-02-19 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:31:25] Production.INFO: ==23549== Releasing lock... [2025-02-19 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:31:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:32:05 [end_date_ymd] => 2025-02-19 20:32:05 [RateCDR] => 1 ) [2025-02-19 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:32:05' and `end` < '2025-02-19 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:32:17] Production.INFO: count ==4631 [2025-02-19 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:32:05 - End Time 2025-02-19 20:32:05 [2025-02-19 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512859', 'tblTempUsageDetail_20' ) start [2025-02-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512859', 'tblTempUsageDetail_20' ) end [2025-02-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512859', 'tblTempVendorCDR_20' ) start [2025-02-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512859', 'tblTempVendorCDR_20' ) end [2025-02-19 20:32:19] Production.INFO: ProcessCDR(1,14512859,1,1,2) [2025-02-19 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512859', 'tblTempUsageDetail_20' ) start [2025-02-19 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512859', 'tblTempUsageDetail_20' ) end [2025-02-19 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:32:24] Production.INFO: ==23643== Releasing lock... [2025-02-19 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:32:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:33:05 [end_date_ymd] => 2025-02-19 20:33:05 [RateCDR] => 1 ) [2025-02-19 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:33:05' and `end` < '2025-02-19 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:33:18] Production.INFO: count ==4629 [2025-02-19 20:33:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:33:05 - End Time 2025-02-19 20:33:05 [2025-02-19 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512864', 'tblTempUsageDetail_20' ) start [2025-02-19 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512864', 'tblTempUsageDetail_20' ) end [2025-02-19 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512864', 'tblTempVendorCDR_20' ) start [2025-02-19 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512864', 'tblTempVendorCDR_20' ) end [2025-02-19 20:33:20] Production.INFO: ProcessCDR(1,14512864,1,1,2) [2025-02-19 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512864', 'tblTempUsageDetail_20' ) start [2025-02-19 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512864', 'tblTempUsageDetail_20' ) end [2025-02-19 20:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:33:25] Production.INFO: ==23740== Releasing lock... [2025-02-19 20:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:33:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:34:05 [end_date_ymd] => 2025-02-19 20:34:05 [RateCDR] => 1 ) [2025-02-19 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:34:05' and `end` < '2025-02-19 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:34:17] Production.INFO: count ==4625 [2025-02-19 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:34:05 - End Time 2025-02-19 20:34:05 [2025-02-19 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512869', 'tblTempUsageDetail_20' ) start [2025-02-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512869', 'tblTempUsageDetail_20' ) end [2025-02-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512869', 'tblTempVendorCDR_20' ) start [2025-02-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512869', 'tblTempVendorCDR_20' ) end [2025-02-19 20:34:19] Production.INFO: ProcessCDR(1,14512869,1,1,2) [2025-02-19 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512869', 'tblTempUsageDetail_20' ) start [2025-02-19 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512869', 'tblTempUsageDetail_20' ) end [2025-02-19 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:34:23] Production.INFO: ==23839== Releasing lock... [2025-02-19 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:34:23] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:35:05 [end_date_ymd] => 2025-02-19 20:35:05 [RateCDR] => 1 ) [2025-02-19 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:35:05' and `end` < '2025-02-19 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:35:18] Production.INFO: count ==4618 [2025-02-19 20:35:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:35:05 - End Time 2025-02-19 20:35:05 [2025-02-19 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512874', 'tblTempUsageDetail_20' ) start [2025-02-19 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512874', 'tblTempUsageDetail_20' ) end [2025-02-19 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512874', 'tblTempVendorCDR_20' ) start [2025-02-19 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512874', 'tblTempVendorCDR_20' ) end [2025-02-19 20:35:20] Production.INFO: ProcessCDR(1,14512874,1,1,2) [2025-02-19 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512874', 'tblTempUsageDetail_20' ) start [2025-02-19 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512874', 'tblTempUsageDetail_20' ) end [2025-02-19 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:35:24] Production.INFO: ==23940== Releasing lock... [2025-02-19 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:35:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-19 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:36:05 [end_date_ymd] => 2025-02-19 20:36:05 [RateCDR] => 1 ) [2025-02-19 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:36:05' and `end` < '2025-02-19 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:36:17] Production.INFO: count ==4608 [2025-02-19 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:36:05 - End Time 2025-02-19 20:36:05 [2025-02-19 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512879', 'tblTempUsageDetail_20' ) start [2025-02-19 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512879', 'tblTempUsageDetail_20' ) end [2025-02-19 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512879', 'tblTempVendorCDR_20' ) start [2025-02-19 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512879', 'tblTempVendorCDR_20' ) end [2025-02-19 20:36:19] Production.INFO: ProcessCDR(1,14512879,1,1,2) [2025-02-19 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512879', 'tblTempUsageDetail_20' ) start [2025-02-19 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512879', 'tblTempUsageDetail_20' ) end [2025-02-19 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:36:22] Production.INFO: ==24036== Releasing lock... [2025-02-19 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:36:22] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:37:06 [end_date_ymd] => 2025-02-19 20:37:06 [RateCDR] => 1 ) [2025-02-19 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:37:06' and `end` < '2025-02-19 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:37:18] Production.INFO: count ==4607 [2025-02-19 20:37:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:37:06 - End Time 2025-02-19 20:37:06 [2025-02-19 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512884', 'tblTempUsageDetail_20' ) start [2025-02-19 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512884', 'tblTempUsageDetail_20' ) end [2025-02-19 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512884', 'tblTempVendorCDR_20' ) start [2025-02-19 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512884', 'tblTempVendorCDR_20' ) end [2025-02-19 20:37:20] Production.INFO: ProcessCDR(1,14512884,1,1,2) [2025-02-19 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512884', 'tblTempUsageDetail_20' ) start [2025-02-19 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512884', 'tblTempUsageDetail_20' ) end [2025-02-19 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:37:23] Production.INFO: ==24133== Releasing lock... [2025-02-19 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:37:23] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:38:05 [end_date_ymd] => 2025-02-19 20:38:05 [RateCDR] => 1 ) [2025-02-19 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:38:05' and `end` < '2025-02-19 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:38:17] Production.INFO: count ==4608 [2025-02-19 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:38:05 - End Time 2025-02-19 20:38:05 [2025-02-19 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512889', 'tblTempUsageDetail_20' ) start [2025-02-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512889', 'tblTempUsageDetail_20' ) end [2025-02-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512889', 'tblTempVendorCDR_20' ) start [2025-02-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512889', 'tblTempVendorCDR_20' ) end [2025-02-19 20:38:19] Production.INFO: ProcessCDR(1,14512889,1,1,2) [2025-02-19 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512889', 'tblTempUsageDetail_20' ) start [2025-02-19 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512889', 'tblTempUsageDetail_20' ) end [2025-02-19 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:38:23] Production.INFO: ==24234== Releasing lock... [2025-02-19 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:38:23] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:39:05 [end_date_ymd] => 2025-02-19 20:39:05 [RateCDR] => 1 ) [2025-02-19 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:39:05' and `end` < '2025-02-19 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:39:17] Production.INFO: count ==4602 [2025-02-19 20:39:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:39:05 - End Time 2025-02-19 20:39:05 [2025-02-19 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512894', 'tblTempUsageDetail_20' ) start [2025-02-19 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512894', 'tblTempUsageDetail_20' ) end [2025-02-19 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512894', 'tblTempVendorCDR_20' ) start [2025-02-19 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512894', 'tblTempVendorCDR_20' ) end [2025-02-19 20:39:20] Production.INFO: ProcessCDR(1,14512894,1,1,2) [2025-02-19 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512894', 'tblTempUsageDetail_20' ) start [2025-02-19 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512894', 'tblTempUsageDetail_20' ) end [2025-02-19 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:39:23] Production.INFO: ==24327== Releasing lock... [2025-02-19 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:39:23] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:40:06 [end_date_ymd] => 2025-02-19 20:40:06 [RateCDR] => 1 ) [2025-02-19 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:40:06' and `end` < '2025-02-19 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:40:18] Production.INFO: count ==4605 [2025-02-19 20:40:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:40:06 - End Time 2025-02-19 20:40:06 [2025-02-19 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512900', 'tblTempUsageDetail_20' ) start [2025-02-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512900', 'tblTempUsageDetail_20' ) end [2025-02-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512900', 'tblTempVendorCDR_20' ) start [2025-02-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512900', 'tblTempVendorCDR_20' ) end [2025-02-19 20:40:20] Production.INFO: ProcessCDR(1,14512900,1,1,2) [2025-02-19 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512900', 'tblTempUsageDetail_20' ) start [2025-02-19 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512900', 'tblTempUsageDetail_20' ) end [2025-02-19 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:40:24] Production.INFO: ==24424== Releasing lock... [2025-02-19 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:40:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-19 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:41:06 [end_date_ymd] => 2025-02-19 20:41:06 [RateCDR] => 1 ) [2025-02-19 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:41:06' and `end` < '2025-02-19 20:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:41:18] Production.INFO: count ==4569 [2025-02-19 20:41:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:41:06 - End Time 2025-02-19 20:41:06 [2025-02-19 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512905', 'tblTempUsageDetail_20' ) start [2025-02-19 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512905', 'tblTempUsageDetail_20' ) end [2025-02-19 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512905', 'tblTempVendorCDR_20' ) start [2025-02-19 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512905', 'tblTempVendorCDR_20' ) end [2025-02-19 20:41:20] Production.INFO: ProcessCDR(1,14512905,1,1,2) [2025-02-19 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512905', 'tblTempUsageDetail_20' ) start [2025-02-19 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512905', 'tblTempUsageDetail_20' ) end [2025-02-19 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:41:25] Production.INFO: ==24521== Releasing lock... [2025-02-19 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:41:25] Production.INFO: 62 MB #Memory Used# [2025-02-19 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:42:05 [end_date_ymd] => 2025-02-19 20:42:05 [RateCDR] => 1 ) [2025-02-19 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:42:05' and `end` < '2025-02-19 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:42:17] Production.INFO: count ==4569 [2025-02-19 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:42:05 - End Time 2025-02-19 20:42:05 [2025-02-19 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512910', 'tblTempUsageDetail_20' ) start [2025-02-19 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512910', 'tblTempUsageDetail_20' ) end [2025-02-19 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512910', 'tblTempVendorCDR_20' ) start [2025-02-19 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512910', 'tblTempVendorCDR_20' ) end [2025-02-19 20:42:20] Production.INFO: ProcessCDR(1,14512910,1,1,2) [2025-02-19 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512910', 'tblTempUsageDetail_20' ) start [2025-02-19 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512910', 'tblTempUsageDetail_20' ) end [2025-02-19 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:42:23] Production.INFO: ==24613== Releasing lock... [2025-02-19 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:42:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:43:05 [end_date_ymd] => 2025-02-19 20:43:05 [RateCDR] => 1 ) [2025-02-19 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:43:05' and `end` < '2025-02-19 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:43:17] Production.INFO: count ==4554 [2025-02-19 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:43:05 - End Time 2025-02-19 20:43:05 [2025-02-19 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512915', 'tblTempUsageDetail_20' ) start [2025-02-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512915', 'tblTempUsageDetail_20' ) end [2025-02-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512915', 'tblTempVendorCDR_20' ) start [2025-02-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512915', 'tblTempVendorCDR_20' ) end [2025-02-19 20:43:19] Production.INFO: ProcessCDR(1,14512915,1,1,2) [2025-02-19 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512915', 'tblTempUsageDetail_20' ) start [2025-02-19 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512915', 'tblTempUsageDetail_20' ) end [2025-02-19 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:43:23] Production.INFO: ==24715== Releasing lock... [2025-02-19 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:43:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:44:05 [end_date_ymd] => 2025-02-19 20:44:05 [RateCDR] => 1 ) [2025-02-19 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:44:05' and `end` < '2025-02-19 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:44:18] Production.INFO: count ==4551 [2025-02-19 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:44:05 - End Time 2025-02-19 20:44:05 [2025-02-19 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512920', 'tblTempUsageDetail_20' ) start [2025-02-19 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512920', 'tblTempUsageDetail_20' ) end [2025-02-19 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512920', 'tblTempVendorCDR_20' ) start [2025-02-19 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512920', 'tblTempVendorCDR_20' ) end [2025-02-19 20:44:20] Production.INFO: ProcessCDR(1,14512920,1,1,2) [2025-02-19 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512920', 'tblTempUsageDetail_20' ) start [2025-02-19 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512920', 'tblTempUsageDetail_20' ) end [2025-02-19 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:44:23] Production.INFO: ==24807== Releasing lock... [2025-02-19 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:44:23] Production.INFO: 62 MB #Memory Used# [2025-02-19 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:45:05 [end_date_ymd] => 2025-02-19 20:45:05 [RateCDR] => 1 ) [2025-02-19 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:45:05' and `end` < '2025-02-19 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:45:17] Production.INFO: count ==4538 [2025-02-19 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:45:05 - End Time 2025-02-19 20:45:05 [2025-02-19 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512925', 'tblTempUsageDetail_20' ) start [2025-02-19 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512925', 'tblTempUsageDetail_20' ) end [2025-02-19 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512925', 'tblTempVendorCDR_20' ) start [2025-02-19 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512925', 'tblTempVendorCDR_20' ) end [2025-02-19 20:45:19] Production.INFO: ProcessCDR(1,14512925,1,1,2) [2025-02-19 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512925', 'tblTempUsageDetail_20' ) start [2025-02-19 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512925', 'tblTempUsageDetail_20' ) end [2025-02-19 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:45:23] Production.INFO: ==24901== Releasing lock... [2025-02-19 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:45:23] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:46:05 [end_date_ymd] => 2025-02-19 20:46:05 [RateCDR] => 1 ) [2025-02-19 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:46:05' and `end` < '2025-02-19 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:46:18] Production.INFO: count ==4526 [2025-02-19 20:46:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:46:05 - End Time 2025-02-19 20:46:05 [2025-02-19 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512930', 'tblTempUsageDetail_20' ) start [2025-02-19 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512930', 'tblTempUsageDetail_20' ) end [2025-02-19 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512930', 'tblTempVendorCDR_20' ) start [2025-02-19 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512930', 'tblTempVendorCDR_20' ) end [2025-02-19 20:46:20] Production.INFO: ProcessCDR(1,14512930,1,1,2) [2025-02-19 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512930', 'tblTempUsageDetail_20' ) start [2025-02-19 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512930', 'tblTempUsageDetail_20' ) end [2025-02-19 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:46:23] Production.INFO: ==25044== Releasing lock... [2025-02-19 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:46:23] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:47:05 [end_date_ymd] => 2025-02-19 20:47:05 [RateCDR] => 1 ) [2025-02-19 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:47:05' and `end` < '2025-02-19 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:47:18] Production.INFO: count ==4517 [2025-02-19 20:47:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:47:05 - End Time 2025-02-19 20:47:05 [2025-02-19 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512935', 'tblTempUsageDetail_20' ) start [2025-02-19 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512935', 'tblTempUsageDetail_20' ) end [2025-02-19 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512935', 'tblTempVendorCDR_20' ) start [2025-02-19 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512935', 'tblTempVendorCDR_20' ) end [2025-02-19 20:47:20] Production.INFO: ProcessCDR(1,14512935,1,1,2) [2025-02-19 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512935', 'tblTempUsageDetail_20' ) start [2025-02-19 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512935', 'tblTempUsageDetail_20' ) end [2025-02-19 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:47:23] Production.INFO: ==25139== Releasing lock... [2025-02-19 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:47:23] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:48:06 [end_date_ymd] => 2025-02-19 20:48:06 [RateCDR] => 1 ) [2025-02-19 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:48:06' and `end` < '2025-02-19 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:48:18] Production.INFO: count ==4509 [2025-02-19 20:48:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:48:06 - End Time 2025-02-19 20:48:06 [2025-02-19 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512940', 'tblTempUsageDetail_20' ) start [2025-02-19 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512940', 'tblTempUsageDetail_20' ) end [2025-02-19 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512940', 'tblTempVendorCDR_20' ) start [2025-02-19 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512940', 'tblTempVendorCDR_20' ) end [2025-02-19 20:48:20] Production.INFO: ProcessCDR(1,14512940,1,1,2) [2025-02-19 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512940', 'tblTempUsageDetail_20' ) start [2025-02-19 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512940', 'tblTempUsageDetail_20' ) end [2025-02-19 20:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:48:25] Production.INFO: ==25244== Releasing lock... [2025-02-19 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:48:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-19 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:49:04 [end_date_ymd] => 2025-02-19 20:49:04 [RateCDR] => 1 ) [2025-02-19 20:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:49:04' and `end` < '2025-02-19 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:49:17] Production.INFO: count ==4509 [2025-02-19 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:49:04 - End Time 2025-02-19 20:49:04 [2025-02-19 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512945', 'tblTempUsageDetail_20' ) start [2025-02-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512945', 'tblTempUsageDetail_20' ) end [2025-02-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512945', 'tblTempVendorCDR_20' ) start [2025-02-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512945', 'tblTempVendorCDR_20' ) end [2025-02-19 20:49:19] Production.INFO: ProcessCDR(1,14512945,1,1,2) [2025-02-19 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512945', 'tblTempUsageDetail_20' ) start [2025-02-19 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512945', 'tblTempUsageDetail_20' ) end [2025-02-19 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:49:22] Production.INFO: ==25371== Releasing lock... [2025-02-19 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:49:22] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:50:07 [end_date_ymd] => 2025-02-19 20:50:07 [RateCDR] => 1 ) [2025-02-19 20:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:50:07' and `end` < '2025-02-19 20:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:50:19] Production.INFO: count ==4510 [2025-02-19 20:50:21] Production.ERROR: pbx CDR StartTime 2025-02-19 17:50:07 - End Time 2025-02-19 20:50:07 [2025-02-19 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512951', 'tblTempUsageDetail_20' ) start [2025-02-19 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512951', 'tblTempUsageDetail_20' ) end [2025-02-19 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512951', 'tblTempVendorCDR_20' ) start [2025-02-19 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512951', 'tblTempVendorCDR_20' ) end [2025-02-19 20:50:21] Production.INFO: ProcessCDR(1,14512951,1,1,2) [2025-02-19 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512951', 'tblTempUsageDetail_20' ) start [2025-02-19 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512951', 'tblTempUsageDetail_20' ) end [2025-02-19 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:50:25] Production.INFO: ==25480== Releasing lock... [2025-02-19 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:50:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-19 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:51:05 [end_date_ymd] => 2025-02-19 20:51:05 [RateCDR] => 1 ) [2025-02-19 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:51:05' and `end` < '2025-02-19 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:51:17] Production.INFO: count ==4466 [2025-02-19 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:51:05 - End Time 2025-02-19 20:51:05 [2025-02-19 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512956', 'tblTempUsageDetail_20' ) start [2025-02-19 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512956', 'tblTempUsageDetail_20' ) end [2025-02-19 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512956', 'tblTempVendorCDR_20' ) start [2025-02-19 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512956', 'tblTempVendorCDR_20' ) end [2025-02-19 20:51:19] Production.INFO: ProcessCDR(1,14512956,1,1,2) [2025-02-19 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512956', 'tblTempUsageDetail_20' ) start [2025-02-19 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512956', 'tblTempUsageDetail_20' ) end [2025-02-19 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:51:23] Production.INFO: ==25599== Releasing lock... [2025-02-19 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:51:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:52:06 [end_date_ymd] => 2025-02-19 20:52:06 [RateCDR] => 1 ) [2025-02-19 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:52:06' and `end` < '2025-02-19 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:52:18] Production.INFO: count ==4453 [2025-02-19 20:52:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:52:06 - End Time 2025-02-19 20:52:06 [2025-02-19 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512961', 'tblTempUsageDetail_20' ) start [2025-02-19 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512961', 'tblTempUsageDetail_20' ) end [2025-02-19 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512961', 'tblTempVendorCDR_20' ) start [2025-02-19 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512961', 'tblTempVendorCDR_20' ) end [2025-02-19 20:52:20] Production.INFO: ProcessCDR(1,14512961,1,1,2) [2025-02-19 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512961', 'tblTempUsageDetail_20' ) start [2025-02-19 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512961', 'tblTempUsageDetail_20' ) end [2025-02-19 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:52:23] Production.INFO: ==25698== Releasing lock... [2025-02-19 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:52:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:53:05 [end_date_ymd] => 2025-02-19 20:53:05 [RateCDR] => 1 ) [2025-02-19 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:53:05' and `end` < '2025-02-19 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:53:17] Production.INFO: count ==4455 [2025-02-19 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:53:05 - End Time 2025-02-19 20:53:05 [2025-02-19 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512966', 'tblTempUsageDetail_20' ) start [2025-02-19 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512966', 'tblTempUsageDetail_20' ) end [2025-02-19 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512966', 'tblTempVendorCDR_20' ) start [2025-02-19 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512966', 'tblTempVendorCDR_20' ) end [2025-02-19 20:53:19] Production.INFO: ProcessCDR(1,14512966,1,1,2) [2025-02-19 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512966', 'tblTempUsageDetail_20' ) start [2025-02-19 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512966', 'tblTempUsageDetail_20' ) end [2025-02-19 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:53:22] Production.INFO: ==25842== Releasing lock... [2025-02-19 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:53:22] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:54:05 [end_date_ymd] => 2025-02-19 20:54:05 [RateCDR] => 1 ) [2025-02-19 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:54:05' and `end` < '2025-02-19 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:54:18] Production.INFO: count ==4453 [2025-02-19 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:54:05 - End Time 2025-02-19 20:54:05 [2025-02-19 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512971', 'tblTempUsageDetail_20' ) start [2025-02-19 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512971', 'tblTempUsageDetail_20' ) end [2025-02-19 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512971', 'tblTempVendorCDR_20' ) start [2025-02-19 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512971', 'tblTempVendorCDR_20' ) end [2025-02-19 20:54:20] Production.INFO: ProcessCDR(1,14512971,1,1,2) [2025-02-19 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512971', 'tblTempUsageDetail_20' ) start [2025-02-19 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512971', 'tblTempUsageDetail_20' ) end [2025-02-19 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:54:24] Production.INFO: ==25948== Releasing lock... [2025-02-19 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:54:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:55:05 [end_date_ymd] => 2025-02-19 20:55:05 [RateCDR] => 1 ) [2025-02-19 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:55:05' and `end` < '2025-02-19 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:55:17] Production.INFO: count ==4452 [2025-02-19 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:55:05 - End Time 2025-02-19 20:55:05 [2025-02-19 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512976', 'tblTempUsageDetail_20' ) start [2025-02-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512976', 'tblTempUsageDetail_20' ) end [2025-02-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512976', 'tblTempVendorCDR_20' ) start [2025-02-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512976', 'tblTempVendorCDR_20' ) end [2025-02-19 20:55:19] Production.INFO: ProcessCDR(1,14512976,1,1,2) [2025-02-19 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512976', 'tblTempUsageDetail_20' ) start [2025-02-19 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512976', 'tblTempUsageDetail_20' ) end [2025-02-19 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:55:24] Production.INFO: ==26073== Releasing lock... [2025-02-19 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:55:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:56:06 [end_date_ymd] => 2025-02-19 20:56:06 [RateCDR] => 1 ) [2025-02-19 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:56:06' and `end` < '2025-02-19 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:56:18] Production.INFO: count ==4445 [2025-02-19 20:56:20] Production.ERROR: pbx CDR StartTime 2025-02-19 17:56:06 - End Time 2025-02-19 20:56:06 [2025-02-19 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512981', 'tblTempUsageDetail_20' ) start [2025-02-19 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512981', 'tblTempUsageDetail_20' ) end [2025-02-19 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512981', 'tblTempVendorCDR_20' ) start [2025-02-19 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512981', 'tblTempVendorCDR_20' ) end [2025-02-19 20:56:20] Production.INFO: ProcessCDR(1,14512981,1,1,2) [2025-02-19 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512981', 'tblTempUsageDetail_20' ) start [2025-02-19 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512981', 'tblTempUsageDetail_20' ) end [2025-02-19 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:56:23] Production.INFO: ==26192== Releasing lock... [2025-02-19 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:56:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-19 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:57:05 [end_date_ymd] => 2025-02-19 20:57:05 [RateCDR] => 1 ) [2025-02-19 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:57:05' and `end` < '2025-02-19 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:57:17] Production.INFO: count ==4440 [2025-02-19 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:57:05 - End Time 2025-02-19 20:57:05 [2025-02-19 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512986', 'tblTempUsageDetail_20' ) start [2025-02-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512986', 'tblTempUsageDetail_20' ) end [2025-02-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512986', 'tblTempVendorCDR_20' ) start [2025-02-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512986', 'tblTempVendorCDR_20' ) end [2025-02-19 20:57:19] Production.INFO: ProcessCDR(1,14512986,1,1,2) [2025-02-19 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512986', 'tblTempUsageDetail_20' ) start [2025-02-19 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512986', 'tblTempUsageDetail_20' ) end [2025-02-19 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:57:22] Production.INFO: ==26329== Releasing lock... [2025-02-19 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:57:22] Production.INFO: 61 MB #Memory Used# [2025-02-19 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:58:05 [end_date_ymd] => 2025-02-19 20:58:05 [RateCDR] => 1 ) [2025-02-19 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:58:05' and `end` < '2025-02-19 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:58:17] Production.INFO: count ==4426 [2025-02-19 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:58:05 - End Time 2025-02-19 20:58:05 [2025-02-19 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512991', 'tblTempUsageDetail_20' ) start [2025-02-19 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512991', 'tblTempUsageDetail_20' ) end [2025-02-19 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512991', 'tblTempVendorCDR_20' ) start [2025-02-19 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512991', 'tblTempVendorCDR_20' ) end [2025-02-19 20:58:20] Production.INFO: ProcessCDR(1,14512991,1,1,2) [2025-02-19 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512991', 'tblTempUsageDetail_20' ) start [2025-02-19 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512991', 'tblTempUsageDetail_20' ) end [2025-02-19 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:58:24] Production.INFO: ==26448== Releasing lock... [2025-02-19 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:58:24] Production.INFO: 61 MB #Memory Used# [2025-02-19 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 17:59:05 [end_date_ymd] => 2025-02-19 20:59:05 [RateCDR] => 1 ) [2025-02-19 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 17:59:05' and `end` < '2025-02-19 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 20:59:17] Production.INFO: count ==4411 [2025-02-19 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-19 17:59:05 - End Time 2025-02-19 20:59:05 [2025-02-19 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512996', 'tblTempUsageDetail_20' ) start [2025-02-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14512996', 'tblTempUsageDetail_20' ) end [2025-02-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512996', 'tblTempVendorCDR_20' ) start [2025-02-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14512996', 'tblTempVendorCDR_20' ) end [2025-02-19 20:59:19] Production.INFO: ProcessCDR(1,14512996,1,1,2) [2025-02-19 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14512996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14512996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14512996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14512996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512996', 'tblTempUsageDetail_20' ) start [2025-02-19 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14512996', 'tblTempUsageDetail_20' ) end [2025-02-19 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 20:59:22] Production.INFO: ==26580== Releasing lock... [2025-02-19 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 20:59:22] Production.INFO: 60.75 MB #Memory Used# [2025-02-19 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:00:06 [end_date_ymd] => 2025-02-19 21:00:06 [RateCDR] => 1 ) [2025-02-19 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:00:06' and `end` < '2025-02-19 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:00:18] Production.INFO: count ==4413 [2025-02-19 21:00:21] Production.ERROR: pbx CDR StartTime 2025-02-19 18:00:06 - End Time 2025-02-19 21:00:06 [2025-02-19 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513002', 'tblTempUsageDetail_20' ) start [2025-02-19 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513002', 'tblTempUsageDetail_20' ) end [2025-02-19 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513002', 'tblTempVendorCDR_20' ) start [2025-02-19 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513002', 'tblTempVendorCDR_20' ) end [2025-02-19 21:00:21] Production.INFO: ProcessCDR(1,14513002,1,1,2) [2025-02-19 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513002', 'tblTempUsageDetail_20' ) start [2025-02-19 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513002', 'tblTempUsageDetail_20' ) end [2025-02-19 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:00:24] Production.INFO: ==26713== Releasing lock... [2025-02-19 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:00:24] Production.INFO: 61 MB #Memory Used# [2025-02-19 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:01:06 [end_date_ymd] => 2025-02-19 21:01:06 [RateCDR] => 1 ) [2025-02-19 21:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:01:06' and `end` < '2025-02-19 21:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:01:18] Production.INFO: count ==4363 [2025-02-19 21:01:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:01:06 - End Time 2025-02-19 21:01:06 [2025-02-19 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513007', 'tblTempUsageDetail_20' ) start [2025-02-19 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513007', 'tblTempUsageDetail_20' ) end [2025-02-19 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513007', 'tblTempVendorCDR_20' ) start [2025-02-19 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513007', 'tblTempVendorCDR_20' ) end [2025-02-19 21:01:20] Production.INFO: ProcessCDR(1,14513007,1,1,2) [2025-02-19 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513007', 'tblTempUsageDetail_20' ) start [2025-02-19 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513007', 'tblTempUsageDetail_20' ) end [2025-02-19 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:01:23] Production.INFO: ==26855== Releasing lock... [2025-02-19 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:01:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:02:05 [end_date_ymd] => 2025-02-19 21:02:05 [RateCDR] => 1 ) [2025-02-19 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:02:05' and `end` < '2025-02-19 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:02:18] Production.INFO: count ==4364 [2025-02-19 21:02:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:02:05 - End Time 2025-02-19 21:02:05 [2025-02-19 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513012', 'tblTempUsageDetail_20' ) start [2025-02-19 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513012', 'tblTempUsageDetail_20' ) end [2025-02-19 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513012', 'tblTempVendorCDR_20' ) start [2025-02-19 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513012', 'tblTempVendorCDR_20' ) end [2025-02-19 21:02:20] Production.INFO: ProcessCDR(1,14513012,1,1,2) [2025-02-19 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513012', 'tblTempUsageDetail_20' ) start [2025-02-19 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513012', 'tblTempUsageDetail_20' ) end [2025-02-19 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:02:24] Production.INFO: ==27023== Releasing lock... [2025-02-19 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:02:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:03:05 [end_date_ymd] => 2025-02-19 21:03:05 [RateCDR] => 1 ) [2025-02-19 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:03:05' and `end` < '2025-02-19 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:03:17] Production.INFO: count ==4363 [2025-02-19 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:03:05 - End Time 2025-02-19 21:03:05 [2025-02-19 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513017', 'tblTempUsageDetail_20' ) start [2025-02-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513017', 'tblTempUsageDetail_20' ) end [2025-02-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513017', 'tblTempVendorCDR_20' ) start [2025-02-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513017', 'tblTempVendorCDR_20' ) end [2025-02-19 21:03:19] Production.INFO: ProcessCDR(1,14513017,1,1,2) [2025-02-19 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513017', 'tblTempUsageDetail_20' ) start [2025-02-19 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513017', 'tblTempUsageDetail_20' ) end [2025-02-19 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:03:23] Production.INFO: ==27151== Releasing lock... [2025-02-19 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:03:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:04:06 [end_date_ymd] => 2025-02-19 21:04:06 [RateCDR] => 1 ) [2025-02-19 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:04:06' and `end` < '2025-02-19 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:04:18] Production.INFO: count ==4350 [2025-02-19 21:04:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:04:06 - End Time 2025-02-19 21:04:06 [2025-02-19 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513022', 'tblTempUsageDetail_20' ) start [2025-02-19 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513022', 'tblTempUsageDetail_20' ) end [2025-02-19 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513022', 'tblTempVendorCDR_20' ) start [2025-02-19 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513022', 'tblTempVendorCDR_20' ) end [2025-02-19 21:04:20] Production.INFO: ProcessCDR(1,14513022,1,1,2) [2025-02-19 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513022', 'tblTempUsageDetail_20' ) start [2025-02-19 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513022', 'tblTempUsageDetail_20' ) end [2025-02-19 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:04:24] Production.INFO: ==27269== Releasing lock... [2025-02-19 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:04:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:05:06 [end_date_ymd] => 2025-02-19 21:05:06 [RateCDR] => 1 ) [2025-02-19 21:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:05:06' and `end` < '2025-02-19 21:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:05:18] Production.INFO: count ==4347 [2025-02-19 21:05:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:05:06 - End Time 2025-02-19 21:05:06 [2025-02-19 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513027', 'tblTempUsageDetail_20' ) start [2025-02-19 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513027', 'tblTempUsageDetail_20' ) end [2025-02-19 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513027', 'tblTempVendorCDR_20' ) start [2025-02-19 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513027', 'tblTempVendorCDR_20' ) end [2025-02-19 21:05:20] Production.INFO: ProcessCDR(1,14513027,1,1,2) [2025-02-19 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513027', 'tblTempUsageDetail_20' ) start [2025-02-19 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513027', 'tblTempUsageDetail_20' ) end [2025-02-19 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:05:23] Production.INFO: ==27384== Releasing lock... [2025-02-19 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:05:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:06:05 [end_date_ymd] => 2025-02-19 21:06:05 [RateCDR] => 1 ) [2025-02-19 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:06:05' and `end` < '2025-02-19 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:06:17] Production.INFO: count ==4346 [2025-02-19 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:06:05 - End Time 2025-02-19 21:06:05 [2025-02-19 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513032', 'tblTempUsageDetail_20' ) start [2025-02-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513032', 'tblTempUsageDetail_20' ) end [2025-02-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513032', 'tblTempVendorCDR_20' ) start [2025-02-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513032', 'tblTempVendorCDR_20' ) end [2025-02-19 21:06:19] Production.INFO: ProcessCDR(1,14513032,1,1,2) [2025-02-19 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513032', 'tblTempUsageDetail_20' ) start [2025-02-19 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513032', 'tblTempUsageDetail_20' ) end [2025-02-19 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:06:23] Production.INFO: ==27490== Releasing lock... [2025-02-19 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:06:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:07:06 [end_date_ymd] => 2025-02-19 21:07:06 [RateCDR] => 1 ) [2025-02-19 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:07:06' and `end` < '2025-02-19 21:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:07:18] Production.INFO: count ==4344 [2025-02-19 21:07:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:07:06 - End Time 2025-02-19 21:07:06 [2025-02-19 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513037', 'tblTempUsageDetail_20' ) start [2025-02-19 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513037', 'tblTempUsageDetail_20' ) end [2025-02-19 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513037', 'tblTempVendorCDR_20' ) start [2025-02-19 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513037', 'tblTempVendorCDR_20' ) end [2025-02-19 21:07:20] Production.INFO: ProcessCDR(1,14513037,1,1,2) [2025-02-19 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513037', 'tblTempUsageDetail_20' ) start [2025-02-19 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513037', 'tblTempUsageDetail_20' ) end [2025-02-19 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:07:23] Production.INFO: ==27596== Releasing lock... [2025-02-19 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:07:23] Production.INFO: 60.5 MB #Memory Used# [2025-02-19 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:08:05 [end_date_ymd] => 2025-02-19 21:08:05 [RateCDR] => 1 ) [2025-02-19 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:08:05' and `end` < '2025-02-19 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:08:17] Production.INFO: count ==4338 [2025-02-19 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:08:05 - End Time 2025-02-19 21:08:05 [2025-02-19 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513042', 'tblTempUsageDetail_20' ) start [2025-02-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513042', 'tblTempUsageDetail_20' ) end [2025-02-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513042', 'tblTempVendorCDR_20' ) start [2025-02-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513042', 'tblTempVendorCDR_20' ) end [2025-02-19 21:08:19] Production.INFO: ProcessCDR(1,14513042,1,1,2) [2025-02-19 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513042', 'tblTempUsageDetail_20' ) start [2025-02-19 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513042', 'tblTempUsageDetail_20' ) end [2025-02-19 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:08:23] Production.INFO: ==27709== Releasing lock... [2025-02-19 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:08:23] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:09:05 [end_date_ymd] => 2025-02-19 21:09:05 [RateCDR] => 1 ) [2025-02-19 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:09:05' and `end` < '2025-02-19 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:09:18] Production.INFO: count ==4334 [2025-02-19 21:09:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:09:05 - End Time 2025-02-19 21:09:05 [2025-02-19 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513047', 'tblTempUsageDetail_20' ) start [2025-02-19 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513047', 'tblTempUsageDetail_20' ) end [2025-02-19 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513047', 'tblTempVendorCDR_20' ) start [2025-02-19 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513047', 'tblTempVendorCDR_20' ) end [2025-02-19 21:09:20] Production.INFO: ProcessCDR(1,14513047,1,1,2) [2025-02-19 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513047', 'tblTempUsageDetail_20' ) start [2025-02-19 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513047', 'tblTempUsageDetail_20' ) end [2025-02-19 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:09:23] Production.INFO: ==27812== Releasing lock... [2025-02-19 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:09:23] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:10:05 [end_date_ymd] => 2025-02-19 21:10:05 [RateCDR] => 1 ) [2025-02-19 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:10:05' and `end` < '2025-02-19 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:10:17] Production.INFO: count ==4332 [2025-02-19 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:10:05 - End Time 2025-02-19 21:10:05 [2025-02-19 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513053', 'tblTempUsageDetail_20' ) start [2025-02-19 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513053', 'tblTempUsageDetail_20' ) end [2025-02-19 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513053', 'tblTempVendorCDR_20' ) start [2025-02-19 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513053', 'tblTempVendorCDR_20' ) end [2025-02-19 21:10:19] Production.INFO: ProcessCDR(1,14513053,1,1,2) [2025-02-19 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513053', 'tblTempUsageDetail_20' ) start [2025-02-19 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513053', 'tblTempUsageDetail_20' ) end [2025-02-19 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:10:23] Production.INFO: ==27922== Releasing lock... [2025-02-19 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:10:23] Production.INFO: 60.25 MB #Memory Used# [2025-02-19 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:11:05 [end_date_ymd] => 2025-02-19 21:11:05 [RateCDR] => 1 ) [2025-02-19 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:11:05' and `end` < '2025-02-19 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:11:18] Production.INFO: count ==4286 [2025-02-19 21:11:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:11:05 - End Time 2025-02-19 21:11:05 [2025-02-19 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513058', 'tblTempUsageDetail_20' ) start [2025-02-19 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513058', 'tblTempUsageDetail_20' ) end [2025-02-19 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513058', 'tblTempVendorCDR_20' ) start [2025-02-19 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513058', 'tblTempVendorCDR_20' ) end [2025-02-19 21:11:20] Production.INFO: ProcessCDR(1,14513058,1,1,2) [2025-02-19 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513058', 'tblTempUsageDetail_20' ) start [2025-02-19 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513058', 'tblTempUsageDetail_20' ) end [2025-02-19 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:11:23] Production.INFO: ==28018== Releasing lock... [2025-02-19 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:11:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:12:05 [end_date_ymd] => 2025-02-19 21:12:05 [RateCDR] => 1 ) [2025-02-19 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:12:05' and `end` < '2025-02-19 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:12:17] Production.INFO: count ==4292 [2025-02-19 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:12:05 - End Time 2025-02-19 21:12:05 [2025-02-19 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513063', 'tblTempUsageDetail_20' ) start [2025-02-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513063', 'tblTempUsageDetail_20' ) end [2025-02-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513063', 'tblTempVendorCDR_20' ) start [2025-02-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513063', 'tblTempVendorCDR_20' ) end [2025-02-19 21:12:19] Production.INFO: ProcessCDR(1,14513063,1,1,2) [2025-02-19 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513063', 'tblTempUsageDetail_20' ) start [2025-02-19 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513063', 'tblTempUsageDetail_20' ) end [2025-02-19 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:12:24] Production.INFO: ==28111== Releasing lock... [2025-02-19 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:12:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:13:05 [end_date_ymd] => 2025-02-19 21:13:05 [RateCDR] => 1 ) [2025-02-19 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:13:05' and `end` < '2025-02-19 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:13:18] Production.INFO: count ==4284 [2025-02-19 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:13:05 - End Time 2025-02-19 21:13:05 [2025-02-19 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513068', 'tblTempUsageDetail_20' ) start [2025-02-19 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513068', 'tblTempUsageDetail_20' ) end [2025-02-19 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513068', 'tblTempVendorCDR_20' ) start [2025-02-19 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513068', 'tblTempVendorCDR_20' ) end [2025-02-19 21:13:20] Production.INFO: ProcessCDR(1,14513068,1,1,2) [2025-02-19 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513068', 'tblTempUsageDetail_20' ) start [2025-02-19 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513068', 'tblTempUsageDetail_20' ) end [2025-02-19 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:13:23] Production.INFO: ==28202== Releasing lock... [2025-02-19 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:13:23] Production.INFO: 60 MB #Memory Used# [2025-02-19 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:14:05 [end_date_ymd] => 2025-02-19 21:14:05 [RateCDR] => 1 ) [2025-02-19 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:14:05' and `end` < '2025-02-19 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:14:17] Production.INFO: count ==4286 [2025-02-19 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:14:05 - End Time 2025-02-19 21:14:05 [2025-02-19 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513073', 'tblTempUsageDetail_20' ) start [2025-02-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513073', 'tblTempUsageDetail_20' ) end [2025-02-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513073', 'tblTempVendorCDR_20' ) start [2025-02-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513073', 'tblTempVendorCDR_20' ) end [2025-02-19 21:14:19] Production.INFO: ProcessCDR(1,14513073,1,1,2) [2025-02-19 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513073', 'tblTempUsageDetail_20' ) start [2025-02-19 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513073', 'tblTempUsageDetail_20' ) end [2025-02-19 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:14:24] Production.INFO: ==28295== Releasing lock... [2025-02-19 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:14:24] Production.INFO: 60 MB #Memory Used# [2025-02-19 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:15:05 [end_date_ymd] => 2025-02-19 21:15:05 [RateCDR] => 1 ) [2025-02-19 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:15:05' and `end` < '2025-02-19 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:15:17] Production.INFO: count ==4275 [2025-02-19 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:15:05 - End Time 2025-02-19 21:15:05 [2025-02-19 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513078', 'tblTempUsageDetail_20' ) start [2025-02-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513078', 'tblTempUsageDetail_20' ) end [2025-02-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513078', 'tblTempVendorCDR_20' ) start [2025-02-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513078', 'tblTempVendorCDR_20' ) end [2025-02-19 21:15:19] Production.INFO: ProcessCDR(1,14513078,1,1,2) [2025-02-19 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513078', 'tblTempUsageDetail_20' ) start [2025-02-19 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513078', 'tblTempUsageDetail_20' ) end [2025-02-19 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:15:23] Production.INFO: ==28389== Releasing lock... [2025-02-19 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:15:23] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:16:05 [end_date_ymd] => 2025-02-19 21:16:05 [RateCDR] => 1 ) [2025-02-19 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:16:05' and `end` < '2025-02-19 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:16:17] Production.INFO: count ==4261 [2025-02-19 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:16:05 - End Time 2025-02-19 21:16:05 [2025-02-19 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513083', 'tblTempUsageDetail_20' ) start [2025-02-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513083', 'tblTempUsageDetail_20' ) end [2025-02-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513083', 'tblTempVendorCDR_20' ) start [2025-02-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513083', 'tblTempVendorCDR_20' ) end [2025-02-19 21:16:19] Production.INFO: ProcessCDR(1,14513083,1,1,2) [2025-02-19 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513083', 'tblTempUsageDetail_20' ) start [2025-02-19 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513083', 'tblTempUsageDetail_20' ) end [2025-02-19 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:16:22] Production.INFO: ==28487== Releasing lock... [2025-02-19 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:16:22] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:17:05 [end_date_ymd] => 2025-02-19 21:17:05 [RateCDR] => 1 ) [2025-02-19 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:17:05' and `end` < '2025-02-19 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:17:17] Production.INFO: count ==4260 [2025-02-19 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:17:05 - End Time 2025-02-19 21:17:05 [2025-02-19 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513088', 'tblTempUsageDetail_20' ) start [2025-02-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513088', 'tblTempUsageDetail_20' ) end [2025-02-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513088', 'tblTempVendorCDR_20' ) start [2025-02-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513088', 'tblTempVendorCDR_20' ) end [2025-02-19 21:17:19] Production.INFO: ProcessCDR(1,14513088,1,1,2) [2025-02-19 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513088', 'tblTempUsageDetail_20' ) start [2025-02-19 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513088', 'tblTempUsageDetail_20' ) end [2025-02-19 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:17:23] Production.INFO: ==28616== Releasing lock... [2025-02-19 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:17:23] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:18:04 [end_date_ymd] => 2025-02-19 21:18:04 [RateCDR] => 1 ) [2025-02-19 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-02-19 18:18:04' and `end` < '2025-02-19 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-02-19 21:18:16] Production.INFO: count ==4257 [2025-02-19 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:18:04 - End Time 2025-02-19 21:18:04 [2025-02-19 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513093', 'tblTempUsageDetail_20' ) start [2025-02-19 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513093', 'tblTempUsageDetail_20' ) end [2025-02-19 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513093', 'tblTempVendorCDR_20' ) start [2025-02-19 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513093', 'tblTempVendorCDR_20' ) end [2025-02-19 21:18:19] Production.INFO: ProcessCDR(1,14513093,1,1,2) [2025-02-19 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513093', 'tblTempUsageDetail_20' ) start [2025-02-19 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513093', 'tblTempUsageDetail_20' ) end [2025-02-19 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:18:22] Production.INFO: ==28711== Releasing lock... [2025-02-19 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:18:22] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:19:05 [end_date_ymd] => 2025-02-19 21:19:05 [RateCDR] => 1 ) [2025-02-19 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:19:05' and `end` < '2025-02-19 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:19:17] Production.INFO: count ==4252 [2025-02-19 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:19:05 - End Time 2025-02-19 21:19:05 [2025-02-19 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513098', 'tblTempUsageDetail_20' ) start [2025-02-19 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513098', 'tblTempUsageDetail_20' ) end [2025-02-19 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513098', 'tblTempVendorCDR_20' ) start [2025-02-19 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513098', 'tblTempVendorCDR_20' ) end [2025-02-19 21:19:19] Production.INFO: ProcessCDR(1,14513098,1,1,2) [2025-02-19 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513098', 'tblTempUsageDetail_20' ) start [2025-02-19 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513098', 'tblTempUsageDetail_20' ) end [2025-02-19 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:19:22] Production.INFO: ==28805== Releasing lock... [2025-02-19 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:19:22] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:20:06 [end_date_ymd] => 2025-02-19 21:20:06 [RateCDR] => 1 ) [2025-02-19 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:20:06' and `end` < '2025-02-19 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:20:18] Production.INFO: count ==4249 [2025-02-19 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:20:06 - End Time 2025-02-19 21:20:06 [2025-02-19 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513104', 'tblTempUsageDetail_20' ) start [2025-02-19 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513104', 'tblTempUsageDetail_20' ) end [2025-02-19 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513104', 'tblTempVendorCDR_20' ) start [2025-02-19 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513104', 'tblTempVendorCDR_20' ) end [2025-02-19 21:20:21] Production.INFO: ProcessCDR(1,14513104,1,1,2) [2025-02-19 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513104', 'tblTempUsageDetail_20' ) start [2025-02-19 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513104', 'tblTempUsageDetail_20' ) end [2025-02-19 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:20:24] Production.INFO: ==28900== Releasing lock... [2025-02-19 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:20:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-19 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:21:05 [end_date_ymd] => 2025-02-19 21:21:05 [RateCDR] => 1 ) [2025-02-19 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:21:05' and `end` < '2025-02-19 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:21:17] Production.INFO: count ==4165 [2025-02-19 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:21:05 - End Time 2025-02-19 21:21:05 [2025-02-19 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513109', 'tblTempUsageDetail_20' ) start [2025-02-19 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513109', 'tblTempUsageDetail_20' ) end [2025-02-19 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513109', 'tblTempVendorCDR_20' ) start [2025-02-19 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513109', 'tblTempVendorCDR_20' ) end [2025-02-19 21:21:19] Production.INFO: ProcessCDR(1,14513109,1,1,2) [2025-02-19 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513109', 'tblTempUsageDetail_20' ) start [2025-02-19 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513109', 'tblTempUsageDetail_20' ) end [2025-02-19 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:21:22] Production.INFO: ==28994== Releasing lock... [2025-02-19 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:21:22] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:22:06 [end_date_ymd] => 2025-02-19 21:22:06 [RateCDR] => 1 ) [2025-02-19 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:22:06' and `end` < '2025-02-19 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:22:18] Production.INFO: count ==4165 [2025-02-19 21:22:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:22:06 - End Time 2025-02-19 21:22:06 [2025-02-19 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513114', 'tblTempUsageDetail_20' ) start [2025-02-19 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513114', 'tblTempUsageDetail_20' ) end [2025-02-19 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513114', 'tblTempVendorCDR_20' ) start [2025-02-19 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513114', 'tblTempVendorCDR_20' ) end [2025-02-19 21:22:20] Production.INFO: ProcessCDR(1,14513114,1,1,2) [2025-02-19 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513114', 'tblTempUsageDetail_20' ) start [2025-02-19 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513114', 'tblTempUsageDetail_20' ) end [2025-02-19 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:22:23] Production.INFO: ==29086== Releasing lock... [2025-02-19 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:22:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:23:05 [end_date_ymd] => 2025-02-19 21:23:05 [RateCDR] => 1 ) [2025-02-19 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:23:05' and `end` < '2025-02-19 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:23:17] Production.INFO: count ==4163 [2025-02-19 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:23:05 - End Time 2025-02-19 21:23:05 [2025-02-19 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513119', 'tblTempUsageDetail_20' ) start [2025-02-19 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513119', 'tblTempUsageDetail_20' ) end [2025-02-19 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513119', 'tblTempVendorCDR_20' ) start [2025-02-19 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513119', 'tblTempVendorCDR_20' ) end [2025-02-19 21:23:19] Production.INFO: ProcessCDR(1,14513119,1,1,2) [2025-02-19 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513119', 'tblTempUsageDetail_20' ) start [2025-02-19 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513119', 'tblTempUsageDetail_20' ) end [2025-02-19 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:23:23] Production.INFO: ==29182== Releasing lock... [2025-02-19 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:23:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:24:05 [end_date_ymd] => 2025-02-19 21:24:05 [RateCDR] => 1 ) [2025-02-19 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:24:05' and `end` < '2025-02-19 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:24:17] Production.INFO: count ==4165 [2025-02-19 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:24:05 - End Time 2025-02-19 21:24:05 [2025-02-19 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513124', 'tblTempUsageDetail_20' ) start [2025-02-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513124', 'tblTempUsageDetail_20' ) end [2025-02-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513124', 'tblTempVendorCDR_20' ) start [2025-02-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513124', 'tblTempVendorCDR_20' ) end [2025-02-19 21:24:19] Production.INFO: ProcessCDR(1,14513124,1,1,2) [2025-02-19 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513124', 'tblTempUsageDetail_20' ) start [2025-02-19 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513124', 'tblTempUsageDetail_20' ) end [2025-02-19 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:24:23] Production.INFO: ==29277== Releasing lock... [2025-02-19 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:24:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:25:05 [end_date_ymd] => 2025-02-19 21:25:05 [RateCDR] => 1 ) [2025-02-19 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:25:05' and `end` < '2025-02-19 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:25:17] Production.INFO: count ==4160 [2025-02-19 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:25:05 - End Time 2025-02-19 21:25:05 [2025-02-19 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513129', 'tblTempUsageDetail_20' ) start [2025-02-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513129', 'tblTempUsageDetail_20' ) end [2025-02-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513129', 'tblTempVendorCDR_20' ) start [2025-02-19 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513129', 'tblTempVendorCDR_20' ) end [2025-02-19 21:25:19] Production.INFO: ProcessCDR(1,14513129,1,1,2) [2025-02-19 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513129', 'tblTempUsageDetail_20' ) start [2025-02-19 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513129', 'tblTempUsageDetail_20' ) end [2025-02-19 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:25:22] Production.INFO: ==29367== Releasing lock... [2025-02-19 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:25:22] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:26:06 [end_date_ymd] => 2025-02-19 21:26:06 [RateCDR] => 1 ) [2025-02-19 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:26:06' and `end` < '2025-02-19 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:26:18] Production.INFO: count ==4161 [2025-02-19 21:26:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:26:06 - End Time 2025-02-19 21:26:06 [2025-02-19 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513134', 'tblTempUsageDetail_20' ) start [2025-02-19 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513134', 'tblTempUsageDetail_20' ) end [2025-02-19 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513134', 'tblTempVendorCDR_20' ) start [2025-02-19 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513134', 'tblTempVendorCDR_20' ) end [2025-02-19 21:26:20] Production.INFO: ProcessCDR(1,14513134,1,1,2) [2025-02-19 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513134', 'tblTempUsageDetail_20' ) start [2025-02-19 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513134', 'tblTempUsageDetail_20' ) end [2025-02-19 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:26:23] Production.INFO: ==29464== Releasing lock... [2025-02-19 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:26:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:27:04 [end_date_ymd] => 2025-02-19 21:27:04 [RateCDR] => 1 ) [2025-02-19 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:27:04' and `end` < '2025-02-19 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:27:17] Production.INFO: count ==4164 [2025-02-19 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:27:04 - End Time 2025-02-19 21:27:04 [2025-02-19 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513139', 'tblTempUsageDetail_20' ) start [2025-02-19 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513139', 'tblTempUsageDetail_20' ) end [2025-02-19 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513139', 'tblTempVendorCDR_20' ) start [2025-02-19 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513139', 'tblTempVendorCDR_20' ) end [2025-02-19 21:27:19] Production.INFO: ProcessCDR(1,14513139,1,1,2) [2025-02-19 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513139', 'tblTempUsageDetail_20' ) start [2025-02-19 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513139', 'tblTempUsageDetail_20' ) end [2025-02-19 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:27:22] Production.INFO: ==29559== Releasing lock... [2025-02-19 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:27:22] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:28:05 [end_date_ymd] => 2025-02-19 21:28:05 [RateCDR] => 1 ) [2025-02-19 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:28:05' and `end` < '2025-02-19 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:28:17] Production.INFO: count ==4167 [2025-02-19 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:28:05 - End Time 2025-02-19 21:28:05 [2025-02-19 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513144', 'tblTempUsageDetail_20' ) start [2025-02-19 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513144', 'tblTempUsageDetail_20' ) end [2025-02-19 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513144', 'tblTempVendorCDR_20' ) start [2025-02-19 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513144', 'tblTempVendorCDR_20' ) end [2025-02-19 21:28:19] Production.INFO: ProcessCDR(1,14513144,1,1,2) [2025-02-19 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513144', 'tblTempUsageDetail_20' ) start [2025-02-19 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513144', 'tblTempUsageDetail_20' ) end [2025-02-19 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:28:24] Production.INFO: ==29667== Releasing lock... [2025-02-19 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:28:24] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:29:05 [end_date_ymd] => 2025-02-19 21:29:05 [RateCDR] => 1 ) [2025-02-19 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:29:05' and `end` < '2025-02-19 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:29:17] Production.INFO: count ==4165 [2025-02-19 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:29:05 - End Time 2025-02-19 21:29:05 [2025-02-19 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513149', 'tblTempUsageDetail_20' ) start [2025-02-19 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513149', 'tblTempUsageDetail_20' ) end [2025-02-19 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513149', 'tblTempVendorCDR_20' ) start [2025-02-19 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513149', 'tblTempVendorCDR_20' ) end [2025-02-19 21:29:19] Production.INFO: ProcessCDR(1,14513149,1,1,2) [2025-02-19 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513149', 'tblTempUsageDetail_20' ) start [2025-02-19 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513149', 'tblTempUsageDetail_20' ) end [2025-02-19 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:29:23] Production.INFO: ==29771== Releasing lock... [2025-02-19 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:29:23] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:30:06 [end_date_ymd] => 2025-02-19 21:30:06 [RateCDR] => 1 ) [2025-02-19 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:30:06' and `end` < '2025-02-19 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:30:18] Production.INFO: count ==4156 [2025-02-19 21:30:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:30:06 - End Time 2025-02-19 21:30:06 [2025-02-19 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513155', 'tblTempUsageDetail_20' ) start [2025-02-19 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513155', 'tblTempUsageDetail_20' ) end [2025-02-19 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513155', 'tblTempVendorCDR_20' ) start [2025-02-19 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513155', 'tblTempVendorCDR_20' ) end [2025-02-19 21:30:20] Production.INFO: ProcessCDR(1,14513155,1,1,2) [2025-02-19 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513155', 'tblTempUsageDetail_20' ) start [2025-02-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513155', 'tblTempUsageDetail_20' ) end [2025-02-19 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:30:24] Production.INFO: ==29873== Releasing lock... [2025-02-19 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:30:24] Production.INFO: 59 MB #Memory Used# [2025-02-19 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:31:05 [end_date_ymd] => 2025-02-19 21:31:05 [RateCDR] => 1 ) [2025-02-19 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:31:05' and `end` < '2025-02-19 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:31:17] Production.INFO: count ==4100 [2025-02-19 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:31:05 - End Time 2025-02-19 21:31:05 [2025-02-19 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513160', 'tblTempUsageDetail_20' ) start [2025-02-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513160', 'tblTempUsageDetail_20' ) end [2025-02-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513160', 'tblTempVendorCDR_20' ) start [2025-02-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513160', 'tblTempVendorCDR_20' ) end [2025-02-19 21:31:19] Production.INFO: ProcessCDR(1,14513160,1,1,2) [2025-02-19 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513160', 'tblTempUsageDetail_20' ) start [2025-02-19 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513160', 'tblTempUsageDetail_20' ) end [2025-02-19 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:31:22] Production.INFO: ==29969== Releasing lock... [2025-02-19 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:31:22] Production.INFO: 58.5 MB #Memory Used# [2025-02-19 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:32:05 [end_date_ymd] => 2025-02-19 21:32:05 [RateCDR] => 1 ) [2025-02-19 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:32:05' and `end` < '2025-02-19 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:32:17] Production.INFO: count ==4071 [2025-02-19 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:32:05 - End Time 2025-02-19 21:32:05 [2025-02-19 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513165', 'tblTempUsageDetail_20' ) start [2025-02-19 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513165', 'tblTempUsageDetail_20' ) end [2025-02-19 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513165', 'tblTempVendorCDR_20' ) start [2025-02-19 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513165', 'tblTempVendorCDR_20' ) end [2025-02-19 21:32:19] Production.INFO: ProcessCDR(1,14513165,1,1,2) [2025-02-19 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513165', 'tblTempUsageDetail_20' ) start [2025-02-19 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513165', 'tblTempUsageDetail_20' ) end [2025-02-19 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:32:23] Production.INFO: ==30065== Releasing lock... [2025-02-19 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:32:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-19 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:33:05 [end_date_ymd] => 2025-02-19 21:33:05 [RateCDR] => 1 ) [2025-02-19 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:33:05' and `end` < '2025-02-19 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:33:18] Production.INFO: count ==4000 [2025-02-19 21:33:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:33:05 - End Time 2025-02-19 21:33:05 [2025-02-19 21:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513170', 'tblTempUsageDetail_20' ) start [2025-02-19 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513170', 'tblTempUsageDetail_20' ) end [2025-02-19 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513170', 'tblTempVendorCDR_20' ) start [2025-02-19 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513170', 'tblTempVendorCDR_20' ) end [2025-02-19 21:33:20] Production.INFO: ProcessCDR(1,14513170,1,1,2) [2025-02-19 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513170', 'tblTempUsageDetail_20' ) start [2025-02-19 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513170', 'tblTempUsageDetail_20' ) end [2025-02-19 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:33:23] Production.INFO: ==30197== Releasing lock... [2025-02-19 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:33:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-19 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:34:05 [end_date_ymd] => 2025-02-19 21:34:05 [RateCDR] => 1 ) [2025-02-19 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:34:05' and `end` < '2025-02-19 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:34:17] Production.INFO: count ==3988 [2025-02-19 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:34:05 - End Time 2025-02-19 21:34:05 [2025-02-19 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513175', 'tblTempUsageDetail_20' ) start [2025-02-19 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513175', 'tblTempUsageDetail_20' ) end [2025-02-19 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513175', 'tblTempVendorCDR_20' ) start [2025-02-19 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513175', 'tblTempVendorCDR_20' ) end [2025-02-19 21:34:19] Production.INFO: ProcessCDR(1,14513175,1,1,2) [2025-02-19 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513175', 'tblTempUsageDetail_20' ) start [2025-02-19 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513175', 'tblTempUsageDetail_20' ) end [2025-02-19 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:34:22] Production.INFO: ==30290== Releasing lock... [2025-02-19 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:34:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-19 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:35:05 [end_date_ymd] => 2025-02-19 21:35:05 [RateCDR] => 1 ) [2025-02-19 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:35:05' and `end` < '2025-02-19 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:35:18] Production.INFO: count ==3987 [2025-02-19 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:35:05 - End Time 2025-02-19 21:35:05 [2025-02-19 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513180', 'tblTempUsageDetail_20' ) start [2025-02-19 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513180', 'tblTempUsageDetail_20' ) end [2025-02-19 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513180', 'tblTempVendorCDR_20' ) start [2025-02-19 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513180', 'tblTempVendorCDR_20' ) end [2025-02-19 21:35:20] Production.INFO: ProcessCDR(1,14513180,1,1,2) [2025-02-19 21:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513180', 'tblTempUsageDetail_20' ) start [2025-02-19 21:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513180', 'tblTempUsageDetail_20' ) end [2025-02-19 21:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:35:25] Production.INFO: ==30381== Releasing lock... [2025-02-19 21:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:35:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-19 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:36:05 [end_date_ymd] => 2025-02-19 21:36:05 [RateCDR] => 1 ) [2025-02-19 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:36:05' and `end` < '2025-02-19 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:36:17] Production.INFO: count ==3935 [2025-02-19 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:36:05 - End Time 2025-02-19 21:36:05 [2025-02-19 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513185', 'tblTempUsageDetail_20' ) start [2025-02-19 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513185', 'tblTempUsageDetail_20' ) end [2025-02-19 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513185', 'tblTempVendorCDR_20' ) start [2025-02-19 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513185', 'tblTempVendorCDR_20' ) end [2025-02-19 21:36:19] Production.INFO: ProcessCDR(1,14513185,1,1,2) [2025-02-19 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513185', 'tblTempUsageDetail_20' ) start [2025-02-19 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513185', 'tblTempUsageDetail_20' ) end [2025-02-19 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:36:22] Production.INFO: ==30476== Releasing lock... [2025-02-19 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:36:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-19 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:37:05 [end_date_ymd] => 2025-02-19 21:37:05 [RateCDR] => 1 ) [2025-02-19 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:37:05' and `end` < '2025-02-19 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:37:17] Production.INFO: count ==3885 [2025-02-19 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:37:05 - End Time 2025-02-19 21:37:05 [2025-02-19 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513190', 'tblTempUsageDetail_20' ) start [2025-02-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513190', 'tblTempUsageDetail_20' ) end [2025-02-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513190', 'tblTempVendorCDR_20' ) start [2025-02-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513190', 'tblTempVendorCDR_20' ) end [2025-02-19 21:37:19] Production.INFO: ProcessCDR(1,14513190,1,1,2) [2025-02-19 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513190', 'tblTempUsageDetail_20' ) start [2025-02-19 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513190', 'tblTempUsageDetail_20' ) end [2025-02-19 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:37:23] Production.INFO: ==30571== Releasing lock... [2025-02-19 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:37:23] Production.INFO: 57 MB #Memory Used# [2025-02-19 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:38:05 [end_date_ymd] => 2025-02-19 21:38:05 [RateCDR] => 1 ) [2025-02-19 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:38:05' and `end` < '2025-02-19 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:38:17] Production.INFO: count ==3826 [2025-02-19 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:38:05 - End Time 2025-02-19 21:38:05 [2025-02-19 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513195', 'tblTempUsageDetail_20' ) start [2025-02-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513195', 'tblTempUsageDetail_20' ) end [2025-02-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513195', 'tblTempVendorCDR_20' ) start [2025-02-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513195', 'tblTempVendorCDR_20' ) end [2025-02-19 21:38:19] Production.INFO: ProcessCDR(1,14513195,1,1,2) [2025-02-19 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513195', 'tblTempUsageDetail_20' ) start [2025-02-19 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513195', 'tblTempUsageDetail_20' ) end [2025-02-19 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:38:24] Production.INFO: ==30666== Releasing lock... [2025-02-19 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:38:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-19 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:39:05 [end_date_ymd] => 2025-02-19 21:39:05 [RateCDR] => 1 ) [2025-02-19 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:39:05' and `end` < '2025-02-19 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:39:17] Production.INFO: count ==3745 [2025-02-19 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:39:05 - End Time 2025-02-19 21:39:05 [2025-02-19 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513200', 'tblTempUsageDetail_20' ) start [2025-02-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513200', 'tblTempUsageDetail_20' ) end [2025-02-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513200', 'tblTempVendorCDR_20' ) start [2025-02-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513200', 'tblTempVendorCDR_20' ) end [2025-02-19 21:39:19] Production.INFO: ProcessCDR(1,14513200,1,1,2) [2025-02-19 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513200', 'tblTempUsageDetail_20' ) start [2025-02-19 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513200', 'tblTempUsageDetail_20' ) end [2025-02-19 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:39:22] Production.INFO: ==30756== Releasing lock... [2025-02-19 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:39:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-19 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:40:06 [end_date_ymd] => 2025-02-19 21:40:06 [RateCDR] => 1 ) [2025-02-19 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:40:06' and `end` < '2025-02-19 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:40:18] Production.INFO: count ==3665 [2025-02-19 21:40:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:40:06 - End Time 2025-02-19 21:40:06 [2025-02-19 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513206', 'tblTempUsageDetail_20' ) start [2025-02-19 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513206', 'tblTempUsageDetail_20' ) end [2025-02-19 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513206', 'tblTempVendorCDR_20' ) start [2025-02-19 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513206', 'tblTempVendorCDR_20' ) end [2025-02-19 21:40:20] Production.INFO: ProcessCDR(1,14513206,1,1,2) [2025-02-19 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513206', 'tblTempUsageDetail_20' ) start [2025-02-19 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513206', 'tblTempUsageDetail_20' ) end [2025-02-19 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:40:23] Production.INFO: ==30851== Releasing lock... [2025-02-19 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:40:23] Production.INFO: 55.25 MB #Memory Used# [2025-02-19 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:41:05 [end_date_ymd] => 2025-02-19 21:41:05 [RateCDR] => 1 ) [2025-02-19 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:41:05' and `end` < '2025-02-19 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:41:18] Production.INFO: count ==3565 [2025-02-19 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:41:05 - End Time 2025-02-19 21:41:05 [2025-02-19 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513211', 'tblTempUsageDetail_20' ) start [2025-02-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513211', 'tblTempUsageDetail_20' ) end [2025-02-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513211', 'tblTempVendorCDR_20' ) start [2025-02-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513211', 'tblTempVendorCDR_20' ) end [2025-02-19 21:41:19] Production.INFO: ProcessCDR(1,14513211,1,1,2) [2025-02-19 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513211', 'tblTempUsageDetail_20' ) start [2025-02-19 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513211', 'tblTempUsageDetail_20' ) end [2025-02-19 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:41:23] Production.INFO: ==30945== Releasing lock... [2025-02-19 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:41:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-19 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:42:05 [end_date_ymd] => 2025-02-19 21:42:05 [RateCDR] => 1 ) [2025-02-19 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:42:05' and `end` < '2025-02-19 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:42:17] Production.INFO: count ==3488 [2025-02-19 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:42:05 - End Time 2025-02-19 21:42:05 [2025-02-19 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513216', 'tblTempUsageDetail_20' ) start [2025-02-19 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513216', 'tblTempUsageDetail_20' ) end [2025-02-19 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513216', 'tblTempVendorCDR_20' ) start [2025-02-19 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513216', 'tblTempVendorCDR_20' ) end [2025-02-19 21:42:19] Production.INFO: ProcessCDR(1,14513216,1,1,2) [2025-02-19 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513216', 'tblTempUsageDetail_20' ) start [2025-02-19 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513216', 'tblTempUsageDetail_20' ) end [2025-02-19 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:42:22] Production.INFO: ==31036== Releasing lock... [2025-02-19 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:42:22] Production.INFO: 54 MB #Memory Used# [2025-02-19 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:43:05 [end_date_ymd] => 2025-02-19 21:43:05 [RateCDR] => 1 ) [2025-02-19 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:43:05' and `end` < '2025-02-19 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:43:17] Production.INFO: count ==3402 [2025-02-19 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:43:05 - End Time 2025-02-19 21:43:05 [2025-02-19 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513221', 'tblTempUsageDetail_20' ) start [2025-02-19 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513221', 'tblTempUsageDetail_20' ) end [2025-02-19 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513221', 'tblTempVendorCDR_20' ) start [2025-02-19 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513221', 'tblTempVendorCDR_20' ) end [2025-02-19 21:43:19] Production.INFO: ProcessCDR(1,14513221,1,1,2) [2025-02-19 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513221', 'tblTempUsageDetail_20' ) start [2025-02-19 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513221', 'tblTempUsageDetail_20' ) end [2025-02-19 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:43:22] Production.INFO: ==31133== Releasing lock... [2025-02-19 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:43:22] Production.INFO: 53.5 MB #Memory Used# [2025-02-19 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:44:04 [end_date_ymd] => 2025-02-19 21:44:04 [RateCDR] => 1 ) [2025-02-19 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:44:04' and `end` < '2025-02-19 21:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:44:17] Production.INFO: count ==3323 [2025-02-19 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:44:04 - End Time 2025-02-19 21:44:04 [2025-02-19 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513226', 'tblTempUsageDetail_20' ) start [2025-02-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513226', 'tblTempUsageDetail_20' ) end [2025-02-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513226', 'tblTempVendorCDR_20' ) start [2025-02-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513226', 'tblTempVendorCDR_20' ) end [2025-02-19 21:44:18] Production.INFO: ProcessCDR(1,14513226,1,1,2) [2025-02-19 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513226', 'tblTempUsageDetail_20' ) start [2025-02-19 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513226', 'tblTempUsageDetail_20' ) end [2025-02-19 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:44:23] Production.INFO: ==31227== Releasing lock... [2025-02-19 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:44:23] Production.INFO: 53 MB #Memory Used# [2025-02-19 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:45:05 [end_date_ymd] => 2025-02-19 21:45:05 [RateCDR] => 1 ) [2025-02-19 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:45:05' and `end` < '2025-02-19 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:45:17] Production.INFO: count ==3229 [2025-02-19 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:45:05 - End Time 2025-02-19 21:45:05 [2025-02-19 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513231', 'tblTempUsageDetail_20' ) start [2025-02-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513231', 'tblTempUsageDetail_20' ) end [2025-02-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513231', 'tblTempVendorCDR_20' ) start [2025-02-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513231', 'tblTempVendorCDR_20' ) end [2025-02-19 21:45:19] Production.INFO: ProcessCDR(1,14513231,1,1,2) [2025-02-19 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513231', 'tblTempUsageDetail_20' ) start [2025-02-19 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513231', 'tblTempUsageDetail_20' ) end [2025-02-19 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:45:22] Production.INFO: ==31318== Releasing lock... [2025-02-19 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:45:22] Production.INFO: 52.25 MB #Memory Used# [2025-02-19 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:46:05 [end_date_ymd] => 2025-02-19 21:46:05 [RateCDR] => 1 ) [2025-02-19 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:46:05' and `end` < '2025-02-19 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:46:17] Production.INFO: count ==3151 [2025-02-19 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:46:05 - End Time 2025-02-19 21:46:05 [2025-02-19 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513236', 'tblTempUsageDetail_20' ) start [2025-02-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513236', 'tblTempUsageDetail_20' ) end [2025-02-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513236', 'tblTempVendorCDR_20' ) start [2025-02-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513236', 'tblTempVendorCDR_20' ) end [2025-02-19 21:46:18] Production.INFO: ProcessCDR(1,14513236,1,1,2) [2025-02-19 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513236', 'tblTempUsageDetail_20' ) start [2025-02-19 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513236', 'tblTempUsageDetail_20' ) end [2025-02-19 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:46:21] Production.INFO: ==31408== Releasing lock... [2025-02-19 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:46:21] Production.INFO: 51.5 MB #Memory Used# [2025-02-19 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:47:05 [end_date_ymd] => 2025-02-19 21:47:05 [RateCDR] => 1 ) [2025-02-19 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:47:05' and `end` < '2025-02-19 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:47:17] Production.INFO: count ==3068 [2025-02-19 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:47:05 - End Time 2025-02-19 21:47:05 [2025-02-19 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513241', 'tblTempUsageDetail_20' ) start [2025-02-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513241', 'tblTempUsageDetail_20' ) end [2025-02-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513241', 'tblTempVendorCDR_20' ) start [2025-02-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513241', 'tblTempVendorCDR_20' ) end [2025-02-19 21:47:19] Production.INFO: ProcessCDR(1,14513241,1,1,2) [2025-02-19 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513241', 'tblTempUsageDetail_20' ) start [2025-02-19 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513241', 'tblTempUsageDetail_20' ) end [2025-02-19 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:47:22] Production.INFO: ==31509== Releasing lock... [2025-02-19 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:47:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-19 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:48:05 [end_date_ymd] => 2025-02-19 21:48:05 [RateCDR] => 1 ) [2025-02-19 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:48:05' and `end` < '2025-02-19 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:48:18] Production.INFO: count ==2981 [2025-02-19 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:48:05 - End Time 2025-02-19 21:48:05 [2025-02-19 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513246', 'tblTempUsageDetail_20' ) start [2025-02-19 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513246', 'tblTempUsageDetail_20' ) end [2025-02-19 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513246', 'tblTempVendorCDR_20' ) start [2025-02-19 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513246', 'tblTempVendorCDR_20' ) end [2025-02-19 21:48:19] Production.INFO: ProcessCDR(1,14513246,1,1,2) [2025-02-19 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513246', 'tblTempUsageDetail_20' ) start [2025-02-19 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513246', 'tblTempUsageDetail_20' ) end [2025-02-19 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:48:22] Production.INFO: ==31644== Releasing lock... [2025-02-19 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:48:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-19 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:49:05 [end_date_ymd] => 2025-02-19 21:49:05 [RateCDR] => 1 ) [2025-02-19 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:49:05' and `end` < '2025-02-19 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:49:17] Production.INFO: count ==2893 [2025-02-19 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:49:05 - End Time 2025-02-19 21:49:05 [2025-02-19 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513251', 'tblTempUsageDetail_20' ) start [2025-02-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513251', 'tblTempUsageDetail_20' ) end [2025-02-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513251', 'tblTempVendorCDR_20' ) start [2025-02-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513251', 'tblTempVendorCDR_20' ) end [2025-02-19 21:49:18] Production.INFO: ProcessCDR(1,14513251,1,1,2) [2025-02-19 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513251', 'tblTempUsageDetail_20' ) start [2025-02-19 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513251', 'tblTempUsageDetail_20' ) end [2025-02-19 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:49:21] Production.INFO: ==31741== Releasing lock... [2025-02-19 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:49:21] Production.INFO: 49.75 MB #Memory Used# [2025-02-19 21:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:50:07 [end_date_ymd] => 2025-02-19 21:50:07 [RateCDR] => 1 ) [2025-02-19 21:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:50:07' and `end` < '2025-02-19 21:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:50:19] Production.INFO: count ==2806 [2025-02-19 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-19 18:50:07 - End Time 2025-02-19 21:50:07 [2025-02-19 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513257', 'tblTempUsageDetail_20' ) start [2025-02-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513257', 'tblTempUsageDetail_20' ) end [2025-02-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513257', 'tblTempVendorCDR_20' ) start [2025-02-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513257', 'tblTempVendorCDR_20' ) end [2025-02-19 21:50:20] Production.INFO: ProcessCDR(1,14513257,1,1,2) [2025-02-19 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513257', 'tblTempUsageDetail_20' ) start [2025-02-19 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513257', 'tblTempUsageDetail_20' ) end [2025-02-19 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:50:24] Production.INFO: ==31838== Releasing lock... [2025-02-19 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:50:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-19 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:51:05 [end_date_ymd] => 2025-02-19 21:51:05 [RateCDR] => 1 ) [2025-02-19 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:51:05' and `end` < '2025-02-19 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:51:17] Production.INFO: count ==2699 [2025-02-19 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:51:05 - End Time 2025-02-19 21:51:05 [2025-02-19 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513262', 'tblTempUsageDetail_20' ) start [2025-02-19 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513262', 'tblTempUsageDetail_20' ) end [2025-02-19 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513262', 'tblTempVendorCDR_20' ) start [2025-02-19 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513262', 'tblTempVendorCDR_20' ) end [2025-02-19 21:51:18] Production.INFO: ProcessCDR(1,14513262,1,1,2) [2025-02-19 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513262', 'tblTempUsageDetail_20' ) start [2025-02-19 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513262', 'tblTempUsageDetail_20' ) end [2025-02-19 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:51:22] Production.INFO: ==31931== Releasing lock... [2025-02-19 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:51:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-19 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:52:06 [end_date_ymd] => 2025-02-19 21:52:06 [RateCDR] => 1 ) [2025-02-19 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:52:06' and `end` < '2025-02-19 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:52:18] Production.INFO: count ==2620 [2025-02-19 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-19 18:52:06 - End Time 2025-02-19 21:52:06 [2025-02-19 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513267', 'tblTempUsageDetail_20' ) start [2025-02-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513267', 'tblTempUsageDetail_20' ) end [2025-02-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513267', 'tblTempVendorCDR_20' ) start [2025-02-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513267', 'tblTempVendorCDR_20' ) end [2025-02-19 21:52:19] Production.INFO: ProcessCDR(1,14513267,1,1,2) [2025-02-19 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513267', 'tblTempUsageDetail_20' ) start [2025-02-19 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513267', 'tblTempUsageDetail_20' ) end [2025-02-19 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:52:22] Production.INFO: ==32024== Releasing lock... [2025-02-19 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:52:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-19 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:53:05 [end_date_ymd] => 2025-02-19 21:53:05 [RateCDR] => 1 ) [2025-02-19 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:53:05' and `end` < '2025-02-19 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:53:17] Production.INFO: count ==2541 [2025-02-19 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:53:05 - End Time 2025-02-19 21:53:05 [2025-02-19 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513272', 'tblTempUsageDetail_20' ) start [2025-02-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513272', 'tblTempUsageDetail_20' ) end [2025-02-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513272', 'tblTempVendorCDR_20' ) start [2025-02-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513272', 'tblTempVendorCDR_20' ) end [2025-02-19 21:53:18] Production.INFO: ProcessCDR(1,14513272,1,1,2) [2025-02-19 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513272', 'tblTempUsageDetail_20' ) start [2025-02-19 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513272', 'tblTempUsageDetail_20' ) end [2025-02-19 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:53:21] Production.INFO: ==32117== Releasing lock... [2025-02-19 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:53:21] Production.INFO: 46.75 MB #Memory Used# [2025-02-19 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:54:05 [end_date_ymd] => 2025-02-19 21:54:05 [RateCDR] => 1 ) [2025-02-19 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:54:05' and `end` < '2025-02-19 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:54:17] Production.INFO: count ==2539 [2025-02-19 21:54:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:54:05 - End Time 2025-02-19 21:54:05 [2025-02-19 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513277', 'tblTempUsageDetail_20' ) start [2025-02-19 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513277', 'tblTempUsageDetail_20' ) end [2025-02-19 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513277', 'tblTempVendorCDR_20' ) start [2025-02-19 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513277', 'tblTempVendorCDR_20' ) end [2025-02-19 21:54:18] Production.INFO: ProcessCDR(1,14513277,1,1,2) [2025-02-19 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513277', 'tblTempUsageDetail_20' ) start [2025-02-19 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513277', 'tblTempUsageDetail_20' ) end [2025-02-19 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:54:21] Production.INFO: ==32212== Releasing lock... [2025-02-19 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:54:21] Production.INFO: 47 MB #Memory Used# [2025-02-19 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:55:05 [end_date_ymd] => 2025-02-19 21:55:05 [RateCDR] => 1 ) [2025-02-19 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:55:05' and `end` < '2025-02-19 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:55:17] Production.INFO: count ==2537 [2025-02-19 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:55:05 - End Time 2025-02-19 21:55:05 [2025-02-19 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513282', 'tblTempUsageDetail_20' ) start [2025-02-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513282', 'tblTempUsageDetail_20' ) end [2025-02-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513282', 'tblTempVendorCDR_20' ) start [2025-02-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513282', 'tblTempVendorCDR_20' ) end [2025-02-19 21:55:18] Production.INFO: ProcessCDR(1,14513282,1,1,2) [2025-02-19 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513282', 'tblTempUsageDetail_20' ) start [2025-02-19 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513282', 'tblTempUsageDetail_20' ) end [2025-02-19 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:55:21] Production.INFO: ==32302== Releasing lock... [2025-02-19 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:55:21] Production.INFO: 47 MB #Memory Used# [2025-02-19 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:56:05 [end_date_ymd] => 2025-02-19 21:56:05 [RateCDR] => 1 ) [2025-02-19 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:56:05' and `end` < '2025-02-19 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:56:17] Production.INFO: count ==2534 [2025-02-19 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:56:05 - End Time 2025-02-19 21:56:05 [2025-02-19 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513287', 'tblTempUsageDetail_20' ) start [2025-02-19 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513287', 'tblTempUsageDetail_20' ) end [2025-02-19 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513287', 'tblTempVendorCDR_20' ) start [2025-02-19 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513287', 'tblTempVendorCDR_20' ) end [2025-02-19 21:56:18] Production.INFO: ProcessCDR(1,14513287,1,1,2) [2025-02-19 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513287', 'tblTempUsageDetail_20' ) start [2025-02-19 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513287', 'tblTempUsageDetail_20' ) end [2025-02-19 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:56:23] Production.INFO: ==32394== Releasing lock... [2025-02-19 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:56:23] Production.INFO: 47 MB #Memory Used# [2025-02-19 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:57:05 [end_date_ymd] => 2025-02-19 21:57:05 [RateCDR] => 1 ) [2025-02-19 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:57:05' and `end` < '2025-02-19 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:57:17] Production.INFO: count ==2533 [2025-02-19 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:57:05 - End Time 2025-02-19 21:57:05 [2025-02-19 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513292', 'tblTempUsageDetail_20' ) start [2025-02-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513292', 'tblTempUsageDetail_20' ) end [2025-02-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513292', 'tblTempVendorCDR_20' ) start [2025-02-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513292', 'tblTempVendorCDR_20' ) end [2025-02-19 21:57:18] Production.INFO: ProcessCDR(1,14513292,1,1,2) [2025-02-19 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513292', 'tblTempUsageDetail_20' ) start [2025-02-19 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513292', 'tblTempUsageDetail_20' ) end [2025-02-19 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:57:23] Production.INFO: ==32491== Releasing lock... [2025-02-19 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:57:23] Production.INFO: 47 MB #Memory Used# [2025-02-19 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:58:05 [end_date_ymd] => 2025-02-19 21:58:05 [RateCDR] => 1 ) [2025-02-19 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:58:05' and `end` < '2025-02-19 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:58:17] Production.INFO: count ==2502 [2025-02-19 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:58:05 - End Time 2025-02-19 21:58:05 [2025-02-19 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513297', 'tblTempUsageDetail_20' ) start [2025-02-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513297', 'tblTempUsageDetail_20' ) end [2025-02-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513297', 'tblTempVendorCDR_20' ) start [2025-02-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513297', 'tblTempVendorCDR_20' ) end [2025-02-19 21:58:18] Production.INFO: ProcessCDR(1,14513297,1,1,2) [2025-02-19 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513297', 'tblTempUsageDetail_20' ) start [2025-02-19 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513297', 'tblTempUsageDetail_20' ) end [2025-02-19 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:58:24] Production.INFO: ==32591== Releasing lock... [2025-02-19 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:58:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-19 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 18:59:05 [end_date_ymd] => 2025-02-19 21:59:05 [RateCDR] => 1 ) [2025-02-19 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 18:59:05' and `end` < '2025-02-19 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 21:59:17] Production.INFO: count ==2469 [2025-02-19 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-19 18:59:05 - End Time 2025-02-19 21:59:05 [2025-02-19 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513302', 'tblTempUsageDetail_20' ) start [2025-02-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513302', 'tblTempUsageDetail_20' ) end [2025-02-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513302', 'tblTempVendorCDR_20' ) start [2025-02-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513302', 'tblTempVendorCDR_20' ) end [2025-02-19 21:59:18] Production.INFO: ProcessCDR(1,14513302,1,1,2) [2025-02-19 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513302', 'tblTempUsageDetail_20' ) start [2025-02-19 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513302', 'tblTempUsageDetail_20' ) end [2025-02-19 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 21:59:22] Production.INFO: ==32693== Releasing lock... [2025-02-19 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 21:59:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-19 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:00:06 [end_date_ymd] => 2025-02-19 22:00:06 [RateCDR] => 1 ) [2025-02-19 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:00:06' and `end` < '2025-02-19 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:00:18] Production.INFO: count ==2454 [2025-02-19 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:00:06 - End Time 2025-02-19 22:00:06 [2025-02-19 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513308', 'tblTempUsageDetail_20' ) start [2025-02-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513308', 'tblTempUsageDetail_20' ) end [2025-02-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513308', 'tblTempVendorCDR_20' ) start [2025-02-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513308', 'tblTempVendorCDR_20' ) end [2025-02-19 22:00:19] Production.INFO: ProcessCDR(1,14513308,1,1,2) [2025-02-19 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513308', 'tblTempUsageDetail_20' ) start [2025-02-19 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513308', 'tblTempUsageDetail_20' ) end [2025-02-19 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:00:24] Production.INFO: ==338== Releasing lock... [2025-02-19 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:00:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-19 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:01:05 [end_date_ymd] => 2025-02-19 22:01:05 [RateCDR] => 1 ) [2025-02-19 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:01:05' and `end` < '2025-02-19 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:01:17] Production.INFO: count ==2413 [2025-02-19 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:01:05 - End Time 2025-02-19 22:01:05 [2025-02-19 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513313', 'tblTempUsageDetail_20' ) start [2025-02-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513313', 'tblTempUsageDetail_20' ) end [2025-02-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513313', 'tblTempVendorCDR_20' ) start [2025-02-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513313', 'tblTempVendorCDR_20' ) end [2025-02-19 22:01:18] Production.INFO: ProcessCDR(1,14513313,1,1,2) [2025-02-19 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513313', 'tblTempUsageDetail_20' ) start [2025-02-19 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513313', 'tblTempUsageDetail_20' ) end [2025-02-19 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:01:21] Production.INFO: ==458== Releasing lock... [2025-02-19 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:01:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:02:06 [end_date_ymd] => 2025-02-19 22:02:06 [RateCDR] => 1 ) [2025-02-19 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:02:06' and `end` < '2025-02-19 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:02:18] Production.INFO: count ==2421 [2025-02-19 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:02:06 - End Time 2025-02-19 22:02:06 [2025-02-19 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513318', 'tblTempUsageDetail_20' ) start [2025-02-19 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513318', 'tblTempUsageDetail_20' ) end [2025-02-19 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513318', 'tblTempVendorCDR_20' ) start [2025-02-19 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513318', 'tblTempVendorCDR_20' ) end [2025-02-19 22:02:19] Production.INFO: ProcessCDR(1,14513318,1,1,2) [2025-02-19 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513318', 'tblTempUsageDetail_20' ) start [2025-02-19 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513318', 'tblTempUsageDetail_20' ) end [2025-02-19 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:02:23] Production.INFO: ==553== Releasing lock... [2025-02-19 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:02:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:03:05 [end_date_ymd] => 2025-02-19 22:03:05 [RateCDR] => 1 ) [2025-02-19 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:03:05' and `end` < '2025-02-19 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:03:17] Production.INFO: count ==2417 [2025-02-19 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:03:05 - End Time 2025-02-19 22:03:05 [2025-02-19 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513323', 'tblTempUsageDetail_20' ) start [2025-02-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513323', 'tblTempUsageDetail_20' ) end [2025-02-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513323', 'tblTempVendorCDR_20' ) start [2025-02-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513323', 'tblTempVendorCDR_20' ) end [2025-02-19 22:03:18] Production.INFO: ProcessCDR(1,14513323,1,1,2) [2025-02-19 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513323', 'tblTempUsageDetail_20' ) start [2025-02-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513323', 'tblTempUsageDetail_20' ) end [2025-02-19 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:03:21] Production.INFO: ==653== Releasing lock... [2025-02-19 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:03:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:04:05 [end_date_ymd] => 2025-02-19 22:04:05 [RateCDR] => 1 ) [2025-02-19 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:04:05' and `end` < '2025-02-19 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:04:17] Production.INFO: count ==2417 [2025-02-19 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:04:05 - End Time 2025-02-19 22:04:05 [2025-02-19 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513328', 'tblTempUsageDetail_20' ) start [2025-02-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513328', 'tblTempUsageDetail_20' ) end [2025-02-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513328', 'tblTempVendorCDR_20' ) start [2025-02-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513328', 'tblTempVendorCDR_20' ) end [2025-02-19 22:04:18] Production.INFO: ProcessCDR(1,14513328,1,1,2) [2025-02-19 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513328', 'tblTempUsageDetail_20' ) start [2025-02-19 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513328', 'tblTempUsageDetail_20' ) end [2025-02-19 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:04:23] Production.INFO: ==814== Releasing lock... [2025-02-19 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:04:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:05:05 [end_date_ymd] => 2025-02-19 22:05:05 [RateCDR] => 1 ) [2025-02-19 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:05:05' and `end` < '2025-02-19 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:05:17] Production.INFO: count ==2417 [2025-02-19 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:05:05 - End Time 2025-02-19 22:05:05 [2025-02-19 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513333', 'tblTempUsageDetail_20' ) start [2025-02-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513333', 'tblTempUsageDetail_20' ) end [2025-02-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513333', 'tblTempVendorCDR_20' ) start [2025-02-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513333', 'tblTempVendorCDR_20' ) end [2025-02-19 22:05:18] Production.INFO: ProcessCDR(1,14513333,1,1,2) [2025-02-19 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513333', 'tblTempUsageDetail_20' ) start [2025-02-19 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513333', 'tblTempUsageDetail_20' ) end [2025-02-19 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:05:22] Production.INFO: ==906== Releasing lock... [2025-02-19 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:05:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:06:05 [end_date_ymd] => 2025-02-19 22:06:05 [RateCDR] => 1 ) [2025-02-19 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:06:05' and `end` < '2025-02-19 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:06:17] Production.INFO: count ==2428 [2025-02-19 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:06:05 - End Time 2025-02-19 22:06:05 [2025-02-19 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513338', 'tblTempUsageDetail_20' ) start [2025-02-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513338', 'tblTempUsageDetail_20' ) end [2025-02-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513338', 'tblTempVendorCDR_20' ) start [2025-02-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513338', 'tblTempVendorCDR_20' ) end [2025-02-19 22:06:18] Production.INFO: ProcessCDR(1,14513338,1,1,2) [2025-02-19 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513338', 'tblTempUsageDetail_20' ) start [2025-02-19 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513338', 'tblTempUsageDetail_20' ) end [2025-02-19 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:06:22] Production.INFO: ==1004== Releasing lock... [2025-02-19 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:06:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:07:05 [end_date_ymd] => 2025-02-19 22:07:05 [RateCDR] => 1 ) [2025-02-19 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:07:05' and `end` < '2025-02-19 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:07:17] Production.INFO: count ==2430 [2025-02-19 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:07:05 - End Time 2025-02-19 22:07:05 [2025-02-19 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513343', 'tblTempUsageDetail_20' ) start [2025-02-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513343', 'tblTempUsageDetail_20' ) end [2025-02-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513343', 'tblTempVendorCDR_20' ) start [2025-02-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513343', 'tblTempVendorCDR_20' ) end [2025-02-19 22:07:18] Production.INFO: ProcessCDR(1,14513343,1,1,2) [2025-02-19 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513343', 'tblTempUsageDetail_20' ) start [2025-02-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513343', 'tblTempUsageDetail_20' ) end [2025-02-19 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:07:21] Production.INFO: ==1096== Releasing lock... [2025-02-19 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:07:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:08:05 [end_date_ymd] => 2025-02-19 22:08:05 [RateCDR] => 1 ) [2025-02-19 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:08:05' and `end` < '2025-02-19 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:08:17] Production.INFO: count ==2440 [2025-02-19 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:08:05 - End Time 2025-02-19 22:08:05 [2025-02-19 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513348', 'tblTempUsageDetail_20' ) start [2025-02-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513348', 'tblTempUsageDetail_20' ) end [2025-02-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513348', 'tblTempVendorCDR_20' ) start [2025-02-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513348', 'tblTempVendorCDR_20' ) end [2025-02-19 22:08:18] Production.INFO: ProcessCDR(1,14513348,1,1,2) [2025-02-19 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513348', 'tblTempUsageDetail_20' ) start [2025-02-19 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513348', 'tblTempUsageDetail_20' ) end [2025-02-19 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:08:21] Production.INFO: ==1199== Releasing lock... [2025-02-19 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:08:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:09:05 [end_date_ymd] => 2025-02-19 22:09:05 [RateCDR] => 1 ) [2025-02-19 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:09:05' and `end` < '2025-02-19 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:09:17] Production.INFO: count ==2430 [2025-02-19 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:09:05 - End Time 2025-02-19 22:09:05 [2025-02-19 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513353', 'tblTempUsageDetail_20' ) start [2025-02-19 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513353', 'tblTempUsageDetail_20' ) end [2025-02-19 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513353', 'tblTempVendorCDR_20' ) start [2025-02-19 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513353', 'tblTempVendorCDR_20' ) end [2025-02-19 22:09:18] Production.INFO: ProcessCDR(1,14513353,1,1,2) [2025-02-19 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513353', 'tblTempUsageDetail_20' ) start [2025-02-19 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513353', 'tblTempUsageDetail_20' ) end [2025-02-19 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:09:21] Production.INFO: ==1304== Releasing lock... [2025-02-19 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:09:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-19 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:10:06 [end_date_ymd] => 2025-02-19 22:10:06 [RateCDR] => 1 ) [2025-02-19 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:10:06' and `end` < '2025-02-19 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:10:18] Production.INFO: count ==2413 [2025-02-19 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:10:06 - End Time 2025-02-19 22:10:06 [2025-02-19 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513359', 'tblTempUsageDetail_20' ) start [2025-02-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513359', 'tblTempUsageDetail_20' ) end [2025-02-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513359', 'tblTempVendorCDR_20' ) start [2025-02-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513359', 'tblTempVendorCDR_20' ) end [2025-02-19 22:10:19] Production.INFO: ProcessCDR(1,14513359,1,1,2) [2025-02-19 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513359', 'tblTempUsageDetail_20' ) start [2025-02-19 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513359', 'tblTempUsageDetail_20' ) end [2025-02-19 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:10:22] Production.INFO: ==1408== Releasing lock... [2025-02-19 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:10:22] Production.INFO: 46 MB #Memory Used# [2025-02-19 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:11:05 [end_date_ymd] => 2025-02-19 22:11:05 [RateCDR] => 1 ) [2025-02-19 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:11:05' and `end` < '2025-02-19 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:11:17] Production.INFO: count ==2375 [2025-02-19 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:11:05 - End Time 2025-02-19 22:11:05 [2025-02-19 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513364', 'tblTempUsageDetail_20' ) start [2025-02-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513364', 'tblTempUsageDetail_20' ) end [2025-02-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513364', 'tblTempVendorCDR_20' ) start [2025-02-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513364', 'tblTempVendorCDR_20' ) end [2025-02-19 22:11:18] Production.INFO: ProcessCDR(1,14513364,1,1,2) [2025-02-19 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513364', 'tblTempUsageDetail_20' ) start [2025-02-19 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513364', 'tblTempUsageDetail_20' ) end [2025-02-19 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:11:21] Production.INFO: ==1505== Releasing lock... [2025-02-19 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:11:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-19 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:12:05 [end_date_ymd] => 2025-02-19 22:12:05 [RateCDR] => 1 ) [2025-02-19 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:12:05' and `end` < '2025-02-19 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:12:17] Production.INFO: count ==2368 [2025-02-19 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:12:05 - End Time 2025-02-19 22:12:05 [2025-02-19 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513369', 'tblTempUsageDetail_20' ) start [2025-02-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513369', 'tblTempUsageDetail_20' ) end [2025-02-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513369', 'tblTempVendorCDR_20' ) start [2025-02-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513369', 'tblTempVendorCDR_20' ) end [2025-02-19 22:12:18] Production.INFO: ProcessCDR(1,14513369,1,1,2) [2025-02-19 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513369', 'tblTempUsageDetail_20' ) start [2025-02-19 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513369', 'tblTempUsageDetail_20' ) end [2025-02-19 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:12:21] Production.INFO: ==1633== Releasing lock... [2025-02-19 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:12:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-19 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:13:06 [end_date_ymd] => 2025-02-19 22:13:06 [RateCDR] => 1 ) [2025-02-19 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:13:06' and `end` < '2025-02-19 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:13:18] Production.INFO: count ==2361 [2025-02-19 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:13:06 - End Time 2025-02-19 22:13:06 [2025-02-19 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513374', 'tblTempUsageDetail_20' ) start [2025-02-19 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513374', 'tblTempUsageDetail_20' ) end [2025-02-19 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513374', 'tblTempVendorCDR_20' ) start [2025-02-19 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513374', 'tblTempVendorCDR_20' ) end [2025-02-19 22:13:19] Production.INFO: ProcessCDR(1,14513374,1,1,2) [2025-02-19 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513374', 'tblTempUsageDetail_20' ) start [2025-02-19 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513374', 'tblTempUsageDetail_20' ) end [2025-02-19 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:13:22] Production.INFO: ==1728== Releasing lock... [2025-02-19 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:13:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-19 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:14:05 [end_date_ymd] => 2025-02-19 22:14:05 [RateCDR] => 1 ) [2025-02-19 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:14:05' and `end` < '2025-02-19 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:14:17] Production.INFO: count ==2356 [2025-02-19 22:14:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:14:05 - End Time 2025-02-19 22:14:05 [2025-02-19 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513379', 'tblTempUsageDetail_20' ) start [2025-02-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513379', 'tblTempUsageDetail_20' ) end [2025-02-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513379', 'tblTempVendorCDR_20' ) start [2025-02-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513379', 'tblTempVendorCDR_20' ) end [2025-02-19 22:14:18] Production.INFO: ProcessCDR(1,14513379,1,1,2) [2025-02-19 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513379', 'tblTempUsageDetail_20' ) start [2025-02-19 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513379', 'tblTempUsageDetail_20' ) end [2025-02-19 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:14:21] Production.INFO: ==1818== Releasing lock... [2025-02-19 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:14:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-19 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:15:04 [end_date_ymd] => 2025-02-19 22:15:04 [RateCDR] => 1 ) [2025-02-19 22:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:15:04' and `end` < '2025-02-19 22:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:15:16] Production.INFO: count ==2346 [2025-02-19 22:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:15:04 - End Time 2025-02-19 22:15:04 [2025-02-19 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513384', 'tblTempUsageDetail_20' ) start [2025-02-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513384', 'tblTempUsageDetail_20' ) end [2025-02-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513384', 'tblTempVendorCDR_20' ) start [2025-02-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513384', 'tblTempVendorCDR_20' ) end [2025-02-19 22:15:17] Production.INFO: ProcessCDR(1,14513384,1,1,2) [2025-02-19 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513384', 'tblTempUsageDetail_20' ) start [2025-02-19 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513384', 'tblTempUsageDetail_20' ) end [2025-02-19 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:15:21] Production.INFO: ==1915== Releasing lock... [2025-02-19 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:15:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-19 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:16:05 [end_date_ymd] => 2025-02-19 22:16:05 [RateCDR] => 1 ) [2025-02-19 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:16:05' and `end` < '2025-02-19 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:16:17] Production.INFO: count ==2343 [2025-02-19 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:16:05 - End Time 2025-02-19 22:16:05 [2025-02-19 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513389', 'tblTempUsageDetail_20' ) start [2025-02-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513389', 'tblTempUsageDetail_20' ) end [2025-02-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513389', 'tblTempVendorCDR_20' ) start [2025-02-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513389', 'tblTempVendorCDR_20' ) end [2025-02-19 22:16:18] Production.INFO: ProcessCDR(1,14513389,1,1,2) [2025-02-19 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513389', 'tblTempUsageDetail_20' ) start [2025-02-19 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513389', 'tblTempUsageDetail_20' ) end [2025-02-19 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:16:21] Production.INFO: ==2010== Releasing lock... [2025-02-19 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:16:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-19 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:17:05 [end_date_ymd] => 2025-02-19 22:17:05 [RateCDR] => 1 ) [2025-02-19 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:17:05' and `end` < '2025-02-19 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:17:17] Production.INFO: count ==2340 [2025-02-19 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:17:05 - End Time 2025-02-19 22:17:05 [2025-02-19 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513394', 'tblTempUsageDetail_20' ) start [2025-02-19 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513394', 'tblTempUsageDetail_20' ) end [2025-02-19 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513394', 'tblTempVendorCDR_20' ) start [2025-02-19 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513394', 'tblTempVendorCDR_20' ) end [2025-02-19 22:17:19] Production.INFO: ProcessCDR(1,14513394,1,1,2) [2025-02-19 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513394', 'tblTempUsageDetail_20' ) start [2025-02-19 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513394', 'tblTempUsageDetail_20' ) end [2025-02-19 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:17:22] Production.INFO: ==2124== Releasing lock... [2025-02-19 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:17:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-19 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:18:05 [end_date_ymd] => 2025-02-19 22:18:05 [RateCDR] => 1 ) [2025-02-19 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:18:05' and `end` < '2025-02-19 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:18:17] Production.INFO: count ==2338 [2025-02-19 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:18:05 - End Time 2025-02-19 22:18:05 [2025-02-19 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513399', 'tblTempUsageDetail_20' ) start [2025-02-19 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513399', 'tblTempUsageDetail_20' ) end [2025-02-19 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513399', 'tblTempVendorCDR_20' ) start [2025-02-19 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513399', 'tblTempVendorCDR_20' ) end [2025-02-19 22:18:19] Production.INFO: ProcessCDR(1,14513399,1,1,2) [2025-02-19 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513399', 'tblTempUsageDetail_20' ) start [2025-02-19 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513399', 'tblTempUsageDetail_20' ) end [2025-02-19 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:18:22] Production.INFO: ==2221== Releasing lock... [2025-02-19 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:18:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-19 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:19:05 [end_date_ymd] => 2025-02-19 22:19:05 [RateCDR] => 1 ) [2025-02-19 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:19:05' and `end` < '2025-02-19 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:19:17] Production.INFO: count ==2336 [2025-02-19 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:19:05 - End Time 2025-02-19 22:19:05 [2025-02-19 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513404', 'tblTempUsageDetail_20' ) start [2025-02-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513404', 'tblTempUsageDetail_20' ) end [2025-02-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513404', 'tblTempVendorCDR_20' ) start [2025-02-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513404', 'tblTempVendorCDR_20' ) end [2025-02-19 22:19:18] Production.INFO: ProcessCDR(1,14513404,1,1,2) [2025-02-19 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513404', 'tblTempUsageDetail_20' ) start [2025-02-19 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513404', 'tblTempUsageDetail_20' ) end [2025-02-19 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:19:21] Production.INFO: ==2355== Releasing lock... [2025-02-19 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:19:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-19 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:20:06 [end_date_ymd] => 2025-02-19 22:20:06 [RateCDR] => 1 ) [2025-02-19 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:20:06' and `end` < '2025-02-19 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:20:18] Production.INFO: count ==2334 [2025-02-19 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:20:06 - End Time 2025-02-19 22:20:06 [2025-02-19 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513410', 'tblTempUsageDetail_20' ) start [2025-02-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513410', 'tblTempUsageDetail_20' ) end [2025-02-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513410', 'tblTempVendorCDR_20' ) start [2025-02-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513410', 'tblTempVendorCDR_20' ) end [2025-02-19 22:20:19] Production.INFO: ProcessCDR(1,14513410,1,1,2) [2025-02-19 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513410', 'tblTempUsageDetail_20' ) start [2025-02-19 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513410', 'tblTempUsageDetail_20' ) end [2025-02-19 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:20:24] Production.INFO: ==2452== Releasing lock... [2025-02-19 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:20:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-19 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:21:06 [end_date_ymd] => 2025-02-19 22:21:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 19:21:06' and `end` < '2025-02-19 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-02-19 22:21:18] Production.INFO: count ==2302 [2025-02-19 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:21:06 - End Time 2025-02-19 22:21:06 [2025-02-19 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513415', 'tblTempUsageDetail_20' ) start [2025-02-19 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513415', 'tblTempUsageDetail_20' ) end [2025-02-19 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513415', 'tblTempVendorCDR_20' ) start [2025-02-19 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513415', 'tblTempVendorCDR_20' ) end [2025-02-19 22:21:19] Production.INFO: ProcessCDR(1,14513415,1,1,2) [2025-02-19 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513415', 'tblTempUsageDetail_20' ) start [2025-02-19 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513415', 'tblTempUsageDetail_20' ) end [2025-02-19 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:21:23] Production.INFO: ==2554== Releasing lock... [2025-02-19 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-19 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:22:05 [end_date_ymd] => 2025-02-19 22:22:05 [RateCDR] => 1 ) [2025-02-19 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:22:05' and `end` < '2025-02-19 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:22:17] Production.INFO: count ==2282 [2025-02-19 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:22:05 - End Time 2025-02-19 22:22:05 [2025-02-19 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513420', 'tblTempUsageDetail_20' ) start [2025-02-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513420', 'tblTempUsageDetail_20' ) end [2025-02-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513420', 'tblTempVendorCDR_20' ) start [2025-02-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513420', 'tblTempVendorCDR_20' ) end [2025-02-19 22:22:18] Production.INFO: ProcessCDR(1,14513420,1,1,2) [2025-02-19 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513420', 'tblTempUsageDetail_20' ) start [2025-02-19 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513420', 'tblTempUsageDetail_20' ) end [2025-02-19 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:22:22] Production.INFO: ==2655== Releasing lock... [2025-02-19 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:22:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-19 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:23:05 [end_date_ymd] => 2025-02-19 22:23:05 [RateCDR] => 1 ) [2025-02-19 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:23:05' and `end` < '2025-02-19 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:23:18] Production.INFO: count ==2278 [2025-02-19 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:23:05 - End Time 2025-02-19 22:23:05 [2025-02-19 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513425', 'tblTempUsageDetail_20' ) start [2025-02-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513425', 'tblTempUsageDetail_20' ) end [2025-02-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513425', 'tblTempVendorCDR_20' ) start [2025-02-19 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513425', 'tblTempVendorCDR_20' ) end [2025-02-19 22:23:19] Production.INFO: ProcessCDR(1,14513425,1,1,2) [2025-02-19 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513425', 'tblTempUsageDetail_20' ) start [2025-02-19 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513425', 'tblTempUsageDetail_20' ) end [2025-02-19 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:23:22] Production.INFO: ==2757== Releasing lock... [2025-02-19 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:23:22] Production.INFO: 45 MB #Memory Used# [2025-02-19 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:24:05 [end_date_ymd] => 2025-02-19 22:24:05 [RateCDR] => 1 ) [2025-02-19 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:24:05' and `end` < '2025-02-19 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:24:17] Production.INFO: count ==2275 [2025-02-19 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:24:05 - End Time 2025-02-19 22:24:05 [2025-02-19 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513430', 'tblTempUsageDetail_20' ) start [2025-02-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513430', 'tblTempUsageDetail_20' ) end [2025-02-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513430', 'tblTempVendorCDR_20' ) start [2025-02-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513430', 'tblTempVendorCDR_20' ) end [2025-02-19 22:24:18] Production.INFO: ProcessCDR(1,14513430,1,1,2) [2025-02-19 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513430', 'tblTempUsageDetail_20' ) start [2025-02-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513430', 'tblTempUsageDetail_20' ) end [2025-02-19 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:24:21] Production.INFO: ==2857== Releasing lock... [2025-02-19 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:24:21] Production.INFO: 45 MB #Memory Used# [2025-02-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:25:05 [end_date_ymd] => 2025-02-19 22:25:05 [RateCDR] => 1 ) [2025-02-19 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:25:05' and `end` < '2025-02-19 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:25:17] Production.INFO: count ==2256 [2025-02-19 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:25:05 - End Time 2025-02-19 22:25:05 [2025-02-19 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513435', 'tblTempUsageDetail_20' ) start [2025-02-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513435', 'tblTempUsageDetail_20' ) end [2025-02-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513435', 'tblTempVendorCDR_20' ) start [2025-02-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513435', 'tblTempVendorCDR_20' ) end [2025-02-19 22:25:18] Production.INFO: ProcessCDR(1,14513435,1,1,2) [2025-02-19 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513435', 'tblTempUsageDetail_20' ) start [2025-02-19 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513435', 'tblTempUsageDetail_20' ) end [2025-02-19 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:25:22] Production.INFO: ==2963== Releasing lock... [2025-02-19 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:25:22] Production.INFO: 45 MB #Memory Used# [2025-02-19 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:26:05 [end_date_ymd] => 2025-02-19 22:26:05 [RateCDR] => 1 ) [2025-02-19 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:26:05' and `end` < '2025-02-19 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:26:17] Production.INFO: count ==2235 [2025-02-19 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:26:05 - End Time 2025-02-19 22:26:05 [2025-02-19 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513440', 'tblTempUsageDetail_20' ) start [2025-02-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513440', 'tblTempUsageDetail_20' ) end [2025-02-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513440', 'tblTempVendorCDR_20' ) start [2025-02-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513440', 'tblTempVendorCDR_20' ) end [2025-02-19 22:26:18] Production.INFO: ProcessCDR(1,14513440,1,1,2) [2025-02-19 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513440', 'tblTempUsageDetail_20' ) start [2025-02-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513440', 'tblTempUsageDetail_20' ) end [2025-02-19 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:26:21] Production.INFO: ==3074== Releasing lock... [2025-02-19 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:26:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-19 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:27:06 [end_date_ymd] => 2025-02-19 22:27:06 [RateCDR] => 1 ) [2025-02-19 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:27:06' and `end` < '2025-02-19 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:27:18] Production.INFO: count ==2226 [2025-02-19 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:27:06 - End Time 2025-02-19 22:27:06 [2025-02-19 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513445', 'tblTempUsageDetail_20' ) start [2025-02-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513445', 'tblTempUsageDetail_20' ) end [2025-02-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513445', 'tblTempVendorCDR_20' ) start [2025-02-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513445', 'tblTempVendorCDR_20' ) end [2025-02-19 22:27:18] Production.INFO: ProcessCDR(1,14513445,1,1,2) [2025-02-19 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513445', 'tblTempUsageDetail_20' ) start [2025-02-19 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513445', 'tblTempUsageDetail_20' ) end [2025-02-19 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:27:22] Production.INFO: ==3181== Releasing lock... [2025-02-19 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:27:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:28:04 [end_date_ymd] => 2025-02-19 22:28:04 [RateCDR] => 1 ) [2025-02-19 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:28:04' and `end` < '2025-02-19 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:28:16] Production.INFO: count ==2225 [2025-02-19 22:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:28:04 - End Time 2025-02-19 22:28:04 [2025-02-19 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513450', 'tblTempUsageDetail_20' ) start [2025-02-19 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513450', 'tblTempUsageDetail_20' ) end [2025-02-19 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513450', 'tblTempVendorCDR_20' ) start [2025-02-19 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513450', 'tblTempVendorCDR_20' ) end [2025-02-19 22:28:17] Production.INFO: ProcessCDR(1,14513450,1,1,2) [2025-02-19 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513450', 'tblTempUsageDetail_20' ) start [2025-02-19 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513450', 'tblTempUsageDetail_20' ) end [2025-02-19 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:28:21] Production.INFO: ==3284== Releasing lock... [2025-02-19 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:28:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:29:06 [end_date_ymd] => 2025-02-19 22:29:06 [RateCDR] => 1 ) [2025-02-19 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:29:06' and `end` < '2025-02-19 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:29:18] Production.INFO: count ==2223 [2025-02-19 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:29:06 - End Time 2025-02-19 22:29:06 [2025-02-19 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513455', 'tblTempUsageDetail_20' ) start [2025-02-19 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513455', 'tblTempUsageDetail_20' ) end [2025-02-19 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513455', 'tblTempVendorCDR_20' ) start [2025-02-19 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513455', 'tblTempVendorCDR_20' ) end [2025-02-19 22:29:19] Production.INFO: ProcessCDR(1,14513455,1,1,2) [2025-02-19 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513455', 'tblTempUsageDetail_20' ) start [2025-02-19 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513455', 'tblTempUsageDetail_20' ) end [2025-02-19 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:29:22] Production.INFO: ==3389== Releasing lock... [2025-02-19 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:29:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:30:06 [end_date_ymd] => 2025-02-19 22:30:06 [RateCDR] => 1 ) [2025-02-19 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:30:06' and `end` < '2025-02-19 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:30:18] Production.INFO: count ==2224 [2025-02-19 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:30:06 - End Time 2025-02-19 22:30:06 [2025-02-19 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513461', 'tblTempUsageDetail_20' ) start [2025-02-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513461', 'tblTempUsageDetail_20' ) end [2025-02-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513461', 'tblTempVendorCDR_20' ) start [2025-02-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513461', 'tblTempVendorCDR_20' ) end [2025-02-19 22:30:19] Production.INFO: ProcessCDR(1,14513461,1,1,2) [2025-02-19 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513461', 'tblTempUsageDetail_20' ) start [2025-02-19 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513461', 'tblTempUsageDetail_20' ) end [2025-02-19 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:30:22] Production.INFO: ==3495== Releasing lock... [2025-02-19 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:30:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:31:05 [end_date_ymd] => 2025-02-19 22:31:05 [RateCDR] => 1 ) [2025-02-19 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:31:05' and `end` < '2025-02-19 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:31:17] Production.INFO: count ==2183 [2025-02-19 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:31:05 - End Time 2025-02-19 22:31:05 [2025-02-19 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513466', 'tblTempUsageDetail_20' ) start [2025-02-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513466', 'tblTempUsageDetail_20' ) end [2025-02-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513466', 'tblTempVendorCDR_20' ) start [2025-02-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513466', 'tblTempVendorCDR_20' ) end [2025-02-19 22:31:18] Production.INFO: ProcessCDR(1,14513466,1,1,2) [2025-02-19 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513466', 'tblTempUsageDetail_20' ) start [2025-02-19 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513466', 'tblTempUsageDetail_20' ) end [2025-02-19 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:31:22] Production.INFO: ==3601== Releasing lock... [2025-02-19 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:31:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:32:05 [end_date_ymd] => 2025-02-19 22:32:05 [RateCDR] => 1 ) [2025-02-19 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:32:05' and `end` < '2025-02-19 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:32:17] Production.INFO: count ==2182 [2025-02-19 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:32:05 - End Time 2025-02-19 22:32:05 [2025-02-19 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513471', 'tblTempUsageDetail_20' ) start [2025-02-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513471', 'tblTempUsageDetail_20' ) end [2025-02-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513471', 'tblTempVendorCDR_20' ) start [2025-02-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513471', 'tblTempVendorCDR_20' ) end [2025-02-19 22:32:18] Production.INFO: ProcessCDR(1,14513471,1,1,2) [2025-02-19 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513471', 'tblTempUsageDetail_20' ) start [2025-02-19 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513471', 'tblTempUsageDetail_20' ) end [2025-02-19 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:32:21] Production.INFO: ==3701== Releasing lock... [2025-02-19 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:32:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:33:05 [end_date_ymd] => 2025-02-19 22:33:05 [RateCDR] => 1 ) [2025-02-19 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:33:05' and `end` < '2025-02-19 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:33:17] Production.INFO: count ==2182 [2025-02-19 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:33:05 - End Time 2025-02-19 22:33:05 [2025-02-19 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513476', 'tblTempUsageDetail_20' ) start [2025-02-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513476', 'tblTempUsageDetail_20' ) end [2025-02-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513476', 'tblTempVendorCDR_20' ) start [2025-02-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513476', 'tblTempVendorCDR_20' ) end [2025-02-19 22:33:18] Production.INFO: ProcessCDR(1,14513476,1,1,2) [2025-02-19 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513476', 'tblTempUsageDetail_20' ) start [2025-02-19 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513476', 'tblTempUsageDetail_20' ) end [2025-02-19 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:33:22] Production.INFO: ==3806== Releasing lock... [2025-02-19 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:33:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:34:04 [end_date_ymd] => 2025-02-19 22:34:04 [RateCDR] => 1 ) [2025-02-19 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:34:04' and `end` < '2025-02-19 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:34:16] Production.INFO: count ==2182 [2025-02-19 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:34:04 - End Time 2025-02-19 22:34:04 [2025-02-19 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513478', 'tblTempUsageDetail_20' ) start [2025-02-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513478', 'tblTempUsageDetail_20' ) end [2025-02-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513478', 'tblTempVendorCDR_20' ) start [2025-02-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513478', 'tblTempVendorCDR_20' ) end [2025-02-19 22:34:17] Production.INFO: ProcessCDR(1,14513478,1,1,2) [2025-02-19 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513478', 'tblTempUsageDetail_20' ) start [2025-02-19 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513478', 'tblTempUsageDetail_20' ) end [2025-02-19 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:34:20] Production.INFO: ==3907== Releasing lock... [2025-02-19 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:34:20] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:35:05 [end_date_ymd] => 2025-02-19 22:35:05 [RateCDR] => 1 ) [2025-02-19 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:35:05' and `end` < '2025-02-19 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:35:17] Production.INFO: count ==2180 [2025-02-19 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:35:05 - End Time 2025-02-19 22:35:05 [2025-02-19 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513486', 'tblTempUsageDetail_20' ) start [2025-02-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513486', 'tblTempUsageDetail_20' ) end [2025-02-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513486', 'tblTempVendorCDR_20' ) start [2025-02-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513486', 'tblTempVendorCDR_20' ) end [2025-02-19 22:35:18] Production.INFO: ProcessCDR(1,14513486,1,1,2) [2025-02-19 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513486', 'tblTempUsageDetail_20' ) start [2025-02-19 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513486', 'tblTempUsageDetail_20' ) end [2025-02-19 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:35:23] Production.INFO: ==4049== Releasing lock... [2025-02-19 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:35:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-19 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:36:04 [end_date_ymd] => 2025-02-19 22:36:04 [RateCDR] => 1 ) [2025-02-19 22:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:36:04' and `end` < '2025-02-19 22:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:36:16] Production.INFO: count ==2177 [2025-02-19 22:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:36:04 - End Time 2025-02-19 22:36:04 [2025-02-19 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513491', 'tblTempUsageDetail_20' ) start [2025-02-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513491', 'tblTempUsageDetail_20' ) end [2025-02-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513491', 'tblTempVendorCDR_20' ) start [2025-02-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513491', 'tblTempVendorCDR_20' ) end [2025-02-19 22:36:17] Production.INFO: ProcessCDR(1,14513491,1,1,2) [2025-02-19 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513491', 'tblTempUsageDetail_20' ) start [2025-02-19 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513491', 'tblTempUsageDetail_20' ) end [2025-02-19 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:36:21] Production.INFO: ==4153== Releasing lock... [2025-02-19 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:36:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-19 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:37:05 [end_date_ymd] => 2025-02-19 22:37:05 [RateCDR] => 1 ) [2025-02-19 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:37:05' and `end` < '2025-02-19 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:37:17] Production.INFO: count ==2162 [2025-02-19 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:37:05 - End Time 2025-02-19 22:37:05 [2025-02-19 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513496', 'tblTempUsageDetail_20' ) start [2025-02-19 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513496', 'tblTempUsageDetail_20' ) end [2025-02-19 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513496', 'tblTempVendorCDR_20' ) start [2025-02-19 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513496', 'tblTempVendorCDR_20' ) end [2025-02-19 22:37:18] Production.INFO: ProcessCDR(1,14513496,1,1,2) [2025-02-19 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513496', 'tblTempUsageDetail_20' ) start [2025-02-19 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513496', 'tblTempUsageDetail_20' ) end [2025-02-19 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:37:21] Production.INFO: ==4261== Releasing lock... [2025-02-19 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:37:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-19 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:38:05 [end_date_ymd] => 2025-02-19 22:38:05 [RateCDR] => 1 ) [2025-02-19 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:38:05' and `end` < '2025-02-19 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:38:17] Production.INFO: count ==2149 [2025-02-19 22:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:38:05 - End Time 2025-02-19 22:38:05 [2025-02-19 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513501', 'tblTempUsageDetail_20' ) start [2025-02-19 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513501', 'tblTempUsageDetail_20' ) end [2025-02-19 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513501', 'tblTempVendorCDR_20' ) start [2025-02-19 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513501', 'tblTempVendorCDR_20' ) end [2025-02-19 22:38:17] Production.INFO: ProcessCDR(1,14513501,1,1,2) [2025-02-19 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513501', 'tblTempUsageDetail_20' ) start [2025-02-19 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513501', 'tblTempUsageDetail_20' ) end [2025-02-19 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:38:21] Production.INFO: ==4368== Releasing lock... [2025-02-19 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:38:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-19 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:39:05 [end_date_ymd] => 2025-02-19 22:39:05 [RateCDR] => 1 ) [2025-02-19 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:39:05' and `end` < '2025-02-19 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:39:17] Production.INFO: count ==2116 [2025-02-19 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:39:05 - End Time 2025-02-19 22:39:05 [2025-02-19 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513506', 'tblTempUsageDetail_20' ) start [2025-02-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513506', 'tblTempUsageDetail_20' ) end [2025-02-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513506', 'tblTempVendorCDR_20' ) start [2025-02-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513506', 'tblTempVendorCDR_20' ) end [2025-02-19 22:39:18] Production.INFO: ProcessCDR(1,14513506,1,1,2) [2025-02-19 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513506', 'tblTempUsageDetail_20' ) start [2025-02-19 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513506', 'tblTempUsageDetail_20' ) end [2025-02-19 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:39:21] Production.INFO: ==4475== Releasing lock... [2025-02-19 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:39:21] Production.INFO: 44 MB #Memory Used# [2025-02-19 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:40:07 [end_date_ymd] => 2025-02-19 22:40:07 [RateCDR] => 1 ) [2025-02-19 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:40:07' and `end` < '2025-02-19 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:40:19] Production.INFO: count ==2079 [2025-02-19 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:40:07 - End Time 2025-02-19 22:40:07 [2025-02-19 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513512', 'tblTempUsageDetail_20' ) start [2025-02-19 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513512', 'tblTempUsageDetail_20' ) end [2025-02-19 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513512', 'tblTempVendorCDR_20' ) start [2025-02-19 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513512', 'tblTempVendorCDR_20' ) end [2025-02-19 22:40:20] Production.INFO: ProcessCDR(1,14513512,1,1,2) [2025-02-19 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513512', 'tblTempUsageDetail_20' ) start [2025-02-19 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513512', 'tblTempUsageDetail_20' ) end [2025-02-19 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:40:23] Production.INFO: ==4587== Releasing lock... [2025-02-19 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:40:23] Production.INFO: 44 MB #Memory Used# [2025-02-19 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:41:05 [end_date_ymd] => 2025-02-19 22:41:05 [RateCDR] => 1 ) [2025-02-19 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:41:05' and `end` < '2025-02-19 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:41:17] Production.INFO: count ==2002 [2025-02-19 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:41:05 - End Time 2025-02-19 22:41:05 [2025-02-19 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513517', 'tblTempUsageDetail_20' ) start [2025-02-19 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513517', 'tblTempUsageDetail_20' ) end [2025-02-19 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513517', 'tblTempVendorCDR_20' ) start [2025-02-19 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513517', 'tblTempVendorCDR_20' ) end [2025-02-19 22:41:18] Production.INFO: ProcessCDR(1,14513517,1,1,2) [2025-02-19 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513517', 'tblTempUsageDetail_20' ) start [2025-02-19 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513517', 'tblTempUsageDetail_20' ) end [2025-02-19 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:41:23] Production.INFO: ==4695== Releasing lock... [2025-02-19 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:41:23] Production.INFO: 43 MB #Memory Used# [2025-02-19 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:42:06 [end_date_ymd] => 2025-02-19 22:42:06 [RateCDR] => 1 ) [2025-02-19 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:42:06' and `end` < '2025-02-19 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:42:18] Production.INFO: count ==1961 [2025-02-19 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:42:06 - End Time 2025-02-19 22:42:06 [2025-02-19 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513522', 'tblTempUsageDetail_20' ) start [2025-02-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513522', 'tblTempUsageDetail_20' ) end [2025-02-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513522', 'tblTempVendorCDR_20' ) start [2025-02-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513522', 'tblTempVendorCDR_20' ) end [2025-02-19 22:42:18] Production.INFO: ProcessCDR(1,14513522,1,1,2) [2025-02-19 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513522', 'tblTempUsageDetail_20' ) start [2025-02-19 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513522', 'tblTempUsageDetail_20' ) end [2025-02-19 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:42:22] Production.INFO: ==4789== Releasing lock... [2025-02-19 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:42:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-19 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:43:06 [end_date_ymd] => 2025-02-19 22:43:06 [RateCDR] => 1 ) [2025-02-19 22:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:43:06' and `end` < '2025-02-19 22:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:43:18] Production.INFO: count ==1930 [2025-02-19 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:43:06 - End Time 2025-02-19 22:43:06 [2025-02-19 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513527', 'tblTempUsageDetail_20' ) start [2025-02-19 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513527', 'tblTempUsageDetail_20' ) end [2025-02-19 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513527', 'tblTempVendorCDR_20' ) start [2025-02-19 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513527', 'tblTempVendorCDR_20' ) end [2025-02-19 22:43:19] Production.INFO: ProcessCDR(1,14513527,1,1,2) [2025-02-19 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513527', 'tblTempUsageDetail_20' ) start [2025-02-19 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513527', 'tblTempUsageDetail_20' ) end [2025-02-19 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:43:22] Production.INFO: ==4880== Releasing lock... [2025-02-19 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:43:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-19 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:44:06 [end_date_ymd] => 2025-02-19 22:44:06 [RateCDR] => 1 ) [2025-02-19 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:44:06' and `end` < '2025-02-19 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:44:18] Production.INFO: count ==1893 [2025-02-19 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:44:06 - End Time 2025-02-19 22:44:06 [2025-02-19 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513532', 'tblTempUsageDetail_20' ) start [2025-02-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513532', 'tblTempUsageDetail_20' ) end [2025-02-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513532', 'tblTempVendorCDR_20' ) start [2025-02-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513532', 'tblTempVendorCDR_20' ) end [2025-02-19 22:44:18] Production.INFO: ProcessCDR(1,14513532,1,1,2) [2025-02-19 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513532', 'tblTempUsageDetail_20' ) start [2025-02-19 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513532', 'tblTempUsageDetail_20' ) end [2025-02-19 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:44:22] Production.INFO: ==4976== Releasing lock... [2025-02-19 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:44:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-19 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:45:04 [end_date_ymd] => 2025-02-19 22:45:04 [RateCDR] => 1 ) [2025-02-19 22:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:45:04' and `end` < '2025-02-19 22:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:45:16] Production.INFO: count ==1852 [2025-02-19 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:45:04 - End Time 2025-02-19 22:45:04 [2025-02-19 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513537', 'tblTempUsageDetail_20' ) start [2025-02-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513537', 'tblTempUsageDetail_20' ) end [2025-02-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513537', 'tblTempVendorCDR_20' ) start [2025-02-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513537', 'tblTempVendorCDR_20' ) end [2025-02-19 22:45:17] Production.INFO: ProcessCDR(1,14513537,1,1,2) [2025-02-19 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513537', 'tblTempUsageDetail_20' ) start [2025-02-19 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513537', 'tblTempUsageDetail_20' ) end [2025-02-19 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:45:20] Production.INFO: ==5074== Releasing lock... [2025-02-19 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:45:20] Production.INFO: 42.25 MB #Memory Used# [2025-02-19 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:46:05 [end_date_ymd] => 2025-02-19 22:46:05 [RateCDR] => 1 ) [2025-02-19 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:46:05' and `end` < '2025-02-19 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:46:17] Production.INFO: count ==1823 [2025-02-19 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:46:05 - End Time 2025-02-19 22:46:05 [2025-02-19 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513542', 'tblTempUsageDetail_20' ) start [2025-02-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513542', 'tblTempUsageDetail_20' ) end [2025-02-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513542', 'tblTempVendorCDR_20' ) start [2025-02-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513542', 'tblTempVendorCDR_20' ) end [2025-02-19 22:46:18] Production.INFO: ProcessCDR(1,14513542,1,1,2) [2025-02-19 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513542', 'tblTempUsageDetail_20' ) start [2025-02-19 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513542', 'tblTempUsageDetail_20' ) end [2025-02-19 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:46:23] Production.INFO: ==5173== Releasing lock... [2025-02-19 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:46:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-19 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:47:05 [end_date_ymd] => 2025-02-19 22:47:05 [RateCDR] => 1 ) [2025-02-19 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:47:05' and `end` < '2025-02-19 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:47:17] Production.INFO: count ==1775 [2025-02-19 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:47:05 - End Time 2025-02-19 22:47:05 [2025-02-19 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513547', 'tblTempUsageDetail_20' ) start [2025-02-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513547', 'tblTempUsageDetail_20' ) end [2025-02-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513547', 'tblTempVendorCDR_20' ) start [2025-02-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513547', 'tblTempVendorCDR_20' ) end [2025-02-19 22:47:17] Production.INFO: ProcessCDR(1,14513547,1,1,2) [2025-02-19 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513547', 'tblTempUsageDetail_20' ) start [2025-02-19 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513547', 'tblTempUsageDetail_20' ) end [2025-02-19 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:47:21] Production.INFO: ==5268== Releasing lock... [2025-02-19 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:47:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-19 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:48:05 [end_date_ymd] => 2025-02-19 22:48:05 [RateCDR] => 1 ) [2025-02-19 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:48:05' and `end` < '2025-02-19 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:48:17] Production.INFO: count ==1741 [2025-02-19 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:48:05 - End Time 2025-02-19 22:48:05 [2025-02-19 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513552', 'tblTempUsageDetail_20' ) start [2025-02-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513552', 'tblTempUsageDetail_20' ) end [2025-02-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513552', 'tblTempVendorCDR_20' ) start [2025-02-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513552', 'tblTempVendorCDR_20' ) end [2025-02-19 22:48:18] Production.INFO: ProcessCDR(1,14513552,1,1,2) [2025-02-19 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513552', 'tblTempUsageDetail_20' ) start [2025-02-19 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513552', 'tblTempUsageDetail_20' ) end [2025-02-19 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:48:21] Production.INFO: ==5365== Releasing lock... [2025-02-19 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:48:21] Production.INFO: 41 MB #Memory Used# [2025-02-19 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:49:05 [end_date_ymd] => 2025-02-19 22:49:05 [RateCDR] => 1 ) [2025-02-19 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:49:05' and `end` < '2025-02-19 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:49:17] Production.INFO: count ==1713 [2025-02-19 22:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:49:05 - End Time 2025-02-19 22:49:05 [2025-02-19 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513557', 'tblTempUsageDetail_20' ) start [2025-02-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513557', 'tblTempUsageDetail_20' ) end [2025-02-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513557', 'tblTempVendorCDR_20' ) start [2025-02-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513557', 'tblTempVendorCDR_20' ) end [2025-02-19 22:49:17] Production.INFO: ProcessCDR(1,14513557,1,1,2) [2025-02-19 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513557', 'tblTempUsageDetail_20' ) start [2025-02-19 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513557', 'tblTempUsageDetail_20' ) end [2025-02-19 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:49:21] Production.INFO: ==5448== Releasing lock... [2025-02-19 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:49:21] Production.INFO: 41 MB #Memory Used# [2025-02-19 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:50:06 [end_date_ymd] => 2025-02-19 22:50:06 [RateCDR] => 1 ) [2025-02-19 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:50:06' and `end` < '2025-02-19 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:50:18] Production.INFO: count ==1679 [2025-02-19 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-19 19:50:06 - End Time 2025-02-19 22:50:06 [2025-02-19 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513563', 'tblTempUsageDetail_20' ) start [2025-02-19 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513563', 'tblTempUsageDetail_20' ) end [2025-02-19 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513563', 'tblTempVendorCDR_20' ) start [2025-02-19 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513563', 'tblTempVendorCDR_20' ) end [2025-02-19 22:50:19] Production.INFO: ProcessCDR(1,14513563,1,1,2) [2025-02-19 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513563', 'tblTempUsageDetail_20' ) start [2025-02-19 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513563', 'tblTempUsageDetail_20' ) end [2025-02-19 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:50:22] Production.INFO: ==5572== Releasing lock... [2025-02-19 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:50:22] Production.INFO: 41 MB #Memory Used# [2025-02-19 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:51:05 [end_date_ymd] => 2025-02-19 22:51:05 [RateCDR] => 1 ) [2025-02-19 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:51:05' and `end` < '2025-02-19 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:51:17] Production.INFO: count ==1642 [2025-02-19 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:51:05 - End Time 2025-02-19 22:51:05 [2025-02-19 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513568', 'tblTempUsageDetail_20' ) start [2025-02-19 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513568', 'tblTempUsageDetail_20' ) end [2025-02-19 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513568', 'tblTempVendorCDR_20' ) start [2025-02-19 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513568', 'tblTempVendorCDR_20' ) end [2025-02-19 22:51:17] Production.INFO: ProcessCDR(1,14513568,1,1,2) [2025-02-19 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513568', 'tblTempUsageDetail_20' ) start [2025-02-19 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513568', 'tblTempUsageDetail_20' ) end [2025-02-19 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:51:21] Production.INFO: ==5660== Releasing lock... [2025-02-19 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:51:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-19 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:52:05 [end_date_ymd] => 2025-02-19 22:52:05 [RateCDR] => 1 ) [2025-02-19 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:52:05' and `end` < '2025-02-19 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:52:17] Production.INFO: count ==1625 [2025-02-19 22:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:52:05 - End Time 2025-02-19 22:52:05 [2025-02-19 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513573', 'tblTempUsageDetail_20' ) start [2025-02-19 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513573', 'tblTempUsageDetail_20' ) end [2025-02-19 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513573', 'tblTempVendorCDR_20' ) start [2025-02-19 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513573', 'tblTempVendorCDR_20' ) end [2025-02-19 22:52:18] Production.INFO: ProcessCDR(1,14513573,1,1,2) [2025-02-19 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513573', 'tblTempUsageDetail_20' ) start [2025-02-19 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513573', 'tblTempUsageDetail_20' ) end [2025-02-19 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:52:21] Production.INFO: ==5750== Releasing lock... [2025-02-19 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:52:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-19 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:53:05 [end_date_ymd] => 2025-02-19 22:53:05 [RateCDR] => 1 ) [2025-02-19 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:53:05' and `end` < '2025-02-19 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:53:17] Production.INFO: count ==1603 [2025-02-19 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:53:05 - End Time 2025-02-19 22:53:05 [2025-02-19 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513578', 'tblTempUsageDetail_20' ) start [2025-02-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513578', 'tblTempUsageDetail_20' ) end [2025-02-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513578', 'tblTempVendorCDR_20' ) start [2025-02-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513578', 'tblTempVendorCDR_20' ) end [2025-02-19 22:53:18] Production.INFO: ProcessCDR(1,14513578,1,1,2) [2025-02-19 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513578', 'tblTempUsageDetail_20' ) start [2025-02-19 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513578', 'tblTempUsageDetail_20' ) end [2025-02-19 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:53:21] Production.INFO: ==5834== Releasing lock... [2025-02-19 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:53:21] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:54:05 [end_date_ymd] => 2025-02-19 22:54:05 [RateCDR] => 1 ) [2025-02-19 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:54:05' and `end` < '2025-02-19 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:54:17] Production.INFO: count ==1602 [2025-02-19 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:54:05 - End Time 2025-02-19 22:54:05 [2025-02-19 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513583', 'tblTempUsageDetail_20' ) start [2025-02-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513583', 'tblTempUsageDetail_20' ) end [2025-02-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513583', 'tblTempVendorCDR_20' ) start [2025-02-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513583', 'tblTempVendorCDR_20' ) end [2025-02-19 22:54:18] Production.INFO: ProcessCDR(1,14513583,1,1,2) [2025-02-19 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513583', 'tblTempUsageDetail_20' ) start [2025-02-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513583', 'tblTempUsageDetail_20' ) end [2025-02-19 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:54:21] Production.INFO: ==5920== Releasing lock... [2025-02-19 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:54:21] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:55:05 [end_date_ymd] => 2025-02-19 22:55:05 [RateCDR] => 1 ) [2025-02-19 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:55:05' and `end` < '2025-02-19 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:55:17] Production.INFO: count ==1602 [2025-02-19 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:55:05 - End Time 2025-02-19 22:55:05 [2025-02-19 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513588', 'tblTempUsageDetail_20' ) start [2025-02-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513588', 'tblTempUsageDetail_20' ) end [2025-02-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513588', 'tblTempVendorCDR_20' ) start [2025-02-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513588', 'tblTempVendorCDR_20' ) end [2025-02-19 22:55:18] Production.INFO: ProcessCDR(1,14513588,1,1,2) [2025-02-19 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513588', 'tblTempUsageDetail_20' ) start [2025-02-19 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513588', 'tblTempUsageDetail_20' ) end [2025-02-19 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:55:21] Production.INFO: ==6004== Releasing lock... [2025-02-19 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:55:21] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:56:05 [end_date_ymd] => 2025-02-19 22:56:05 [RateCDR] => 1 ) [2025-02-19 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:56:05' and `end` < '2025-02-19 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:56:16] Production.INFO: count ==1607 [2025-02-19 22:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:56:05 - End Time 2025-02-19 22:56:05 [2025-02-19 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513593', 'tblTempUsageDetail_20' ) start [2025-02-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513593', 'tblTempUsageDetail_20' ) end [2025-02-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513593', 'tblTempVendorCDR_20' ) start [2025-02-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513593', 'tblTempVendorCDR_20' ) end [2025-02-19 22:56:17] Production.INFO: ProcessCDR(1,14513593,1,1,2) [2025-02-19 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513593', 'tblTempUsageDetail_20' ) start [2025-02-19 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513593', 'tblTempUsageDetail_20' ) end [2025-02-19 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:56:20] Production.INFO: ==6090== Releasing lock... [2025-02-19 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:56:20] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:57:05 [end_date_ymd] => 2025-02-19 22:57:05 [RateCDR] => 1 ) [2025-02-19 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:57:05' and `end` < '2025-02-19 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:57:17] Production.INFO: count ==1607 [2025-02-19 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:57:05 - End Time 2025-02-19 22:57:05 [2025-02-19 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513598', 'tblTempUsageDetail_20' ) start [2025-02-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513598', 'tblTempUsageDetail_20' ) end [2025-02-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513598', 'tblTempVendorCDR_20' ) start [2025-02-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513598', 'tblTempVendorCDR_20' ) end [2025-02-19 22:57:18] Production.INFO: ProcessCDR(1,14513598,1,1,2) [2025-02-19 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513598', 'tblTempUsageDetail_20' ) start [2025-02-19 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513598', 'tblTempUsageDetail_20' ) end [2025-02-19 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:57:21] Production.INFO: ==6176== Releasing lock... [2025-02-19 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:57:21] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:58:05 [end_date_ymd] => 2025-02-19 22:58:05 [RateCDR] => 1 ) [2025-02-19 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:58:05' and `end` < '2025-02-19 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:58:17] Production.INFO: count ==1572 [2025-02-19 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-19 19:58:05 - End Time 2025-02-19 22:58:05 [2025-02-19 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513603', 'tblTempUsageDetail_20' ) start [2025-02-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513603', 'tblTempUsageDetail_20' ) end [2025-02-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513603', 'tblTempVendorCDR_20' ) start [2025-02-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513603', 'tblTempVendorCDR_20' ) end [2025-02-19 22:58:18] Production.INFO: ProcessCDR(1,14513603,1,1,2) [2025-02-19 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513603', 'tblTempUsageDetail_20' ) start [2025-02-19 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513603', 'tblTempUsageDetail_20' ) end [2025-02-19 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:58:21] Production.INFO: ==6261== Releasing lock... [2025-02-19 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:58:21] Production.INFO: 40 MB #Memory Used# [2025-02-19 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 19:59:05 [end_date_ymd] => 2025-02-19 22:59:05 [RateCDR] => 1 ) [2025-02-19 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 19:59:05' and `end` < '2025-02-19 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 22:59:17] Production.INFO: count ==1536 [2025-02-19 22:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 19:59:05 - End Time 2025-02-19 22:59:05 [2025-02-19 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513608', 'tblTempUsageDetail_20' ) start [2025-02-19 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513608', 'tblTempUsageDetail_20' ) end [2025-02-19 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513608', 'tblTempVendorCDR_20' ) start [2025-02-19 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513608', 'tblTempVendorCDR_20' ) end [2025-02-19 22:59:17] Production.INFO: ProcessCDR(1,14513608,1,1,2) [2025-02-19 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513608', 'tblTempUsageDetail_20' ) start [2025-02-19 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513608', 'tblTempUsageDetail_20' ) end [2025-02-19 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 22:59:21] Production.INFO: ==6347== Releasing lock... [2025-02-19 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 22:59:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-19 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:00:06 [end_date_ymd] => 2025-02-19 23:00:06 [RateCDR] => 1 ) [2025-02-19 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:00:06' and `end` < '2025-02-19 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:00:17] Production.INFO: count ==1483 [2025-02-19 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:00:06 - End Time 2025-02-19 23:00:06 [2025-02-19 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513614', 'tblTempUsageDetail_20' ) start [2025-02-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513614', 'tblTempUsageDetail_20' ) end [2025-02-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513614', 'tblTempVendorCDR_20' ) start [2025-02-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513614', 'tblTempVendorCDR_20' ) end [2025-02-19 23:00:18] Production.INFO: ProcessCDR(1,14513614,1,1,2) [2025-02-19 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513614', 'tblTempUsageDetail_20' ) start [2025-02-19 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513614', 'tblTempUsageDetail_20' ) end [2025-02-19 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:00:21] Production.INFO: ==6427== Releasing lock... [2025-02-19 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:00:21] Production.INFO: 39 MB #Memory Used# [2025-02-19 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:01:05 [end_date_ymd] => 2025-02-19 23:01:05 [RateCDR] => 1 ) [2025-02-19 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:01:05' and `end` < '2025-02-19 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:01:17] Production.INFO: count ==1398 [2025-02-19 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:01:05 - End Time 2025-02-19 23:01:05 [2025-02-19 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513619', 'tblTempUsageDetail_20' ) start [2025-02-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513619', 'tblTempUsageDetail_20' ) end [2025-02-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513619', 'tblTempVendorCDR_20' ) start [2025-02-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513619', 'tblTempVendorCDR_20' ) end [2025-02-19 23:01:18] Production.INFO: ProcessCDR(1,14513619,1,1,2) [2025-02-19 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513619', 'tblTempUsageDetail_20' ) start [2025-02-19 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513619', 'tblTempUsageDetail_20' ) end [2025-02-19 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:01:21] Production.INFO: ==6614== Releasing lock... [2025-02-19 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:01:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-19 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:02:05 [end_date_ymd] => 2025-02-19 23:02:05 [RateCDR] => 1 ) [2025-02-19 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:02:05' and `end` < '2025-02-19 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:02:17] Production.INFO: count ==1385 [2025-02-19 23:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:02:05 - End Time 2025-02-19 23:02:05 [2025-02-19 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513624', 'tblTempUsageDetail_20' ) start [2025-02-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513624', 'tblTempUsageDetail_20' ) end [2025-02-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513624', 'tblTempVendorCDR_20' ) start [2025-02-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513624', 'tblTempVendorCDR_20' ) end [2025-02-19 23:02:17] Production.INFO: ProcessCDR(1,14513624,1,1,2) [2025-02-19 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513624', 'tblTempUsageDetail_20' ) start [2025-02-19 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513624', 'tblTempUsageDetail_20' ) end [2025-02-19 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:02:22] Production.INFO: ==6695== Releasing lock... [2025-02-19 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-19 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:03:05 [end_date_ymd] => 2025-02-19 23:03:05 [RateCDR] => 1 ) [2025-02-19 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:03:05' and `end` < '2025-02-19 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:03:17] Production.INFO: count ==1384 [2025-02-19 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:03:05 - End Time 2025-02-19 23:03:05 [2025-02-19 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513629', 'tblTempUsageDetail_20' ) start [2025-02-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513629', 'tblTempUsageDetail_20' ) end [2025-02-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513629', 'tblTempVendorCDR_20' ) start [2025-02-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513629', 'tblTempVendorCDR_20' ) end [2025-02-19 23:03:18] Production.INFO: ProcessCDR(1,14513629,1,1,2) [2025-02-19 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513629', 'tblTempUsageDetail_20' ) start [2025-02-19 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513629', 'tblTempUsageDetail_20' ) end [2025-02-19 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:03:21] Production.INFO: ==6781== Releasing lock... [2025-02-19 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:03:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-19 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:04:06 [end_date_ymd] => 2025-02-19 23:04:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 20:04:06' and `end` < '2025-02-19 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-02-19 23:04:17] Production.INFO: count ==1384 [2025-02-19 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:04:06 - End Time 2025-02-19 23:04:06 [2025-02-19 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513634', 'tblTempUsageDetail_20' ) start [2025-02-19 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513634', 'tblTempUsageDetail_20' ) end [2025-02-19 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513634', 'tblTempVendorCDR_20' ) start [2025-02-19 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513634', 'tblTempVendorCDR_20' ) end [2025-02-19 23:04:18] Production.INFO: ProcessCDR(1,14513634,1,1,2) [2025-02-19 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513634', 'tblTempUsageDetail_20' ) start [2025-02-19 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513634', 'tblTempUsageDetail_20' ) end [2025-02-19 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:04:21] Production.INFO: ==6869== Releasing lock... [2025-02-19 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:04:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-19 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:05:05 [end_date_ymd] => 2025-02-19 23:05:05 [RateCDR] => 1 ) [2025-02-19 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:05:05' and `end` < '2025-02-19 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:05:17] Production.INFO: count ==1385 [2025-02-19 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:05:05 - End Time 2025-02-19 23:05:05 [2025-02-19 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513639', 'tblTempUsageDetail_20' ) start [2025-02-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513639', 'tblTempUsageDetail_20' ) end [2025-02-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513639', 'tblTempVendorCDR_20' ) start [2025-02-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513639', 'tblTempVendorCDR_20' ) end [2025-02-19 23:05:18] Production.INFO: ProcessCDR(1,14513639,1,1,2) [2025-02-19 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513639', 'tblTempUsageDetail_20' ) start [2025-02-19 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513639', 'tblTempUsageDetail_20' ) end [2025-02-19 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:05:21] Production.INFO: ==7078== Releasing lock... [2025-02-19 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:05:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-19 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:06:06 [end_date_ymd] => 2025-02-19 23:06:06 [RateCDR] => 1 ) [2025-02-19 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:06:06' and `end` < '2025-02-19 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:06:17] Production.INFO: count ==1347 [2025-02-19 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:06:06 - End Time 2025-02-19 23:06:06 [2025-02-19 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513644', 'tblTempUsageDetail_20' ) start [2025-02-19 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513644', 'tblTempUsageDetail_20' ) end [2025-02-19 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513644', 'tblTempVendorCDR_20' ) start [2025-02-19 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513644', 'tblTempVendorCDR_20' ) end [2025-02-19 23:06:18] Production.INFO: ProcessCDR(1,14513644,1,1,2) [2025-02-19 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513644', 'tblTempUsageDetail_20' ) start [2025-02-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513644', 'tblTempUsageDetail_20' ) end [2025-02-19 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:06:21] Production.INFO: ==7168== Releasing lock... [2025-02-19 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:06:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-19 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:07:05 [end_date_ymd] => 2025-02-19 23:07:05 [RateCDR] => 1 ) [2025-02-19 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:07:05' and `end` < '2025-02-19 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:07:17] Production.INFO: count ==1284 [2025-02-19 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:07:05 - End Time 2025-02-19 23:07:05 [2025-02-19 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513649', 'tblTempUsageDetail_20' ) start [2025-02-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513649', 'tblTempUsageDetail_20' ) end [2025-02-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513649', 'tblTempVendorCDR_20' ) start [2025-02-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513649', 'tblTempVendorCDR_20' ) end [2025-02-19 23:07:18] Production.INFO: ProcessCDR(1,14513649,1,1,2) [2025-02-19 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513649', 'tblTempUsageDetail_20' ) start [2025-02-19 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513649', 'tblTempUsageDetail_20' ) end [2025-02-19 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:07:21] Production.INFO: ==7254== Releasing lock... [2025-02-19 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-19 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:08:06 [end_date_ymd] => 2025-02-19 23:08:06 [RateCDR] => 1 ) [2025-02-19 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:08:06' and `end` < '2025-02-19 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:08:18] Production.INFO: count ==1226 [2025-02-19 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:08:06 - End Time 2025-02-19 23:08:06 [2025-02-19 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513654', 'tblTempUsageDetail_20' ) start [2025-02-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513654', 'tblTempUsageDetail_20' ) end [2025-02-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513654', 'tblTempVendorCDR_20' ) start [2025-02-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513654', 'tblTempVendorCDR_20' ) end [2025-02-19 23:08:18] Production.INFO: ProcessCDR(1,14513654,1,1,2) [2025-02-19 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513654', 'tblTempUsageDetail_20' ) start [2025-02-19 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513654', 'tblTempUsageDetail_20' ) end [2025-02-19 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:08:21] Production.INFO: ==7415== Releasing lock... [2025-02-19 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-19 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:09:05 [end_date_ymd] => 2025-02-19 23:09:05 [RateCDR] => 1 ) [2025-02-19 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:09:05' and `end` < '2025-02-19 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:09:17] Production.INFO: count ==1166 [2025-02-19 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:09:05 - End Time 2025-02-19 23:09:05 [2025-02-19 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513659', 'tblTempUsageDetail_20' ) start [2025-02-19 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513659', 'tblTempUsageDetail_20' ) end [2025-02-19 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513659', 'tblTempVendorCDR_20' ) start [2025-02-19 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513659', 'tblTempVendorCDR_20' ) end [2025-02-19 23:09:17] Production.INFO: ProcessCDR(1,14513659,1,1,2) [2025-02-19 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513659', 'tblTempUsageDetail_20' ) start [2025-02-19 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513659', 'tblTempUsageDetail_20' ) end [2025-02-19 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:09:20] Production.INFO: ==7487== Releasing lock... [2025-02-19 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:09:20] Production.INFO: 37 MB #Memory Used# [2025-02-19 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:10:06 [end_date_ymd] => 2025-02-19 23:10:06 [RateCDR] => 1 ) [2025-02-19 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-02-19 20:10:06' and `end` < '2025-02-19 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-02-19 23:10:18] Production.INFO: count ==1103 [2025-02-19 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-19 20:10:06 - End Time 2025-02-19 23:10:06 [2025-02-19 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513665', 'tblTempUsageDetail_20' ) start [2025-02-19 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513665', 'tblTempUsageDetail_20' ) end [2025-02-19 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513665', 'tblTempVendorCDR_20' ) start [2025-02-19 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513665', 'tblTempVendorCDR_20' ) end [2025-02-19 23:10:19] Production.INFO: ProcessCDR(1,14513665,1,1,2) [2025-02-19 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513665', 'tblTempUsageDetail_20' ) start [2025-02-19 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513665', 'tblTempUsageDetail_20' ) end [2025-02-19 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:10:22] Production.INFO: ==7562== Releasing lock... [2025-02-19 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:10:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-19 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:11:05 [end_date_ymd] => 2025-02-19 23:11:05 [RateCDR] => 1 ) [2025-02-19 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:11:05' and `end` < '2025-02-19 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:11:17] Production.INFO: count ==1013 [2025-02-19 23:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:11:05 - End Time 2025-02-19 23:11:05 [2025-02-19 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513670', 'tblTempUsageDetail_20' ) start [2025-02-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513670', 'tblTempUsageDetail_20' ) end [2025-02-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513670', 'tblTempVendorCDR_20' ) start [2025-02-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513670', 'tblTempVendorCDR_20' ) end [2025-02-19 23:11:17] Production.INFO: ProcessCDR(1,14513670,1,1,2) [2025-02-19 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513670', 'tblTempUsageDetail_20' ) start [2025-02-19 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513670', 'tblTempUsageDetail_20' ) end [2025-02-19 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:11:20] Production.INFO: ==7635== Releasing lock... [2025-02-19 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:11:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-19 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:12:06 [end_date_ymd] => 2025-02-19 23:12:06 [RateCDR] => 1 ) [2025-02-19 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:12:06' and `end` < '2025-02-19 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:12:17] Production.INFO: count ==951 [2025-02-19 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:12:06 - End Time 2025-02-19 23:12:06 [2025-02-19 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513675', 'tblTempUsageDetail_20' ) start [2025-02-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513675', 'tblTempUsageDetail_20' ) end [2025-02-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513675', 'tblTempVendorCDR_20' ) start [2025-02-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513675', 'tblTempVendorCDR_20' ) end [2025-02-19 23:12:18] Production.INFO: ProcessCDR(1,14513675,1,1,2) [2025-02-19 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513675', 'tblTempUsageDetail_20' ) start [2025-02-19 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513675', 'tblTempUsageDetail_20' ) end [2025-02-19 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:12:21] Production.INFO: ==7785== Releasing lock... [2025-02-19 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-19 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:13:05 [end_date_ymd] => 2025-02-19 23:13:05 [RateCDR] => 1 ) [2025-02-19 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:13:05' and `end` < '2025-02-19 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:13:17] Production.INFO: count ==890 [2025-02-19 23:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:13:05 - End Time 2025-02-19 23:13:05 [2025-02-19 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513680', 'tblTempUsageDetail_20' ) start [2025-02-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513680', 'tblTempUsageDetail_20' ) end [2025-02-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513680', 'tblTempVendorCDR_20' ) start [2025-02-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513680', 'tblTempVendorCDR_20' ) end [2025-02-19 23:13:17] Production.INFO: ProcessCDR(1,14513680,1,1,2) [2025-02-19 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513680', 'tblTempUsageDetail_20' ) start [2025-02-19 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513680', 'tblTempUsageDetail_20' ) end [2025-02-19 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:13:21] Production.INFO: ==7856== Releasing lock... [2025-02-19 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-19 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:14:04 [end_date_ymd] => 2025-02-19 23:14:04 [RateCDR] => 1 ) [2025-02-19 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:14:04' and `end` < '2025-02-19 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:14:16] Production.INFO: count ==852 [2025-02-19 23:14:16] Production.ERROR: pbx CDR StartTime 2025-02-19 20:14:04 - End Time 2025-02-19 23:14:04 [2025-02-19 23:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513685', 'tblTempUsageDetail_20' ) start [2025-02-19 23:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513685', 'tblTempUsageDetail_20' ) end [2025-02-19 23:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513685', 'tblTempVendorCDR_20' ) start [2025-02-19 23:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513685', 'tblTempVendorCDR_20' ) end [2025-02-19 23:14:16] Production.INFO: ProcessCDR(1,14513685,1,1,2) [2025-02-19 23:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513685', 'tblTempUsageDetail_20' ) start [2025-02-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513685', 'tblTempUsageDetail_20' ) end [2025-02-19 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:14:21] Production.INFO: ==7925== Releasing lock... [2025-02-19 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:14:21] Production.INFO: 34 MB #Memory Used# [2025-02-19 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:15:05 [end_date_ymd] => 2025-02-19 23:15:05 [RateCDR] => 1 ) [2025-02-19 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:15:05' and `end` < '2025-02-19 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:15:17] Production.INFO: count ==850 [2025-02-19 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:15:05 - End Time 2025-02-19 23:15:05 [2025-02-19 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513690', 'tblTempUsageDetail_20' ) start [2025-02-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513690', 'tblTempUsageDetail_20' ) end [2025-02-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513690', 'tblTempVendorCDR_20' ) start [2025-02-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513690', 'tblTempVendorCDR_20' ) end [2025-02-19 23:15:17] Production.INFO: ProcessCDR(1,14513690,1,1,2) [2025-02-19 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513690', 'tblTempUsageDetail_20' ) start [2025-02-19 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513690', 'tblTempUsageDetail_20' ) end [2025-02-19 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:15:20] Production.INFO: ==8077== Releasing lock... [2025-02-19 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:15:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-19 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:16:06 [end_date_ymd] => 2025-02-19 23:16:06 [RateCDR] => 1 ) [2025-02-19 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:16:06' and `end` < '2025-02-19 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:16:17] Production.INFO: count ==836 [2025-02-19 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:16:06 - End Time 2025-02-19 23:16:06 [2025-02-19 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513695', 'tblTempUsageDetail_20' ) start [2025-02-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513695', 'tblTempUsageDetail_20' ) end [2025-02-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513695', 'tblTempVendorCDR_20' ) start [2025-02-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513695', 'tblTempVendorCDR_20' ) end [2025-02-19 23:16:18] Production.INFO: ProcessCDR(1,14513695,1,1,2) [2025-02-19 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513695', 'tblTempUsageDetail_20' ) start [2025-02-19 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513695', 'tblTempUsageDetail_20' ) end [2025-02-19 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:16:21] Production.INFO: ==8147== Releasing lock... [2025-02-19 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-19 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:17:05 [end_date_ymd] => 2025-02-19 23:17:05 [RateCDR] => 1 ) [2025-02-19 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:17:05' and `end` < '2025-02-19 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:17:17] Production.INFO: count ==834 [2025-02-19 23:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:17:05 - End Time 2025-02-19 23:17:05 [2025-02-19 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513700', 'tblTempUsageDetail_20' ) start [2025-02-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513700', 'tblTempUsageDetail_20' ) end [2025-02-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513700', 'tblTempVendorCDR_20' ) start [2025-02-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513700', 'tblTempVendorCDR_20' ) end [2025-02-19 23:17:17] Production.INFO: ProcessCDR(1,14513700,1,1,2) [2025-02-19 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513700', 'tblTempUsageDetail_20' ) start [2025-02-19 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513700', 'tblTempUsageDetail_20' ) end [2025-02-19 23:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:17:20] Production.INFO: ==8218== Releasing lock... [2025-02-19 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:17:20] Production.INFO: 34 MB #Memory Used# [2025-02-19 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:18:05 [end_date_ymd] => 2025-02-19 23:18:05 [RateCDR] => 1 ) [2025-02-19 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:18:05' and `end` < '2025-02-19 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:18:17] Production.INFO: count ==832 [2025-02-19 23:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:18:05 - End Time 2025-02-19 23:18:05 [2025-02-19 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513705', 'tblTempUsageDetail_20' ) start [2025-02-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513705', 'tblTempUsageDetail_20' ) end [2025-02-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513705', 'tblTempVendorCDR_20' ) start [2025-02-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513705', 'tblTempVendorCDR_20' ) end [2025-02-19 23:18:17] Production.INFO: ProcessCDR(1,14513705,1,1,2) [2025-02-19 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513705', 'tblTempUsageDetail_20' ) start [2025-02-19 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513705', 'tblTempUsageDetail_20' ) end [2025-02-19 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:18:21] Production.INFO: ==8290== Releasing lock... [2025-02-19 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:18:21] Production.INFO: 34 MB #Memory Used# [2025-02-19 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:19:05 [end_date_ymd] => 2025-02-19 23:19:05 [RateCDR] => 1 ) [2025-02-19 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:19:05' and `end` < '2025-02-19 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:19:17] Production.INFO: count ==834 [2025-02-19 23:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:19:05 - End Time 2025-02-19 23:19:05 [2025-02-19 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513710', 'tblTempUsageDetail_20' ) start [2025-02-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513710', 'tblTempUsageDetail_20' ) end [2025-02-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513710', 'tblTempVendorCDR_20' ) start [2025-02-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513710', 'tblTempVendorCDR_20' ) end [2025-02-19 23:19:17] Production.INFO: ProcessCDR(1,14513710,1,1,2) [2025-02-19 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513710', 'tblTempUsageDetail_20' ) start [2025-02-19 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513710', 'tblTempUsageDetail_20' ) end [2025-02-19 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:19:20] Production.INFO: ==8365== Releasing lock... [2025-02-19 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:19:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:20:06 [end_date_ymd] => 2025-02-19 23:20:06 [RateCDR] => 1 ) [2025-02-19 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:20:06' and `end` < '2025-02-19 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:20:18] Production.INFO: count ==835 [2025-02-19 23:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:20:06 - End Time 2025-02-19 23:20:06 [2025-02-19 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513716', 'tblTempUsageDetail_20' ) start [2025-02-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513716', 'tblTempUsageDetail_20' ) end [2025-02-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513716', 'tblTempVendorCDR_20' ) start [2025-02-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513716', 'tblTempVendorCDR_20' ) end [2025-02-19 23:20:18] Production.INFO: ProcessCDR(1,14513716,1,1,2) [2025-02-19 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513716', 'tblTempUsageDetail_20' ) start [2025-02-19 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513716', 'tblTempUsageDetail_20' ) end [2025-02-19 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:20:21] Production.INFO: ==8441== Releasing lock... [2025-02-19 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:20:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:21:05 [end_date_ymd] => 2025-02-19 23:21:05 [RateCDR] => 1 ) [2025-02-19 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:21:05' and `end` < '2025-02-19 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:21:16] Production.INFO: count ==823 [2025-02-19 23:21:16] Production.ERROR: pbx CDR StartTime 2025-02-19 20:21:05 - End Time 2025-02-19 23:21:05 [2025-02-19 23:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513721', 'tblTempUsageDetail_20' ) start [2025-02-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513721', 'tblTempUsageDetail_20' ) end [2025-02-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513721', 'tblTempVendorCDR_20' ) start [2025-02-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513721', 'tblTempVendorCDR_20' ) end [2025-02-19 23:21:17] Production.INFO: ProcessCDR(1,14513721,1,1,2) [2025-02-19 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513721', 'tblTempUsageDetail_20' ) start [2025-02-19 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513721', 'tblTempUsageDetail_20' ) end [2025-02-19 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:21:20] Production.INFO: ==8552== Releasing lock... [2025-02-19 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:21:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:22:06 [end_date_ymd] => 2025-02-19 23:22:06 [RateCDR] => 1 ) [2025-02-19 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:22:06' and `end` < '2025-02-19 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:22:18] Production.INFO: count ==809 [2025-02-19 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:22:06 - End Time 2025-02-19 23:22:06 [2025-02-19 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513726', 'tblTempUsageDetail_20' ) start [2025-02-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513726', 'tblTempUsageDetail_20' ) end [2025-02-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513726', 'tblTempVendorCDR_20' ) start [2025-02-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513726', 'tblTempVendorCDR_20' ) end [2025-02-19 23:22:18] Production.INFO: ProcessCDR(1,14513726,1,1,2) [2025-02-19 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513726', 'tblTempUsageDetail_20' ) start [2025-02-19 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513726', 'tblTempUsageDetail_20' ) end [2025-02-19 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:22:21] Production.INFO: ==8623== Releasing lock... [2025-02-19 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:23:05 [end_date_ymd] => 2025-02-19 23:23:05 [RateCDR] => 1 ) [2025-02-19 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:23:05' and `end` < '2025-02-19 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:23:17] Production.INFO: count ==808 [2025-02-19 23:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:23:05 - End Time 2025-02-19 23:23:05 [2025-02-19 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513731', 'tblTempUsageDetail_20' ) start [2025-02-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513731', 'tblTempUsageDetail_20' ) end [2025-02-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513731', 'tblTempVendorCDR_20' ) start [2025-02-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513731', 'tblTempVendorCDR_20' ) end [2025-02-19 23:23:17] Production.INFO: ProcessCDR(1,14513731,1,1,2) [2025-02-19 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513731', 'tblTempUsageDetail_20' ) start [2025-02-19 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513731', 'tblTempUsageDetail_20' ) end [2025-02-19 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:23:20] Production.INFO: ==8692== Releasing lock... [2025-02-19 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:23:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:24:06 [end_date_ymd] => 2025-02-19 23:24:06 [RateCDR] => 1 ) [2025-02-19 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:24:06' and `end` < '2025-02-19 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:24:17] Production.INFO: count ==795 [2025-02-19 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:24:06 - End Time 2025-02-19 23:24:06 [2025-02-19 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513736', 'tblTempUsageDetail_20' ) start [2025-02-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513736', 'tblTempUsageDetail_20' ) end [2025-02-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513736', 'tblTempVendorCDR_20' ) start [2025-02-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513736', 'tblTempVendorCDR_20' ) end [2025-02-19 23:24:18] Production.INFO: ProcessCDR(1,14513736,1,1,2) [2025-02-19 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513736', 'tblTempUsageDetail_20' ) start [2025-02-19 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513736', 'tblTempUsageDetail_20' ) end [2025-02-19 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:24:21] Production.INFO: ==8769== Releasing lock... [2025-02-19 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:25:05 [end_date_ymd] => 2025-02-19 23:25:05 [RateCDR] => 1 ) [2025-02-19 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:25:05' and `end` < '2025-02-19 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:25:17] Production.INFO: count ==786 [2025-02-19 23:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:25:05 - End Time 2025-02-19 23:25:05 [2025-02-19 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513741', 'tblTempUsageDetail_20' ) start [2025-02-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513741', 'tblTempUsageDetail_20' ) end [2025-02-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513741', 'tblTempVendorCDR_20' ) start [2025-02-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513741', 'tblTempVendorCDR_20' ) end [2025-02-19 23:25:17] Production.INFO: ProcessCDR(1,14513741,1,1,2) [2025-02-19 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513741', 'tblTempUsageDetail_20' ) start [2025-02-19 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513741', 'tblTempUsageDetail_20' ) end [2025-02-19 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:25:20] Production.INFO: ==8837== Releasing lock... [2025-02-19 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:25:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:26:05 [end_date_ymd] => 2025-02-19 23:26:05 [RateCDR] => 1 ) [2025-02-19 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:26:05' and `end` < '2025-02-19 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:26:17] Production.INFO: count ==785 [2025-02-19 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:26:05 - End Time 2025-02-19 23:26:05 [2025-02-19 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513746', 'tblTempUsageDetail_20' ) start [2025-02-19 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513746', 'tblTempUsageDetail_20' ) end [2025-02-19 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513746', 'tblTempVendorCDR_20' ) start [2025-02-19 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513746', 'tblTempVendorCDR_20' ) end [2025-02-19 23:26:17] Production.INFO: ProcessCDR(1,14513746,1,1,2) [2025-02-19 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513746', 'tblTempUsageDetail_20' ) start [2025-02-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513746', 'tblTempUsageDetail_20' ) end [2025-02-19 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:26:21] Production.INFO: ==8910== Releasing lock... [2025-02-19 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:27:05 [end_date_ymd] => 2025-02-19 23:27:05 [RateCDR] => 1 ) [2025-02-19 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:27:05' and `end` < '2025-02-19 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:27:17] Production.INFO: count ==784 [2025-02-19 23:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:27:05 - End Time 2025-02-19 23:27:05 [2025-02-19 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513751', 'tblTempUsageDetail_20' ) start [2025-02-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513751', 'tblTempUsageDetail_20' ) end [2025-02-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513751', 'tblTempVendorCDR_20' ) start [2025-02-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513751', 'tblTempVendorCDR_20' ) end [2025-02-19 23:27:17] Production.INFO: ProcessCDR(1,14513751,1,1,2) [2025-02-19 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513751', 'tblTempUsageDetail_20' ) start [2025-02-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513751', 'tblTempUsageDetail_20' ) end [2025-02-19 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:27:20] Production.INFO: ==8984== Releasing lock... [2025-02-19 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:27:20] Production.INFO: 34 MB #Memory Used# [2025-02-19 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:28:06 [end_date_ymd] => 2025-02-19 23:28:06 [RateCDR] => 1 ) [2025-02-19 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:28:06' and `end` < '2025-02-19 23:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:28:18] Production.INFO: count ==782 [2025-02-19 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:28:06 - End Time 2025-02-19 23:28:06 [2025-02-19 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513756', 'tblTempUsageDetail_20' ) start [2025-02-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513756', 'tblTempUsageDetail_20' ) end [2025-02-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513756', 'tblTempVendorCDR_20' ) start [2025-02-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513756', 'tblTempVendorCDR_20' ) end [2025-02-19 23:28:18] Production.INFO: ProcessCDR(1,14513756,1,1,2) [2025-02-19 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513756', 'tblTempUsageDetail_20' ) start [2025-02-19 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513756', 'tblTempUsageDetail_20' ) end [2025-02-19 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:28:21] Production.INFO: ==9055== Releasing lock... [2025-02-19 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:29:05 [end_date_ymd] => 2025-02-19 23:29:05 [RateCDR] => 1 ) [2025-02-19 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:29:05' and `end` < '2025-02-19 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:29:17] Production.INFO: count ==775 [2025-02-19 23:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:29:05 - End Time 2025-02-19 23:29:05 [2025-02-19 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513761', 'tblTempUsageDetail_20' ) start [2025-02-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513761', 'tblTempUsageDetail_20' ) end [2025-02-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513761', 'tblTempVendorCDR_20' ) start [2025-02-19 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513761', 'tblTempVendorCDR_20' ) end [2025-02-19 23:29:18] Production.INFO: ProcessCDR(1,14513761,1,1,2) [2025-02-19 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513761', 'tblTempUsageDetail_20' ) start [2025-02-19 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513761', 'tblTempUsageDetail_20' ) end [2025-02-19 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:29:21] Production.INFO: ==9128== Releasing lock... [2025-02-19 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:30:06 [end_date_ymd] => 2025-02-19 23:30:06 [RateCDR] => 1 ) [2025-02-19 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:30:06' and `end` < '2025-02-19 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:30:18] Production.INFO: count ==773 [2025-02-19 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:30:06 - End Time 2025-02-19 23:30:06 [2025-02-19 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513766', 'tblTempUsageDetail_20' ) start [2025-02-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513766', 'tblTempUsageDetail_20' ) end [2025-02-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513766', 'tblTempVendorCDR_20' ) start [2025-02-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513766', 'tblTempVendorCDR_20' ) end [2025-02-19 23:30:18] Production.INFO: ProcessCDR(1,14513766,1,1,2) [2025-02-19 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513766', 'tblTempUsageDetail_20' ) start [2025-02-19 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513766', 'tblTempUsageDetail_20' ) end [2025-02-19 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:30:21] Production.INFO: ==9202== Releasing lock... [2025-02-19 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:30:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:31:05 [end_date_ymd] => 2025-02-19 23:31:05 [RateCDR] => 1 ) [2025-02-19 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:31:05' and `end` < '2025-02-19 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:31:17] Production.INFO: count ==769 [2025-02-19 23:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:31:05 - End Time 2025-02-19 23:31:05 [2025-02-19 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513772', 'tblTempUsageDetail_20' ) start [2025-02-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513772', 'tblTempUsageDetail_20' ) end [2025-02-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513772', 'tblTempVendorCDR_20' ) start [2025-02-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513772', 'tblTempVendorCDR_20' ) end [2025-02-19 23:31:17] Production.INFO: ProcessCDR(1,14513772,1,1,2) [2025-02-19 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513772', 'tblTempUsageDetail_20' ) start [2025-02-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513772', 'tblTempUsageDetail_20' ) end [2025-02-19 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:31:20] Production.INFO: ==9274== Releasing lock... [2025-02-19 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:31:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:32:05 [end_date_ymd] => 2025-02-19 23:32:05 [RateCDR] => 1 ) [2025-02-19 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:32:05' and `end` < '2025-02-19 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:32:17] Production.INFO: count ==771 [2025-02-19 23:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:32:05 - End Time 2025-02-19 23:32:05 [2025-02-19 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513777', 'tblTempUsageDetail_20' ) start [2025-02-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513777', 'tblTempUsageDetail_20' ) end [2025-02-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513777', 'tblTempVendorCDR_20' ) start [2025-02-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513777', 'tblTempVendorCDR_20' ) end [2025-02-19 23:32:17] Production.INFO: ProcessCDR(1,14513777,1,1,2) [2025-02-19 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513777', 'tblTempUsageDetail_20' ) start [2025-02-19 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513777', 'tblTempUsageDetail_20' ) end [2025-02-19 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:32:21] Production.INFO: ==9346== Releasing lock... [2025-02-19 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:33:05 [end_date_ymd] => 2025-02-19 23:33:05 [RateCDR] => 1 ) [2025-02-19 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:33:05' and `end` < '2025-02-19 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:33:17] Production.INFO: count ==767 [2025-02-19 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:33:05 - End Time 2025-02-19 23:33:05 [2025-02-19 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513782', 'tblTempUsageDetail_20' ) start [2025-02-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513782', 'tblTempUsageDetail_20' ) end [2025-02-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513782', 'tblTempVendorCDR_20' ) start [2025-02-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513782', 'tblTempVendorCDR_20' ) end [2025-02-19 23:33:17] Production.INFO: ProcessCDR(1,14513782,1,1,2) [2025-02-19 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513782', 'tblTempUsageDetail_20' ) start [2025-02-19 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513782', 'tblTempUsageDetail_20' ) end [2025-02-19 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:33:20] Production.INFO: ==9420== Releasing lock... [2025-02-19 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:33:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-19 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:34:06 [end_date_ymd] => 2025-02-19 23:34:06 [RateCDR] => 1 ) [2025-02-19 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:34:06' and `end` < '2025-02-19 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:34:17] Production.INFO: count ==775 [2025-02-19 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:34:06 - End Time 2025-02-19 23:34:06 [2025-02-19 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513787', 'tblTempUsageDetail_20' ) start [2025-02-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513787', 'tblTempUsageDetail_20' ) end [2025-02-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513787', 'tblTempVendorCDR_20' ) start [2025-02-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513787', 'tblTempVendorCDR_20' ) end [2025-02-19 23:34:17] Production.INFO: ProcessCDR(1,14513787,1,1,2) [2025-02-19 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513787', 'tblTempUsageDetail_20' ) start [2025-02-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513787', 'tblTempUsageDetail_20' ) end [2025-02-19 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:34:21] Production.INFO: ==9491== Releasing lock... [2025-02-19 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:35:05 [end_date_ymd] => 2025-02-19 23:35:05 [RateCDR] => 1 ) [2025-02-19 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:35:05' and `end` < '2025-02-19 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:35:17] Production.INFO: count ==769 [2025-02-19 23:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:35:05 - End Time 2025-02-19 23:35:05 [2025-02-19 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513792', 'tblTempUsageDetail_20' ) start [2025-02-19 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513792', 'tblTempUsageDetail_20' ) end [2025-02-19 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513792', 'tblTempVendorCDR_20' ) start [2025-02-19 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513792', 'tblTempVendorCDR_20' ) end [2025-02-19 23:35:17] Production.INFO: ProcessCDR(1,14513792,1,1,2) [2025-02-19 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513792', 'tblTempUsageDetail_20' ) start [2025-02-19 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513792', 'tblTempUsageDetail_20' ) end [2025-02-19 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:35:20] Production.INFO: ==9560== Releasing lock... [2025-02-19 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:35:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:36:05 [end_date_ymd] => 2025-02-19 23:36:05 [RateCDR] => 1 ) [2025-02-19 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:36:05' and `end` < '2025-02-19 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:36:17] Production.INFO: count ==766 [2025-02-19 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:36:05 - End Time 2025-02-19 23:36:05 [2025-02-19 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513797', 'tblTempUsageDetail_20' ) start [2025-02-19 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513797', 'tblTempUsageDetail_20' ) end [2025-02-19 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513797', 'tblTempVendorCDR_20' ) start [2025-02-19 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513797', 'tblTempVendorCDR_20' ) end [2025-02-19 23:36:17] Production.INFO: ProcessCDR(1,14513797,1,1,2) [2025-02-19 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513797', 'tblTempUsageDetail_20' ) start [2025-02-19 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513797', 'tblTempUsageDetail_20' ) end [2025-02-19 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:36:21] Production.INFO: ==9671== Releasing lock... [2025-02-19 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:37:04 [end_date_ymd] => 2025-02-19 23:37:04 [RateCDR] => 1 ) [2025-02-19 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:37:04' and `end` < '2025-02-19 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:37:16] Production.INFO: count ==766 [2025-02-19 23:37:16] Production.ERROR: pbx CDR StartTime 2025-02-19 20:37:04 - End Time 2025-02-19 23:37:04 [2025-02-19 23:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513802', 'tblTempUsageDetail_20' ) start [2025-02-19 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513802', 'tblTempUsageDetail_20' ) end [2025-02-19 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513802', 'tblTempVendorCDR_20' ) start [2025-02-19 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513802', 'tblTempVendorCDR_20' ) end [2025-02-19 23:37:16] Production.INFO: ProcessCDR(1,14513802,1,1,2) [2025-02-19 23:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513802', 'tblTempUsageDetail_20' ) start [2025-02-19 23:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513802', 'tblTempUsageDetail_20' ) end [2025-02-19 23:37:19] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:37:19] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:37:19] Production.INFO: ==9740== Releasing lock... [2025-02-19 23:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:37:19] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:38:05 [end_date_ymd] => 2025-02-19 23:38:05 [RateCDR] => 1 ) [2025-02-19 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:38:05' and `end` < '2025-02-19 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:38:17] Production.INFO: count ==765 [2025-02-19 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:38:05 - End Time 2025-02-19 23:38:05 [2025-02-19 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513807', 'tblTempUsageDetail_20' ) start [2025-02-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513807', 'tblTempUsageDetail_20' ) end [2025-02-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513807', 'tblTempVendorCDR_20' ) start [2025-02-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513807', 'tblTempVendorCDR_20' ) end [2025-02-19 23:38:17] Production.INFO: ProcessCDR(1,14513807,1,1,2) [2025-02-19 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513807', 'tblTempUsageDetail_20' ) start [2025-02-19 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513807', 'tblTempUsageDetail_20' ) end [2025-02-19 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:38:20] Production.INFO: ==9810== Releasing lock... [2025-02-19 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:38:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:39:04 [end_date_ymd] => 2025-02-19 23:39:04 [RateCDR] => 1 ) [2025-02-19 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:39:04' and `end` < '2025-02-19 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:39:16] Production.INFO: count ==765 [2025-02-19 23:39:16] Production.ERROR: pbx CDR StartTime 2025-02-19 20:39:04 - End Time 2025-02-19 23:39:04 [2025-02-19 23:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513812', 'tblTempUsageDetail_20' ) start [2025-02-19 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513812', 'tblTempUsageDetail_20' ) end [2025-02-19 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513812', 'tblTempVendorCDR_20' ) start [2025-02-19 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513812', 'tblTempVendorCDR_20' ) end [2025-02-19 23:39:16] Production.INFO: ProcessCDR(1,14513812,1,1,2) [2025-02-19 23:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513812', 'tblTempUsageDetail_20' ) start [2025-02-19 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513812', 'tblTempUsageDetail_20' ) end [2025-02-19 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:39:20] Production.INFO: ==9879== Releasing lock... [2025-02-19 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:39:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-19 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:40:06 [end_date_ymd] => 2025-02-19 23:40:06 [RateCDR] => 1 ) [2025-02-19 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:40:06' and `end` < '2025-02-19 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:40:18] Production.INFO: count ==755 [2025-02-19 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:40:06 - End Time 2025-02-19 23:40:06 [2025-02-19 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513818', 'tblTempUsageDetail_20' ) start [2025-02-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513818', 'tblTempUsageDetail_20' ) end [2025-02-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513818', 'tblTempVendorCDR_20' ) start [2025-02-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513818', 'tblTempVendorCDR_20' ) end [2025-02-19 23:40:18] Production.INFO: ProcessCDR(1,14513818,1,1,2) [2025-02-19 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513818', 'tblTempUsageDetail_20' ) start [2025-02-19 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513818', 'tblTempUsageDetail_20' ) end [2025-02-19 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:40:21] Production.INFO: ==9953== Releasing lock... [2025-02-19 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:41:05 [end_date_ymd] => 2025-02-19 23:41:05 [RateCDR] => 1 ) [2025-02-19 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:41:05' and `end` < '2025-02-19 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:41:17] Production.INFO: count ==735 [2025-02-19 23:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:41:05 - End Time 2025-02-19 23:41:05 [2025-02-19 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513823', 'tblTempUsageDetail_20' ) start [2025-02-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513823', 'tblTempUsageDetail_20' ) end [2025-02-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513823', 'tblTempVendorCDR_20' ) start [2025-02-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513823', 'tblTempVendorCDR_20' ) end [2025-02-19 23:41:17] Production.INFO: ProcessCDR(1,14513823,1,1,2) [2025-02-19 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513823', 'tblTempUsageDetail_20' ) start [2025-02-19 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513823', 'tblTempUsageDetail_20' ) end [2025-02-19 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:41:20] Production.INFO: ==10027== Releasing lock... [2025-02-19 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:41:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:42:05 [end_date_ymd] => 2025-02-19 23:42:05 [RateCDR] => 1 ) [2025-02-19 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:42:05' and `end` < '2025-02-19 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:42:17] Production.INFO: count ==740 [2025-02-19 23:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:42:05 - End Time 2025-02-19 23:42:05 [2025-02-19 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513828', 'tblTempUsageDetail_20' ) start [2025-02-19 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513828', 'tblTempUsageDetail_20' ) end [2025-02-19 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513828', 'tblTempVendorCDR_20' ) start [2025-02-19 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513828', 'tblTempVendorCDR_20' ) end [2025-02-19 23:42:17] Production.INFO: ProcessCDR(1,14513828,1,1,2) [2025-02-19 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513828', 'tblTempUsageDetail_20' ) start [2025-02-19 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513828', 'tblTempUsageDetail_20' ) end [2025-02-19 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:42:20] Production.INFO: ==10097== Releasing lock... [2025-02-19 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:42:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:43:05 [end_date_ymd] => 2025-02-19 23:43:05 [RateCDR] => 1 ) [2025-02-19 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:43:05' and `end` < '2025-02-19 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:43:17] Production.INFO: count ==740 [2025-02-19 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:43:05 - End Time 2025-02-19 23:43:05 [2025-02-19 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513833', 'tblTempUsageDetail_20' ) start [2025-02-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513833', 'tblTempUsageDetail_20' ) end [2025-02-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513833', 'tblTempVendorCDR_20' ) start [2025-02-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513833', 'tblTempVendorCDR_20' ) end [2025-02-19 23:43:17] Production.INFO: ProcessCDR(1,14513833,1,1,2) [2025-02-19 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513833', 'tblTempUsageDetail_20' ) start [2025-02-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513833', 'tblTempUsageDetail_20' ) end [2025-02-19 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:43:21] Production.INFO: ==10174== Releasing lock... [2025-02-19 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:44:05 [end_date_ymd] => 2025-02-19 23:44:05 [RateCDR] => 1 ) [2025-02-19 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:44:05' and `end` < '2025-02-19 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:44:16] Production.INFO: count ==742 [2025-02-19 23:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:44:05 - End Time 2025-02-19 23:44:05 [2025-02-19 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513838', 'tblTempUsageDetail_20' ) start [2025-02-19 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513838', 'tblTempUsageDetail_20' ) end [2025-02-19 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513838', 'tblTempVendorCDR_20' ) start [2025-02-19 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513838', 'tblTempVendorCDR_20' ) end [2025-02-19 23:44:17] Production.INFO: ProcessCDR(1,14513838,1,1,2) [2025-02-19 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513838', 'tblTempUsageDetail_20' ) start [2025-02-19 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513838', 'tblTempUsageDetail_20' ) end [2025-02-19 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:44:21] Production.INFO: ==10243== Releasing lock... [2025-02-19 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:44:21] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:45:05 [end_date_ymd] => 2025-02-19 23:45:05 [RateCDR] => 1 ) [2025-02-19 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:45:05' and `end` < '2025-02-19 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:45:17] Production.INFO: count ==740 [2025-02-19 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:45:05 - End Time 2025-02-19 23:45:05 [2025-02-19 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513843', 'tblTempUsageDetail_20' ) start [2025-02-19 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513843', 'tblTempUsageDetail_20' ) end [2025-02-19 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513843', 'tblTempVendorCDR_20' ) start [2025-02-19 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513843', 'tblTempVendorCDR_20' ) end [2025-02-19 23:45:17] Production.INFO: ProcessCDR(1,14513843,1,1,2) [2025-02-19 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513843', 'tblTempUsageDetail_20' ) start [2025-02-19 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513843', 'tblTempUsageDetail_20' ) end [2025-02-19 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:45:21] Production.INFO: ==10314== Releasing lock... [2025-02-19 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:45:21] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:46:05 [end_date_ymd] => 2025-02-19 23:46:05 [RateCDR] => 1 ) [2025-02-19 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:46:05' and `end` < '2025-02-19 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:46:17] Production.INFO: count ==742 [2025-02-19 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:46:05 - End Time 2025-02-19 23:46:05 [2025-02-19 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513848', 'tblTempUsageDetail_20' ) start [2025-02-19 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513848', 'tblTempUsageDetail_20' ) end [2025-02-19 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513848', 'tblTempVendorCDR_20' ) start [2025-02-19 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513848', 'tblTempVendorCDR_20' ) end [2025-02-19 23:46:17] Production.INFO: ProcessCDR(1,14513848,1,1,2) [2025-02-19 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513848', 'tblTempUsageDetail_20' ) start [2025-02-19 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513848', 'tblTempUsageDetail_20' ) end [2025-02-19 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:46:20] Production.INFO: ==10386== Releasing lock... [2025-02-19 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:46:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:47:05 [end_date_ymd] => 2025-02-19 23:47:05 [RateCDR] => 1 ) [2025-02-19 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:47:05' and `end` < '2025-02-19 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:47:17] Production.INFO: count ==734 [2025-02-19 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:47:05 - End Time 2025-02-19 23:47:05 [2025-02-19 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513853', 'tblTempUsageDetail_20' ) start [2025-02-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513853', 'tblTempUsageDetail_20' ) end [2025-02-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513853', 'tblTempVendorCDR_20' ) start [2025-02-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513853', 'tblTempVendorCDR_20' ) end [2025-02-19 23:47:17] Production.INFO: ProcessCDR(1,14513853,1,1,2) [2025-02-19 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513853', 'tblTempUsageDetail_20' ) start [2025-02-19 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513853', 'tblTempUsageDetail_20' ) end [2025-02-19 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:47:22] Production.INFO: ==10458== Releasing lock... [2025-02-19 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:48:05 [end_date_ymd] => 2025-02-19 23:48:05 [RateCDR] => 1 ) [2025-02-19 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:48:05' and `end` < '2025-02-19 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:48:17] Production.INFO: count ==730 [2025-02-19 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:48:05 - End Time 2025-02-19 23:48:05 [2025-02-19 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513858', 'tblTempUsageDetail_20' ) start [2025-02-19 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513858', 'tblTempUsageDetail_20' ) end [2025-02-19 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513858', 'tblTempVendorCDR_20' ) start [2025-02-19 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513858', 'tblTempVendorCDR_20' ) end [2025-02-19 23:48:17] Production.INFO: ProcessCDR(1,14513858,1,1,2) [2025-02-19 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513858', 'tblTempUsageDetail_20' ) start [2025-02-19 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513858', 'tblTempUsageDetail_20' ) end [2025-02-19 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:48:22] Production.INFO: ==10529== Releasing lock... [2025-02-19 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:49:06 [end_date_ymd] => 2025-02-19 23:49:06 [RateCDR] => 1 ) [2025-02-19 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:49:06' and `end` < '2025-02-19 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:49:18] Production.INFO: count ==726 [2025-02-19 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:49:06 - End Time 2025-02-19 23:49:06 [2025-02-19 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513863', 'tblTempUsageDetail_20' ) start [2025-02-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513863', 'tblTempUsageDetail_20' ) end [2025-02-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513863', 'tblTempVendorCDR_20' ) start [2025-02-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513863', 'tblTempVendorCDR_20' ) end [2025-02-19 23:49:18] Production.INFO: ProcessCDR(1,14513863,1,1,2) [2025-02-19 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513863', 'tblTempUsageDetail_20' ) start [2025-02-19 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513863', 'tblTempUsageDetail_20' ) end [2025-02-19 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:49:22] Production.INFO: ==10601== Releasing lock... [2025-02-19 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:49:22] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:50:05 [end_date_ymd] => 2025-02-19 23:50:05 [RateCDR] => 1 ) [2025-02-19 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:50:05' and `end` < '2025-02-19 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:50:17] Production.INFO: count ==725 [2025-02-19 23:50:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:50:05 - End Time 2025-02-19 23:50:05 [2025-02-19 23:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513868', 'tblTempUsageDetail_20' ) start [2025-02-19 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513868', 'tblTempUsageDetail_20' ) end [2025-02-19 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513868', 'tblTempVendorCDR_20' ) start [2025-02-19 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513868', 'tblTempVendorCDR_20' ) end [2025-02-19 23:50:18] Production.INFO: ProcessCDR(1,14513868,1,1,2) [2025-02-19 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513868', 'tblTempUsageDetail_20' ) start [2025-02-19 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513868', 'tblTempUsageDetail_20' ) end [2025-02-19 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:50:21] Production.INFO: ==10673== Releasing lock... [2025-02-19 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:50:21] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:51:06 [end_date_ymd] => 2025-02-19 23:51:06 [RateCDR] => 1 ) [2025-02-19 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:51:06' and `end` < '2025-02-19 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:51:18] Production.INFO: count ==704 [2025-02-19 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-19 20:51:06 - End Time 2025-02-19 23:51:06 [2025-02-19 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513874', 'tblTempUsageDetail_20' ) start [2025-02-19 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513874', 'tblTempUsageDetail_20' ) end [2025-02-19 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513874', 'tblTempVendorCDR_20' ) start [2025-02-19 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513874', 'tblTempVendorCDR_20' ) end [2025-02-19 23:51:18] Production.INFO: ProcessCDR(1,14513874,1,1,2) [2025-02-19 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513874', 'tblTempUsageDetail_20' ) start [2025-02-19 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513874', 'tblTempUsageDetail_20' ) end [2025-02-19 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:51:21] Production.INFO: ==10748== Releasing lock... [2025-02-19 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:51:21] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:52:05 [end_date_ymd] => 2025-02-19 23:52:05 [RateCDR] => 1 ) [2025-02-19 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:52:05' and `end` < '2025-02-19 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:52:17] Production.INFO: count ==705 [2025-02-19 23:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:52:05 - End Time 2025-02-19 23:52:05 [2025-02-19 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513879', 'tblTempUsageDetail_20' ) start [2025-02-19 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513879', 'tblTempUsageDetail_20' ) end [2025-02-19 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513879', 'tblTempVendorCDR_20' ) start [2025-02-19 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513879', 'tblTempVendorCDR_20' ) end [2025-02-19 23:52:17] Production.INFO: ProcessCDR(1,14513879,1,1,2) [2025-02-19 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513879', 'tblTempUsageDetail_20' ) start [2025-02-19 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513879', 'tblTempUsageDetail_20' ) end [2025-02-19 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:52:22] Production.INFO: ==10858== Releasing lock... [2025-02-19 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:52:22] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:53:05 [end_date_ymd] => 2025-02-19 23:53:05 [RateCDR] => 1 ) [2025-02-19 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:53:05' and `end` < '2025-02-19 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:53:17] Production.INFO: count ==706 [2025-02-19 23:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:53:05 - End Time 2025-02-19 23:53:05 [2025-02-19 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513884', 'tblTempUsageDetail_20' ) start [2025-02-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513884', 'tblTempUsageDetail_20' ) end [2025-02-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513884', 'tblTempVendorCDR_20' ) start [2025-02-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513884', 'tblTempVendorCDR_20' ) end [2025-02-19 23:53:17] Production.INFO: ProcessCDR(1,14513884,1,1,2) [2025-02-19 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513884', 'tblTempUsageDetail_20' ) start [2025-02-19 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513884', 'tblTempUsageDetail_20' ) end [2025-02-19 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:53:22] Production.INFO: ==10932== Releasing lock... [2025-02-19 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:54:05 [end_date_ymd] => 2025-02-19 23:54:05 [RateCDR] => 1 ) [2025-02-19 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:54:05' and `end` < '2025-02-19 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:54:17] Production.INFO: count ==705 [2025-02-19 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:54:05 - End Time 2025-02-19 23:54:05 [2025-02-19 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513889', 'tblTempUsageDetail_20' ) start [2025-02-19 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513889', 'tblTempUsageDetail_20' ) end [2025-02-19 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513889', 'tblTempVendorCDR_20' ) start [2025-02-19 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513889', 'tblTempVendorCDR_20' ) end [2025-02-19 23:54:17] Production.INFO: ProcessCDR(1,14513889,1,1,2) [2025-02-19 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513889', 'tblTempUsageDetail_20' ) start [2025-02-19 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513889', 'tblTempUsageDetail_20' ) end [2025-02-19 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:54:20] Production.INFO: ==11002== Releasing lock... [2025-02-19 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:54:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-19 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:55:05 [end_date_ymd] => 2025-02-19 23:55:05 [RateCDR] => 1 ) [2025-02-19 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:55:05' and `end` < '2025-02-19 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:55:17] Production.INFO: count ==704 [2025-02-19 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:55:05 - End Time 2025-02-19 23:55:05 [2025-02-19 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513894', 'tblTempUsageDetail_20' ) start [2025-02-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513894', 'tblTempUsageDetail_20' ) end [2025-02-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513894', 'tblTempVendorCDR_20' ) start [2025-02-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513894', 'tblTempVendorCDR_20' ) end [2025-02-19 23:55:17] Production.INFO: ProcessCDR(1,14513894,1,1,2) [2025-02-19 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513894', 'tblTempUsageDetail_20' ) start [2025-02-19 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513894', 'tblTempUsageDetail_20' ) end [2025-02-19 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:55:21] Production.INFO: ==11073== Releasing lock... [2025-02-19 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:55:21] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:56:05 [end_date_ymd] => 2025-02-19 23:56:05 [RateCDR] => 1 ) [2025-02-19 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:56:05' and `end` < '2025-02-19 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:56:17] Production.INFO: count ==704 [2025-02-19 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:56:05 - End Time 2025-02-19 23:56:05 [2025-02-19 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513899', 'tblTempUsageDetail_20' ) start [2025-02-19 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513899', 'tblTempUsageDetail_20' ) end [2025-02-19 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513899', 'tblTempVendorCDR_20' ) start [2025-02-19 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513899', 'tblTempVendorCDR_20' ) end [2025-02-19 23:56:17] Production.INFO: ProcessCDR(1,14513899,1,1,2) [2025-02-19 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513899', 'tblTempUsageDetail_20' ) start [2025-02-19 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513899', 'tblTempUsageDetail_20' ) end [2025-02-19 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:56:20] Production.INFO: ==11150== Releasing lock... [2025-02-19 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:56:20] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:57:05 [end_date_ymd] => 2025-02-19 23:57:05 [RateCDR] => 1 ) [2025-02-19 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:57:05' and `end` < '2025-02-19 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:57:17] Production.INFO: count ==704 [2025-02-19 23:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:57:05 - End Time 2025-02-19 23:57:05 [2025-02-19 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513904', 'tblTempUsageDetail_20' ) start [2025-02-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513904', 'tblTempUsageDetail_20' ) end [2025-02-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513904', 'tblTempVendorCDR_20' ) start [2025-02-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513904', 'tblTempVendorCDR_20' ) end [2025-02-19 23:57:17] Production.INFO: ProcessCDR(1,14513904,1,1,2) [2025-02-19 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513904', 'tblTempUsageDetail_20' ) start [2025-02-19 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513904', 'tblTempUsageDetail_20' ) end [2025-02-19 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:57:20] Production.INFO: ==11219== Releasing lock... [2025-02-19 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:57:20] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:58:05 [end_date_ymd] => 2025-02-19 23:58:05 [RateCDR] => 1 ) [2025-02-19 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:58:05' and `end` < '2025-02-19 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:58:16] Production.INFO: count ==703 [2025-02-19 23:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:58:05 - End Time 2025-02-19 23:58:05 [2025-02-19 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513909', 'tblTempUsageDetail_20' ) start [2025-02-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513909', 'tblTempUsageDetail_20' ) end [2025-02-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513909', 'tblTempVendorCDR_20' ) start [2025-02-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513909', 'tblTempVendorCDR_20' ) end [2025-02-19 23:58:17] Production.INFO: ProcessCDR(1,14513909,1,1,2) [2025-02-19 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513909', 'tblTempUsageDetail_20' ) start [2025-02-19 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513909', 'tblTempUsageDetail_20' ) end [2025-02-19 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:58:20] Production.INFO: ==11293== Releasing lock... [2025-02-19 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:58:20] Production.INFO: 33 MB #Memory Used# [2025-02-19 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 20:59:05 [end_date_ymd] => 2025-02-19 23:59:05 [RateCDR] => 1 ) [2025-02-19 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 20:59:05' and `end` < '2025-02-19 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-19 23:59:17] Production.INFO: count ==700 [2025-02-19 23:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 20:59:05 - End Time 2025-02-19 23:59:05 [2025-02-19 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513914', 'tblTempUsageDetail_20' ) start [2025-02-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513914', 'tblTempUsageDetail_20' ) end [2025-02-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513914', 'tblTempVendorCDR_20' ) start [2025-02-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513914', 'tblTempVendorCDR_20' ) end [2025-02-19 23:59:17] Production.INFO: ProcessCDR(1,14513914,1,1,2) [2025-02-19 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-19 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-19 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513914', 'tblTempUsageDetail_20' ) start [2025-02-19 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513914', 'tblTempUsageDetail_20' ) end [2025-02-19 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-19 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-19 23:59:22] Production.INFO: ==11365== Releasing lock... [2025-02-19 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-19 23:59:22] Production.INFO: 33 MB #Memory Used#